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

VOID_DATE_BEFORE_ISSUE_DATE

The void date cannot be before the issue date


Category: Invoices

HTTP status422 Unprocessable Content
RetryAfter fixing the cause

When it happens

The void request carries the deprecated void_date with a date earlier than the invoice's issue date.

How to fix it

Drop void_date: the void is always recorded with the instant it takes place, returned as voided_at.

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 answers 422 Unprocessable Content with a JSON body of this shape:

{
  "type": "https://docs.beel.es/errors/VOID_DATE_BEFORE_ISSUE_DATE",
  "title": "VOID_DATE_BEFORE_ISSUE_DATE",
  "detail": "The void date cannot be before the issue date",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "VOID_DATE_BEFORE_ISSUE_DATE",
    "message": "The void date cannot be before the issue date",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

The void date cannot be before the issue date
La fecha de anulación no puede ser anterior a la fecha de emisión
La data d'anul·lació no pot ser anterior a la data d'emissió

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

Other errors in this category

Keep exploring