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
Client’s unique identifier in UUID format
Response
Indicates if there was an error
Array of sales associated with this client (only present on error)
Sale’s unique identifier (UUID format)
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.