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 | Clients |
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.