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

CUSTOMER_DUPLICATED_IN_BATCH

NIF duplicated within the batch


Category: Customers

RetryAfter fixing the cause

When it happens

A row of the batch has the same NIF as an earlier row of the same batch. It is reported in the row's errors, not as the request's error.code.

How to fix it

Keep one row per customer and send the batch again.

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.

Returned by

The operations where this code is most likely. The list is not exhaustive.

Example response

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

{
  "type": "https://docs.beel.es/errors/CUSTOMER_DUPLICATED_IN_BATCH",
  "title": "CUSTOMER_DUPLICATED_IN_BATCH",
  "detail": "NIF duplicated within the batch",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "CUSTOMER_DUPLICATED_IN_BATCH",
    "message": "NIF duplicated within the batch",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

NIF duplicated within the batch
NIF duplicado dentro del lote
NIF duplicat dins del lot

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

Other errors in this category

Keep exploring