Boutiques en ligne
Échanger le code de connexion
POST/v1/integrations/{platform}/token
Server to server, without authentication: the code, once, before it expires, with its PKCE verifier. Creates a key limited to payments:read, payments:write and refunds:write (90 days) and an active notification address at notify_url; reconnecting the same shop revokes its former key and address. A used, expired or mismatched code (a wrong verifier also spends it): 400 invalid_grant. Cache-Control: no-store.
Paramètres
platformdans le cheminobligatoire- The shop's platform; others (PrestaShop…) join the list as their extensions ship.
Corps
codestringobligatoirecode_verifierstring, 43 à 128obligatoire
Réponses
- 200Réussi
- 400Requête invalide
- 401Clé absente ou invalide
- 403Autorisation ou espace refusé
- 404Ressource introuvable
- 409Conflit avec une demande existante
- 429Trop de demandes, réessayez plus tard
- 503Service momentanément indisponible
Une erreur ne vaut jamais paiement. Le corps donne code, message, request_id et retry_action ; renvoyez la même Idempotency-Key si retry_action le propose.