NewProvince is only required for addresses in Spain
BeeL
Get startedMulti-NIFVeriFactuRulesStripeAPI referenceChangelog
ErrorsAll codes

ALTERNATIVE_ID_REQUIRES_SPAIN

Type NOT_REGISTERED (07) is only valid for Spain; received country: '‹value›'


Category: Customers

HTTP status422 Unprocessable Content

Example response

When this error occurs, the API answers 422 Unprocessable Content with a JSON body of this shape:

{
  "type": "https://docs.beel.es/errors/ALTERNATIVE_ID_REQUIRES_SPAIN",
  "title": "ALTERNATIVE_ID_REQUIRES_SPAIN",
  "detail": "Type NOT_REGISTERED (07) is only valid for Spain; received country: '‹value›'",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "ALTERNATIVE_ID_REQUIRES_SPAIN",
    "message": "Type NOT_REGISTERED (07) is only valid for Spain; received country: '‹value›'",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

The type URI is stable and always resolves to this page.

Message

Type NOT_REGISTERED (07) is only valid for Spain; received country: '‹value›'
El tipo NO_CENSADO (07) solo es válido para España; país recibido: '‹value›'
El tipus NO_CENSAT (07) només és vàlid per a Espanya; país rebut: '‹value›'

Send the request with Accept-Language: <es|en|ca> to receive the message in your preferred language.

Placeholders like ‹value› are filled in at runtime with the actual values of your request.

Other errors in this category

Keep exploring