Upload menu to delivery app

Upload menu

POST https://integrations.mipos.shop/api/v1/menus/upload

Headers

Name
Type
Description

Authorization

string

Bearer {access_token}

Request Body

Name
Type
Description

store_id

string

Id store on the platform

integration_id

string

Id of the integration in the platform

menus

array

Menu[] - Store menus

categories

array

Category[] - Store menu categories

items

array

Item[] - Store items

modifier_groups

array

ModifierGroup[] - Store modifier groups

{
    "message": "Menu successfully uploaded.",
    "data": null
}

Category

external_id

string

required

Id category on the POS

name

string

required

Category name to be displayed

description

string

optional

An optional description for the category

data_items

DataItem[]

required

Data of the items(products) of this category in the POS

Item

external_id

string

required

Id item on the POS

name

string

required

Item name to be displayed

description

string

optional

An optional description for the item

image_url

string

optional

Url item image

schedules

Schedule[]

optional

Item availability on a specified day of week(override schedule menu)

price

Price

required

Specifies the price to charge for ordering the item.

data_modifier_groups

DataModifierGroup[]

required

Data of the modifier groups of this item in the POS

ModifierGroup

external_id

string

required

Id modifier group on the POS

name

string

required

Modifier group name to be displayed

quantity

Quantity

required

Rules when selecting options in this modifier group

data_options

DataOption[]

required

Modifier group options

Json Menu example

{
	"store_id": 1,
	"integration_id": "1",
	"menus": [
		{
		"name": "Test menu Anton",
		"category_external_ids": ["12"],
		"schedules": [
			{
				"day_of_week": "monday",
				"periods": [
					{
						"start": "00:00",
						"end": "23:59"	
					}
				]
			},
			{
				"day_of_week": "sunday",
				"periods": [
					{
						"start": "00:00",
						"end": "23:59"	
					}
				]
			}
		],
		"identifier": "menu_anton"
		},
		{
		"name": "Test menu Anton 2",
		"category_external_ids": ["15"],
		"schedules": [
			{
				"day_of_week": "monday",
				"periods": [
					{
						"start": "00:00",
						"end": "23:59"	
					}
				]
			},
			{
				"day_of_week": "sunday",
				"periods": [
					{
						"start": "00:00",
						"end": "23:59"	
					}
				]
			}
		],
		"identifier": "menu_anton_2"
		}
	],
	"categories": [
		{
			"external_id": "12",
			"name": "Cat test",
			"data_items": [
				{
					"item_external_id": "item_1"
				},
				{
					"item_external_id": "item_2",
					"price": {
						"value": "5000"
					}
				}
			]
		},
		{
			"external_id": "15",
			"name": "Cat test 2",
			"data_items": [
				{
					"item_external_id": "item_1"
				},
				{
					"item_external_id": "item_2"
				}
			]
		}
	],
	"items": [
		{
			"external_id": "item_1",
			"name": "Producto 1",
			"price": {
				"value": "1250"
			},
			"data_modifier_groups": [
				{
					"modifier_group_external_id": "group_1"
				}	
			]
		},
		{
			"external_id": "item_2",
			"name": "Producto 2",
			"price": {
				"value": "2000"
			},
			"data_modifier_groups": []
		},
		{
			"external_id": "mod_1",
			"name": "Modifier 1",
			"price": {
				"value": "2000"
			},
			"data_modifier_groups": [],
			"schedules": [
				{
					"day_of_week": "sunday",
					"periods": [
						{
							"start": "00:00",
							"end": "23:59"	
						}
					]
				}
			]
		}
	],
	"modifier_groups": [
		{
			"external_id": "group_1",
			"name": "Grupo 1",
			"quantity": {
				"min_quantity": "0",
				"max_quantity": "5"
			},
			"data_options": [
				{
					"item_external_id": "mod_1",
					"quantity": {
						"min_quantity": "0",
						"max_quantity": "3"
					}
				}	
			]
		}
	]
}

Last updated

Was this helpful?