OuiPay
API ReferenceTransactions

Retry a transaction

POST /v1/transactions/{id}/retry : retry a failed transaction.

POST /v1/transactions/{id}/retry

Headers

HeaderRequiredValue
AuthorizationyesBearer sk_...
Idempotency-Keyyesunique per retry

Path params

ParamTypeNotes
idstringTransaction ULID

What can be retried

Only failed transactions: and only when the failure.code is recoverable (PROVIDER_ERROR, INTERNAL, RATE_LIMITED). Business-rule failures (COMPLIANCE_DENIED, INSUFFICIENT_FUNDS, LIMIT_EXCEEDED) are final : retrying returns 409.

Request

curl -X POST https://api.ouipay.com/v1/transactions/01M2S18.../retry \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: retry-8842-1"

Response 200

The same transaction, re-entered at pending: a new attempt under the same id, recorded in its status history.

Errors

HTTPerror.codeCause
404NOT_FOUNDNo such transaction
409CONFLICTNot failed, or unrecoverable code

On this page