ErrorsAll codes
ALTERNATIVE_ID_INVALID
For customers with country ES only types PASSPORT (03) or NOT_REGISTERED (07) are allowed
Category: Customers
Example response
When this error occurs, the API returns a JSON response with the following shape:
{
"type": "https://docs.beel.es/errors/ALTERNATIVE_ID_INVALID",
"title": "ALTERNATIVE_ID_INVALID",
"detail": "For customers with country ES only types PASSPORT (03) or NOT_REGISTERED (07) are allowed",
"instance": "/v1/<resource>",
"errors": [],
"success": false,
"error": {
"code": "ALTERNATIVE_ID_INVALID",
"message": "For customers with country ES only types PASSPORT (03) or NOT_REGISTERED (07) are allowed",
"details": {}
},
"meta": {
"timestamp": "2026-05-21T10:00:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}The type URI is stable and always resolves to this page.
Message
For customers with country ES only types PASSPORT (03) or NOT_REGISTERED (07) are allowed
Para clientes con país ES solo se permiten los tipos PASAPORTE (03) o NO_CENSADO (07)
Per a clients amb país ES només es permeten els tipus PASSAPORT (03) o NO_CENSAT (07)
Send the request with Accept-Language: <es|en|ca> to receive the message in your preferred language.
Other errors in this category
CITY_EMPTY
City cannot be empty
CITY_MAX_LENGTH
City cannot exceed {0} characters
CLIENT_DUPLICATE
A client with this NIF already exists
CLIENT_NOT_FOUND
Client not found
COUNTRY_EMPTY
Country cannot be empty