Skip to main content
DELETE
/
v1
/
customers
/
{customerId}
Delete Customer
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/customers/{customerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
{
  "code": 404,
  "key": "not_found",
  "message": "Resource not found",
  "details": "Cannot find customer with id cust_7pm0hh0yemiydeFsdYXZlr1",
  "request_id": "v-0ae398fd9ac683dc84",
  "resource_id": "cust_7pm0hh0yemiydeFsdYXZlr1",
  "resource_type": "customer"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

customerId
string
required

A Voucherify customer's id or source_id.

Example:

"cust_nk0N1uNQ1YnupAoJGOgvsODC"

Response

Returns no content if deletion is successful.