client_has_documents
The client is referenced by issued documents. Deleting it would leave invoices, quotes or delivery notes without the party they were issued to, and fiscal records must remain traceable.
| Code | Type | HTTP | Category |
|---|---|---|---|
client_has_documents | invalid_request_error | 422 | Contacts |
Cause
The client is referenced by issued documents. Deleting it would leave invoices, quotes or delivery notes without the party they were issued to, and fiscal records must remain traceable.
What to do
Deactivate the client instead of deleting it: it stops appearing in selectors and its documents keep their reference.
Related
All Contacts error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.