Remboursements
Création d’un remboursement sur un paiement existant.
Via API clé
POST
/v1/payments/:id/refundsScope payments:write. Header Idempotency-Key obligatoire.
Body
{
"amount": 5000,
"reason": "partial_refund"
}Réponse 201
{
"refund": {
"refundId": "…",
"status": "…",
"amount": "5000",
"transactionStatus": "…"
}
}Via session marchand
POST
/api/merchant/payments/:id/refundsCSRF + Idempotency-Key (ou body). Body : storeId, amount, reason?.