Retry a failed refund (ops only)
POST/refunds/:refundId/retries
RetryRefund, the ops route; no request body. Moves a FAILED refund back to REQUESTED and tries the provider once more, at most 5 attempts in all. The answer is 200 with the Refund as it stands after that attempt (SUCCEEDED, FAILED again with failureCode, or still REQUESTED when the provider is unreachable); it is never 503. A refund that is not FAILED, or whose attempts are used up, is 409 illegal-transition.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The refund after the retry attempt.
Response Headers
"true" when the answer is the stored response of an earlier request with the same Idempotency-Key; absent on the first execution.
idempotency-key-required (no Idempotency-Key header), idempotency-key-invalid (not 1 to 128 printable ASCII characters) or malformed-request.
not-found (no such resource, or an identifier longer than 128 characters); not stored on a write; the order of a refund may be bound a moment later, so the key is released and the same Idempotency-Key runs again. resource-not-found for a path that carries a NUL character.
illegal-transition (the refund is not FAILED, or its 5 attempts are used) or concurrent-update; neither is stored, the key is released and the same Idempotency-Key runs again. Or idempotency-key-reused (the Idempotency-Key was already used with a different request).
internal-error (an unexpected failure; the detail never carries the internal message).