DocsTableau de bord

Remboursements

Créer un remboursement

POST/v1/refundsrefunds:write

Requires refunds:write. Cookie mutations require CSRF. Local and test mode only. 409 payment_disputed while a dispute on the payment is open: the money is already held by the buyer's bank.

En-têtes

AuthorizationBearer pos_key_…obligatoire
Clé de serveur, pour tout l’espace. Jamais dans un navigateur.
X-Merchant-IDstringobligatoire
L’espace marchand concerné (mrc_…).
Idempotency-Keystringobligatoire

Corps

payment_idstringobligatoire
amountstringobligatoire
reason"returned_item" | "goodwill" | "amount_error" | "other"
Optional. For the merchant team only, never sent to the provider nor part of idempotency; a replay keeps the first reason.

Réponses

202Demande enregistrée
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.