cURL
Cancel the payment with cancellation reason
curl --request POST \ --url https://sandbox.hyperswitch.io/payments/{payment_id}/cancel \ --header 'Content-Type: application/json' \ --header 'api-key: <api-key>' \ --data '{ "cancellation_reason": "requested_by_customer"}'
This response does not have an example.
A Payment could can be cancelled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_customer_action.
requires_payment_method
requires_capture
requires_confirmation
requires_customer_action
Show child attributes
Was this page helpful?