DELETE
/
customers
/
{customer_id}
curl --request DELETE \
  --url https://sandbox.hyperswitch.io/customers/{customer_id} \
  --header 'api-key: <api-key>'
{
  "customer_id": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
  "customer_deleted": true,
  "address_deleted": true,
  "payment_methods_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

customer_id
string
required

The unique identifier for the Customer

Response

200 - application/json
customer_id
string
required

The identifier for the customer object

customer_deleted
boolean
required

Whether customer was deleted or not

address_deleted
boolean
required

Whether address was deleted or not

payment_methods_deleted
boolean
required

Whether payment methods deleted or not