Server-side payments/cancelPaymentIntent
Cancel an authorized payment
PlannedPlanned. This contract is published ahead of the build. It is not callable yet — treat it as the shape to design against, not a live endpoint.
Release an authorized payment intent before it's captured.
POST
/v1/payment-intents/{id}/cancelVoid an authorization before capture, releasing the hold on the card.
Path parameters
idstringRequiredResponse
application/json
idstringRequiredExample "0195d46e-7088-7cc4-a9b2-5f9273cd63b8"
merchantIdstringRequiredExample "mch_123"
customerIdstringExample "cus_123"
terminalIdstringExample "TID-00012345"
amountMinorintegerRequiredExample 1999
currencyCodestringRequiredExample "USD"
statusenumRequiredREQUIRES_PAYMENT_METHODREQUIRES_CONFIRMATIONPROCESSINGSUCCEEDEDDECLINEDREQUIRES_ACTIONCANCELEDclientSecretstringReturned on create responses; pass only to the browser client for this payment.
Example "pi_0195d46e_secret_example"
paymentIdstringPayment ID, present after the charge has been sent for authorization.
Example "0195d46e-7088-7cc4-a9b2-5f9273cd63b8"
paymentstringPayment details, present after authorization.
setupFutureUsageenumOFF_SESSIONON_SESSIONdescriptionstringmetadataobjectcreatedAtstring · ISO 8601RequiredExample "2026-04-09T09:14:22Z"
cancelPaymentIntent