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

REQUEST_BODY_TOO_LARGE

The request body exceeds the maximum allowed size of ‹max size›.


Category: General

HTTP status413 Content Too Large
RetryAfter fixing the cause

When it happens

The request body is larger than the API accepts. It is rejected before being read. error.details carries max_size_formatted, max_size_bytes and request_size_bytes.

How to fix it

Send a smaller body: split a large batch into several calls. For files, use the upload operations, which have their own limits.

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.

Example response

When this error occurs, the API answers 413 Content Too Large with a JSON body of this shape:

{
  "type": "https://docs.beel.es/errors/REQUEST_BODY_TOO_LARGE",
  "title": "REQUEST_BODY_TOO_LARGE",
  "detail": "The request body exceeds the maximum allowed size of ‹max size›.",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "REQUEST_BODY_TOO_LARGE",
    "message": "The request body exceeds the maximum allowed size of ‹max size›.",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

The request body exceeds the maximum allowed size of ‹max size›.
El cuerpo de la petición excede el tamaño máximo permitido de ‹max size›.
El cos de la petició supera la mida màxima permesa de ‹max size›.

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

Placeholders are filled in at runtime:

  • ‹max size› — the maximum body size, formatted for display.

Other errors in this category

Keep exploring