Skip to main content
DELETE
/
clients
/
:id
Delete Client
curl --request DELETE \
  --url https://api.example.com/clients/:id
{
  "error": false,
  "msg": "Client deleted successfully"
}
This endpoint deletes a client from the system. If the client has associated sales orders, the deletion will fail due to foreign key constraints.

Path Parameters

id
string
required
Client’s unique identifier in UUID format

Response

error
boolean
Indicates if there was an error
msg
string
Success or error message
saleList
array
Array of sales associated with this client (only present on error)

Response Examples

{
  "error": false,
  "msg": "Client deleted successfully"
}
Clients with existing sales orders cannot be deleted. You must delete all associated sales first, or consider implementing a soft delete strategy.

Build docs developers (and LLMs) love