latestOpenAPI 3.1.12026-08-198571,0002.4 MB

d8d7501dde48

Payments

Reverse a payment - tries void first (for unsettled transactions), falls back to refund. This is the recommended endpoint for canceling payments as it automatically picks the right method.

post/Payments/{id}/reverse

Path parameters

idstring required

The payment ID to reverse

Request body

reasonstring

Response

OK

methodstring

The method used to reverse the payment: "Voided" or "Refunded"

messagestring

Human-readable message explaining the reversal