Skip to content

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

ParameterTypeDescription
customerstringThe ID of the customer.

Headers

HeaderRequiredDescription
AuthorizationYesThe 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

StatusReasonDescription
401An API key is required.The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme.
401The API key is not valid.No integration has this key.
401The API key has expired.The expiry date of the key has passed.
403This integration does not have the customers:write scope.The integration does not have customers:write.
404The customer was not found.No customer in your account has this ID. A customer that was already deleted gets the same answer.
409This customer still owns licenses, so it cannot be deleted.The customer owns at least one license.
409This customer still holds seats on licenses, so it cannot be deleted.The customer holds a seat on at least one license.
409This customer still owns bound devices, so it cannot be deleted.The customer owns at least one device binding.
429There 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.