NowgateDocs

refund_exceeds_refundable

The refund is more than the payment has left to refund.

On this page

HTTP status: 422 Unprocessable Entity. Retrying the same request unchanged fails the same way.

Why it happens

  • A payment can be refunded up to what it credited, less its refunds that finished or are under way. The detail says how much remains.

What to do

Refund at most what remains, or leave amount out to refund all of it.

Example

The response is application/problem+json. Branch on code, never on title or detail. See errors for the format.

{
  "type": "https://docs.nowgate.io/errors/refund_exceeds_refundable",
  "title": "Unprocessable Entity",
  "status": 422,
  "detail": "What exactly was wrong, in a sentence.",
  "instance": "/v1/payments",
  "code": "refund_exceeds_refundable",
  "request_id": "req_01jc3xb1n6f0q2w8e4r7t5y9v3"
}