NewTell a voided invoice from a totally rectified one, without a second call
BeeL
Get StartedMulti-NIFVeriFactuStripeAPI ReferenceChangelog
ErrorsAll codes

ENVIRONMENT_HEADER_INVALID

Header ''{0}'' has an invalid value. Accepted values: TEST, PROD (legacy aliases: sandbox, test, production, live)


Category: Authentication

Example response

When this error occurs, the API returns a JSON response with the following shape:

{
  "type": "https://docs.beel.es/errors/ENVIRONMENT_HEADER_INVALID",
  "title": "ENVIRONMENT_HEADER_INVALID",
  "detail": "Header ''{0}'' has an invalid value. Accepted values: TEST, PROD (legacy aliases: sandbox, test, production, live)",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "ENVIRONMENT_HEADER_INVALID",
    "message": "Header ''{0}'' has an invalid value. Accepted values: TEST, PROD (legacy aliases: sandbox, test, production, live)",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

Header ''{0}'' has an invalid value. Accepted values: TEST, PROD (legacy aliases: sandbox, test, production, live)
La cabecera ''{0}'' tiene un valor no válido. Valores admitidos: TEST, PROD (alias heredados: sandbox, test, production, live)
La capçalera ''{0}'' té un valor no vàlid. Valors admesos: TEST, PROD (àlies heretats: sandbox, test, production, live)

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

Tokens like {0} are runtime arguments — the backend fills them with actual values before responding.

Other errors in this category

Keep exploring