Payment Method - Delete
Deletes a Payment Method.
curl --request DELETE \
--url https://sandbox.hyperswitch.io/payment_methods/{method_id} \
--header 'api-key: <api-key>'Authorizations
api-key (string) — header — required
Use 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
method_id
string
yes
The unique identifier for the Payment Method
Response
Status: 200 Content-Type: application/json Description: Payment Method deleted
Example response:
{
"payment_method_id": "card_rGK4Vi5iSW70MY7J2mIg",
"deleted": true
}Response fields:
payment_method_id (string, required) — The unique identifier of the Payment method Example: "card_rGK4Vi5iSW70MY7J2mIg"
deleted (boolean, required) — Whether payment method was deleted or not Example: true
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/payment-methods/payment-method--delete.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/payment-methods/payment-method--delete