NewThe SII in Live, under contract
BeeL
Get startedMulti-NIFVeriFactuSIIRulesStripeAPI referenceChangelog
ErrorsAll codes

EXTERNAL_REF_REQUIRED

Invoices created by an automation must carry external_ref: it is what prevents duplicates when a run is repeated.


Category: Invoices

Example response

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

{
  "type": "https://docs.beel.es/errors/EXTERNAL_REF_REQUIRED",
  "title": "EXTERNAL_REF_REQUIRED",
  "detail": "Invoices created by an automation must carry external_ref: it is what prevents duplicates when a run is repeated.",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "EXTERNAL_REF_REQUIRED",
    "message": "Invoices created by an automation must carry external_ref: it is what prevents duplicates when a run is repeated.",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

Invoices created by an automation must carry external_ref: it is what prevents duplicates when a run is repeated.
Las facturas que crea una automatización deben llevar external_ref: es lo que evita duplicarlas si la ejecución se repite.
Les factures que crea una automatització han de portar external_ref: és el que evita duplicar-les si l’execució es repeteix.

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

Other errors in this category

Keep exploring