← Volver a la lista de operaciones
Consulta

transactionStats

transactionStats(merchantId: ID!, from: String, to: String, rewardStatus: String, type: String, excludeBots: Boolean = true): TransactionStats!

Información de la llamada

Punto de acceso

https://api.revclic.com/

Método

POST

Autenticación

Token Bearer (JWT)

Devuelve

TransactionStats!

Argumentos

ParámetroTipoValor predeterminadoEstado
merchantIdID!Obligatorio
fromStringOpcional
toStringOpcional
rewardStatusStringOpcional
typeStringOpcional
excludeBotsBooleantrueOpcional

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
  }
}'

Tipos relacionados