Delete a customer
Deletes a customer.
DELETE /v1/customers/{customer}
Use cases
- Remove a customer that was created by mistake.
- Remove the customers that a test run created.
- Remove a customer when the user asks you to delete their data.
Authentication
Send an API key. This endpoint requires the scope customers:write. See Authentication and Scopes.
Customers belong to your account, not to one product. An integration that is limited to one product can delete every customer. See Product.
Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
customer | string | The ID of the customer. |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | The word Bearer, a space and the API key. |
Response
The answer has the status 204 and no body.
Deletion is permanent. A customer who owns a license, holds a seat or owns a device binding cannot be deleted. Delete or reassign the licenses first, and release the seats and the devices. See Deletion.
Errors
| Status | Reason | Description |
|---|---|---|
| 401 | An API key is required. | The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme. |
| 401 | The API key is not valid. | No integration has this key. |
| 401 | The API key has expired. | The expiry date of the key has passed. |
| 403 | This integration does not have the customers:write scope. | The integration does not have customers:write. |
| 404 | The customer was not found. | No customer in your account has this ID. A customer that was already deleted gets the same answer. |
| 409 | This customer still owns licenses, so it cannot be deleted. | The customer owns at least one license. |
| 409 | This customer still holds seats on licenses, so it cannot be deleted. | The customer holds a seat on at least one license. |
| 409 | This customer still owns bound devices, so it cannot be deleted. | The customer owns at least one device binding. |
| 429 | There are too many requests. Try again later. | See Rate limits. |
See Errors.
Example
curl -X DELETE https://api.seatify.dev/v1/customers/$CUSTOMER_ID \
-H "Authorization: Bearer $SEATIFY_API_KEY"The answer has the status 204 and no body.