If you retry a request with the same x-idempotency-key
, and the operation was already processed, the API will return a 409 Conflict
response.
This response includes the original payment_id
and operation_id
, allowing you to recover the status of the previous request:
{
"type": "urn:eu.purse:write-conflict",
"title": "Idempotency violation",
"status": 409,
"instance": "/v2/payments/558f47c6-fd88-4c28-aa2f-5d3d7a44709f/captures",
"resource_id": "432ccde8-13e8-4c31-a900-a9c40546c12a"
}