cURL
Cancel the payment post capture with cancellation reason
curl --request POST \ --url https://sandbox.hyperswitch.io/payments/{payment_id}/cancel_post_capture \ --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: succeeded, partially_captured, partially_captured_and_capturable.
succeeded
partially_captured
partially_captured_and_capturable
Was this page helpful?