transactionStats
transactionStats(merchantId: ID!, from: String, to: String, rewardStatus: String, type: String, excludeBots: Boolean = true): TransactionStats!Informations d'appel
Arguments
| Paramètre | Type | Valeur par défaut | Statut |
|---|---|---|---|
| merchantId | ID! | — | Obligatoire |
| from | String | — | Facultatif |
| to | String | — | Facultatif |
| rewardStatus | String | — | Facultatif |
| type | String | — | Facultatif |
| excludeBots | Boolean | true | Facultatif |
Exemple de requête GraphQL
query GetTransactionStats($merchantId: ID!, $from: String, $to: String, $rewardStatus: String, $type: String, $excludeBots: Boolean) {
transactionStats(merchantId: $merchantId, from: $from, to: $to, rewardStatus: $rewardStatus, type: $type, excludeBots: $excludeBots) {
count
acceptedCount
acceptanceRate
revenue
reward
redirectsCount
}
}Exemple de variables
{
"merchantId": "1",
"from": "example",
"to": "example",
"rewardStatus": "example",
"type": "example",
"excludeBots": true
}Payload JSON complet
{
"query": "query GetTransactionStats($merchantId: ID!, $from: String, $to: String, $rewardStatus: String, $type: String, $excludeBots: Boolean) {\n transactionStats(merchantId: $merchantId, from: $from, to: $to, rewardStatus: $rewardStatus, type: $type, excludeBots: $excludeBots) {\n count\n acceptedCount\n acceptanceRate\n revenue\n reward\n redirectsCount\n }\n}",
"variables": {
"merchantId": "1",
"from": "example",
"to": "example",
"rewardStatus": "example",
"type": "example",
"excludeBots": true
}
}Exemple cURL à tester
curl -X POST https://api.revclic.com/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"query": "query GetTransactionStats($merchantId: ID!, $from: String, $to: String, $rewardStatus: String, $type: String, $excludeBots: Boolean) {\n transactionStats(merchantId: $merchantId, from: $from, to: $to, rewardStatus: $rewardStatus, type: $type, excludeBots: $excludeBots) {\n count\n acceptedCount\n acceptanceRate\n revenue\n reward\n redirectsCount\n }\n}",
"variables": {
"merchantId": "1",
"from": "example",
"to": "example",
"rewardStatus": "example",
"type": "example",
"excludeBots": true
}
}'