curl --request POST \
--url https://api.partoo.co/v2/business/{business_id}/food_menus \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data @- <<EOF
{
"menus": [
{
"name": "Starters",
"order": 1,
"items": [
{
"name": "Starter 1",
"order": 1,
"description": "First starter of the food menu",
"price": 1,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
},
{
"name": "Starter 2",
"order": 2,
"description": "Second starter of the food menu",
"price": 5
}
]
},
{
"name": "Main dishes",
"order": 2,
"items": [
{
"name": "Today's special",
"order": 1,
"description": "Today's special description",
"price": 25,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
}
]
}
]
}
EOF{
"menus": [
{
"name": "Starters",
"order": 1,
"items": [
{
"name": "Starter 1",
"order": 1,
"description": "First starter of the food menu",
"price": 1,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
},
{
"name": "Starter 2",
"order": 2,
"description": "Second starter of the food menu",
"price": 5
}
]
},
{
"name": "Main dishes",
"order": 2,
"items": [
{
"name": "Today's special",
"order": 1,
"description": "Today's special description",
"price": 25,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
}
]
}
]
}This endpoint allows you to set or update Google Food Menus for your business.
curl --request POST \
--url https://api.partoo.co/v2/business/{business_id}/food_menus \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data @- <<EOF
{
"menus": [
{
"name": "Starters",
"order": 1,
"items": [
{
"name": "Starter 1",
"order": 1,
"description": "First starter of the food menu",
"price": 1,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
},
{
"name": "Starter 2",
"order": 2,
"description": "Second starter of the food menu",
"price": 5
}
]
},
{
"name": "Main dishes",
"order": 2,
"items": [
{
"name": "Today's special",
"order": 1,
"description": "Today's special description",
"price": 25,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
}
]
}
]
}
EOF{
"menus": [
{
"name": "Starters",
"order": 1,
"items": [
{
"name": "Starter 1",
"order": 1,
"description": "First starter of the food menu",
"price": 1,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
},
{
"name": "Starter 2",
"order": 2,
"description": "Second starter of the food menu",
"price": 5
}
]
},
{
"name": "Main dishes",
"order": 2,
"items": [
{
"name": "Today's special",
"order": 1,
"description": "Today's special description",
"price": 25,
"media": {
"source_url": "https://www.source_url.com/main_dishes",
"public_url": "https://www.partoo_url.com/main_dishes"
}
}
]
}
]
}The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
Business id.
It may be replaced by c-{code} where code is the store code, which should be unique per organization. This can be used only for ORG_ADMIN, GROUP_MANAGER and BUSINESS_MANAGER users.
A Google food menu for business.
Show child attributes
Name of the food menu section.
Display order of the food menu item in the food menu section.
3
Show child attributes
Name of the food menu item.
140"Item name"
Display order of the food menu item in the food menu section.
3
Description of the food menu item.
1000Price of the food menu item.
12.5
Media of the food menu item.
OK
A Google food menu for business.
Show child attributes
Name of the food menu section.
Display order of the food menu item in the food menu section.
3
Show child attributes
Name of the food menu item.
140"Item name"
Display order of the food menu item in the food menu section.
3
Description of the food menu item.
1000Price of the food menu item.
12.5
Media of the food menu item.
Was this page helpful?