Payments
List payments
Create payment
Cancel payment by idempotency key
Get payment
Update payment
Cancel payment
Complete payment
Webhooks
payment.created
payment.updated
<- Payments API
Payments API
Version
2024-11-20
POST
/v2/payments/{payment_id}/cancel
Cancels (voids) a payment.
You can use this endpoint to cancel a payment with the APPROVED status.
status
Guide
Delayed capture
Example code
payment_id
string
Required
The ID of the payment to cancel.
errors
Error [ ]
Information about errors encountered during the request.
Show attributes
payment
Payment
The successfully canceled Payment object.