NewCompany stats count voided invoices by how they were voided
BeeL
Get startedMulti-NIFVeriFactuRulesStripeAPI referenceChangelog
ErrorsAll codes

INVALID_IDEMPOTENCY_KEY

Invalid idempotency key format. Must be a UUID or an alphanumeric string.


Category: General

HTTP status400 Bad Request
RetryAfter fixing the cause

When it happens

The Idempotency-Key header is empty, longer than 255 characters, or contains characters other than letters, digits, _ and -. It can happen on any operation that accepts the header.

How to fix it

Send a key made only of letters, digits, _ and -, up to 255 characters. A UUID works.

Retry

Not as is: the same request fails the same way. Fix the cause described above, then send the request again, under a new Idempotency-Key if the body changed.

Rules that cite this code

Example response

When this error occurs, the API answers 400 Bad Request with a JSON body of this shape:

{
  "type": "https://docs.beel.es/errors/INVALID_IDEMPOTENCY_KEY",
  "title": "INVALID_IDEMPOTENCY_KEY",
  "detail": "Invalid idempotency key format. Must be a UUID or an alphanumeric string.",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "INVALID_IDEMPOTENCY_KEY",
    "message": "Invalid idempotency key format. Must be a UUID or an alphanumeric string.",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

Invalid idempotency key format. Must be a UUID or an alphanumeric string.
El formato de la clave de idempotencia no es válido. Debe ser un UUID o una cadena alfanumérica.
El format de la clau d'idempotència no és vàlid. Ha de ser un UUID o una cadena alfanumèrica.

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

Other errors in this category

Keep exploring