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

merchantCategories

merchantCategories(locale: Locale! = FR): [MerchantCategory!]!

Informations d'appel

Point d'accès

https://api.revclic.com/

Méthode

POST

Authentification

Jeton Bearer (JWT)

Retourne

[MerchantCategory!]!

Arguments

ParamètreTypeValeur par défautStatut
localeLocale!FRObligatoire

Exemple de requête GraphQL

query GetMerchantCategories($locale: Locale!) {
  merchantCategories(locale: $locale) {
    id
    name
    label
  }
}

Exemple de variables

{
  "locale": "FR"
}

Payload JSON complet

{
  "query": "query GetMerchantCategories($locale: Locale!) {\n  merchantCategories(locale: $locale) {\n    id\n    name\n    label\n  }\n}",
  "variables": {
    "locale": "FR"
  }
}

Exemple cURL à tester

curl -X POST https://api.revclic.com/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
  "query": "query GetMerchantCategories($locale: Locale!) {\n  merchantCategories(locale: $locale) {\n    id\n    name\n    label\n  }\n}",
  "variables": {
    "locale": "FR"
  }
}'

Types associés