DELETE
/
payment_methods
/
{method_id}
curl --request DELETE \
  --url https://sandbox.hyperswitch.io/payment_methods/{method_id} \
  --header 'api-key: <api-key>'
{
  "payment_method_id": "card_rGK4Vi5iSW70MY7J2mIy",
  "deleted": true
}

Authorizations

api-key
string
headerrequired

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
required

The unique identifier for the Payment Method

Response

200 - application/json
payment_method_id
string
required

The unique identifier of the Payment method

deleted
boolean
required

Whether payment method was deleted or not