cURL
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" }
This method deletes a customer.
The access token received from the authorization server in the OAuth 2.0 flow.
A Voucherify customer's id or source_id.
id
source_id
"cust_nk0N1uNQ1YnupAoJGOgvsODC"
Returns no content if deletion is successful.
Was this page helpful?