curl --location --request DELETE 'https://api.stateset.com/v1/customers/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"user_group_id": "example_1"
"current_token": "abcdef"
}'
{
"id": "cu_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "customer",
"deleted": true
}
This endpoint deletes an existing customer.
curl --location --request DELETE 'https://api.stateset.com/v1/customers/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"user_group_id": "example_1"
"current_token": "abcdef"
}'
{
"id": "cu_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "customer",
"deleted": true
}
curl --location --request DELETE 'https://api.stateset.com/v1/customers/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"user_group_id": "example_1"
"current_token": "abcdef"
}'
{
"id": "cu_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "customer",
"deleted": true
}