Skip to main content
DELETE
/
v1
/
customers
/
{customerId}
Deactivate a customer
curl --request DELETE \
  --url https://api.yuvexpay.com/v1/customers/{customerId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

YuvexPay API key. Include as Authorization: Bearer ypk_<env>_<kid>_<secret> where <env> is test (sandbox) or live (production). Create and manage keys in the dashboard under Settings > API Keys.

Path Parameters

customerId
string
required

The customer's prefixed identifier (e.g., cus_ab12cd34ef). This is the merchant-facing slug, not the internal UUID.

Response

Customer deactivated.

message
string