Payments
Payments - Cancel
A Payment could can be cancelled when it is in one of these statuses: requires_payment_method
, requires_capture
, requires_confirmation
, requires_customer_action
.
POST
/
payments
/
{payment_id}
/
cancel
Authorizations
api-key
string
headerrequiredUse the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Path Parameters
payment_id
string
requiredThe identifier for payment
Body
application/json
cancellation_reason
string | null
The reason for the payment cancel
merchant_connector_details
object
Merchant connector details used to make payments.