cannot_have_both_tax_id_and_alternative_id
The client sends `tax_id` and an alternative identifier at the same time. Fiscal identity is one: the alternative identifier exists precisely for parties without a Spanish tax id.
| Code | Type | HTTP | Category |
|---|---|---|---|
cannot_have_both_tax_id_and_alternative_id | invalid_request_error | 422 | Contacts |
Cause
The client sends tax_id and an alternative identifier at the same time. Fiscal identity is one: the alternative identifier exists precisely for parties without a Spanish tax id.
What to do
Keep tax_id for Spanish parties, or the alternative identifier with its type for foreign ones, and clear the other field.
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.