Skip to main content
DELETE
Delete customer
The Delete Customer endpoint soft-deletes (deactivates) a business company. It sets the customer’s Status to Inactive; the record stays visible on GET and search. To reactivate it, send a PATCH with Status: Active. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page. This endpoint uses optimistic concurrency. You must send the customer’s current ETag in an If-Match header. The token is returned on the ETag response header of a GET, and in the body of a create/update response. If the token does not match the current record the request fails with 412 Precondition Failed; refetch with GET to obtain a fresh value and retry.

Request Parameters

The following parameters are required in the URL path: The following header is required:

Example CURL Request

Replace YOUR_ACCESS_TOKEN with your actual Bearer token and If-Match with the customer’s current ETag.

Response

On success the endpoint returns 204 No Content with an empty body.

Status Codes


Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section. This page is interactive, allowing you to try a request by completing the fields for the parameters below. As you fill out the parameters, the CURL command on the right side of the page will be automatically updated.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

id
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Response

No Content