Remboursements

Création d’un remboursement sur un paiement existant.

Via API clé

POST/v1/payments/:id/refunds

Scope 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/refunds

CSRF + Idempotency-Key (ou body). Body : storeId, amount, reason?.