transactionStats
transactionStats(merchantId: ID!, from: String, to: String, rewardStatus: String, type: String, excludeBots: Boolean = true): TransactionStats!Información de la llamada
Argumentos
| Parámetro | Tipo | Valor predeterminado | Estado |
|---|---|---|---|
| merchantId | ID! | — | Obligatorio |
| from | String | — | Opcional |
| to | String | — | Opcional |
| rewardStatus | String | — | Opcional |
| type | String | — | Opcional |
| excludeBots | Boolean | true | Opcional |
Ejemplo de consulta 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
}
}Ejemplo de variables
{
"merchantId": "1",
"from": "example",
"to": "example",
"rewardStatus": "example",
"type": "example",
"excludeBots": true
}Payload JSON completo
{
"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
}
}Ejemplo cURL para probar
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
}
}'