Overview /
Customers & loyalty /
Delete a customer
Delete a customer
delete
https://api.flactrum.com/v1/customers/{customer}
An account still holding balance or points cannot be deleted.
| Required scope | customers.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| customer * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/customers/01m43mxxbeycm9pkvz2w565f2y' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/customers/01m43mxyckd29zwzv6bshb180j' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This customer still holds balance or points. Zero them out before deleting.",
"details": {
"balance": 100,
"points": 0
}
}
}