const url = 'https://example.com/api/Transactions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/retry';const options = { method: 'POST', headers: {'Idempotency-Key': 'example', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/Transactions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/retry \ --header 'Authorization: Bearer <token>' \ --header 'Idempotency-Key: example'Retries a declined transaction by sending a new charge to the payment gateway using the same payment method. A new transaction record (with its own reference) is created. The original is left unchanged. If the charge belonged to a subscription billing period, a successful retry marks that period paid so it isn’t collected again.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The original transaction’s identifier.
Header Parameters
Section titled “Header Parameters ”Required. A unique value (a UUID is ideal) per logical operation; reuse it when retrying that operation. A retry with the same key and body replays the original response instead of running twice. A 4xx frees the key, so the operation can be corrected and retried on it. A 5xx does not: the attempt may already have moved money, so retries with that key replay a problem+json saying the outcome is unknown, and a genuinely fresh attempt needs a new key. Missing → 400.
Responses
Section titled “ Responses ”New transaction record for the retry attempt.
object
Example
{ "status": "Processing"}No transaction with the given ID exists.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Retrying could double charge: the transaction isn’t declined, an earlier retry of it succeeded or is still processing, or its billing period is already paid, settling or written off.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}