Skip to content

Validate menu

POST
/api/v3/menu/validate
curl --request POST \
--url https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/menu/validate \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '"example"'

The endpoint allows users to upload a menu and validate it according to the JSON schema. If no errors or warnings are detected, the endpoint will return an all-okay message. However, if errors or warnings are detected, the endpoint will return a list of errors and warnings, along with detailed information about each error, such as the line number, column number, and error message. It is recommended to validate the payload before sending the menu for execution. This will ensure that the menu is in the correct format and contains all the necessary information to be processed successfully. Validating the payload before sending the menu for execution can identify and correct any errors or issues, thereby saving time.

Media typeapplication/json
string
Examplegenerated
example

Menu validation result

Media typeapplication/json
object
valid

Specifies if the menu is valid or not

boolean
errors

Detailed information of the errors generated by JSON schema

Array<string>
warnings

Detailed information of the warnings generated by JSON schema

Array<string>
Examplegenerated
{
"valid": true,
"errors": [
"example"
],
"warnings": [
"example"
]
}

Internal error

Media typeapplication/json
string
Examplegenerated
example