Errors
request_too_large
The request body is more than 100 KB.
HTTP 413invalid_request_error
Univooz rejected the body before it read the body.
Why it happens
An order body is small. A body of more than 100 KB usually contains data that belongs somewhere else:
- A large
metadataobject. The limits are 50 keys, keys of 64 characters, values of 500 characters. - An image or a document in a text field. This API has no field for a file.
- Long instructions.
pickupInstructionsanddeliveryInstructionshave a limit of 200 characters. - More than one order in one body. You can create one order for each request.
How to fix it
Make the body smaller. Put only identifiers in metadata, and keep large data in your own
system:
{ "metadata": { "table": "12", "channel": "web" } }Photos and delivery proof are not part of this API. They stay in the dashboard.
Example response
{
"error": {
"type": "invalid_request_error",
"code": "request_too_large",
"message": "Request body exceeds the 100 KB limit.",
"doc_url": "https://docs.univooz.com/errors/request_too_large",
"request_id": "req_01KZCCF8ZH4M7XQ2VB9RSTNPKD"
}
}