Delete Customer Permanently
curl --request POST \
--url https://{cluster}.voucherify.io/v1/customers/{customerId}/permanent-deletion \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "del_7k3buMvBsJuXiLRmdh1WZvZs",
"created_at": "2022-09-02T17:50:29.302Z",
"related_object_id": "cust_XI8sPLvznzVpNI1BMIWGcUJa",
"related_object": "customer",
"status": "DONE",
"data_json": {
"events": 16,
"customer_events": 28,
"daily_events": 0,
"segments": 0,
"orders": 9,
"order_events": 5,
"customer": 1
},
"object": "pernament_deletion"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find customer with id cust_W8n9I8pJDXlM69j49iKJeYp",
"request_id": "v-0b4c62635a154e96f1",
"resource_id": "cust_W8n9I8pJDXlM69j49iKJeYp",
"resource_type": "customer"
}Delete Customer Permanently
The organization user can remove customer data permanently from the Voucherify system by using this API method. It deletes all customer data and connected resources. It makes the customer profile forgotten by Voucherify as per the GDPR.
POST
/
v1
/
customers
/
{customerId}
/
permanent-deletion
Delete Customer Permanently
curl --request POST \
--url https://{cluster}.voucherify.io/v1/customers/{customerId}/permanent-deletion \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "del_7k3buMvBsJuXiLRmdh1WZvZs",
"created_at": "2022-09-02T17:50:29.302Z",
"related_object_id": "cust_XI8sPLvznzVpNI1BMIWGcUJa",
"related_object": "customer",
"status": "DONE",
"data_json": {
"events": 16,
"customer_events": 28,
"daily_events": 0,
"segments": 0,
"orders": 9,
"order_events": 5,
"customer": 1
},
"object": "pernament_deletion"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find customer with id cust_W8n9I8pJDXlM69j49iKJeYp",
"request_id": "v-0b4c62635a154e96f1",
"resource_id": "cust_W8n9I8pJDXlM69j49iKJeYp",
"resource_type": "customer"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Response
Returns a permanent deletion object and status of the deletion.
Response body schema for POST v1/customers/{customerId}/permanent-deletion.

