INVALID_JSON_FORMAT
The request body contains invalid JSON syntax.
Category: General
| HTTP status | 400 Bad Request |
| Retry | After fixing the cause |
When it happens
The body could not be read: it is not valid JSON, or a property has the wrong type or format (a string where a number is expected, a date that does not parse). error.details names the field, the invalid_value and, where there is one, the expected_format.
How to fix it
Validate the JSON and the types of the properties named in error.details. Dates go as YYYY-MM-DD and amounts as JSON numbers.
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 400 Bad Request with a JSON body of this shape:
{
"type": "https://docs.beel.es/errors/INVALID_JSON_FORMAT",
"title": "INVALID_JSON_FORMAT",
"detail": "The request body contains invalid JSON syntax.",
"instance": "/v1/<resource>",
"errors": [],
"success": false,
"error": {
"code": "INVALID_JSON_FORMAT",
"message": "The request body contains invalid JSON syntax.",
"details": {}
},
"meta": {
"timestamp": "2026-05-21T10:00:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}The type URI is stable and always resolves to this page.
Message
Send the request with Accept-Language: <es|en|ca> to receive the message in your preferred language.
Other errors in this category
AUTOMATIC_EMAIL_CONFIG_INVALID
For automatic sending, you must provide an email configuration or a client with email
BAD_REQUEST
The provided data is not valid.
BUSINESS_RULE_VIOLATION
The operation breaks a business rule.
CITY_EMPTY
City cannot be empty
CITY_MAX_LENGTH
City cannot exceed ‹value› characters
Keep exploring
INVALID_IVA_SURCHARGE_PAIR
Surcharge ‹value›% is not valid for VAT ‹value›%. Allowed pairs: 21↔5.2, 10↔1.4, 4↔0.5
INVALID_PERCENTAGE
Tax percentage ‹value›% is not valid for ‹value›. Valid rates: ‹value›. A 0% that is not listed is not a rate but the exemption sentinel: it is only accepted with an exemption reason, or under the OSS/IOSS regime.