← Retour à la liste des opérations
Requête

transactionStats

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

Informations d'appel

Point d'accès

https://api.revclic.com/

Méthode

POST

Authentification

Jeton Bearer (JWT)

Retourne

TransactionStats!

Arguments

ParamètreTypeValeur par défautStatut
merchantIdID!Obligatoire
fromStringFacultatif
toStringFacultatif
rewardStatusStringFacultatif
typeStringFacultatif
excludeBotsBooleantrueFacultatif

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

Types associés