mayarin
POST
/v1/payments/{id}/retry

Reopens a FAILED payment at ASSET_RECEIVED and replays the clearing steps, for a failure since fixed (a missing swap pool, an asset not yet whitelisted) while the payer's money sat at the deposit address. Every step is idempotent per state, so nothing that already happened happens twice. A deposit-match order whose deadline passed is re-signed with the same terms and a fresh deadline. Refused with 409 when the payment has not failed or its funds never arrived.

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/payments/string/retry"
{  "clearing": {    "id": "string",    "state": "string",    "provider": "string",    "providerReference": "string",    "transactionHash": "string",    "sourceAmount": {      "amount": "string",      "asset": "string",      "formatted": "string",      "display": "string"    },    "settlementAmount": {      "amount": "string",      "asset": "string",      "formatted": "string",      "display": "string"    },    "fee": {      "amount": "string",      "asset": "string",      "formatted": "string",      "display": "string"    },    "netAmount": {      "amount": "string",      "asset": "string",      "formatted": "string",      "display": "string"    },    "rate": {      "from": "string",      "to": "string",      "scaledRate": "string",      "source": "string",      "lockedAt": "string"    },    "failure": {      "reason": "string",      "code": "string",      "at": "string"    },    "createdAt": "string",    "updatedAt": "string"  }}