DELETE
/
clients
/
{id}
curl -X DELETE https://api.contazen.ro/v1/clients/9z8y7x6w5v \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
{
  "success": true,
  "data": {
    "deleted": true,
    "id": "9z8y7x6w5v"
  },
  "meta": {
    "version": "v1",
    "response_time": "23.45ms"
  }
}

Request

id
string
required
The client ID to delete
Important: You can only delete clients that have no associated invoices. If the client has any invoices, the deletion will fail with an error.

Response

success
boolean
Indicates if the request was successful
data
object
meta
object
Response metadata
curl -X DELETE https://api.contazen.ro/v1/clients/9z8y7x6w5v \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
{
  "success": true,
  "data": {
    "deleted": true,
    "id": "9z8y7x6w5v"
  },
  "meta": {
    "version": "v1",
    "response_time": "23.45ms"
  }
}