Create a menu
curl --request POST \
--url https://api.lulacommerce.com/v1/menus \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Kitchen",
"categories": [
{
"name": "Breakfast tacos",
"items": [
{
"external_id": "<string>",
"sort_order": 123,
"daypart_names": [
"<string>"
],
"modifier_group_ids": [
"<string>"
]
}
],
"external_id": "<string>",
"sort_order": 123,
"daypart_names": [
"<string>"
]
}
],
"external_id": "<string>",
"store_ids": [
"<string>"
],
"channels": [],
"dayparts": [
{
"name": "Breakfast",
"days": [],
"start": "05:00",
"end": "10:30",
"id": "<string>"
}
]
}
'import requests
url = "https://api.lulacommerce.com/v1/menus"
payload = {
"name": "Kitchen",
"categories": [
{
"name": "Breakfast tacos",
"items": [
{
"external_id": "<string>",
"sort_order": 123,
"daypart_names": ["<string>"],
"modifier_group_ids": ["<string>"]
}
],
"external_id": "<string>",
"sort_order": 123,
"daypart_names": ["<string>"]
}
],
"external_id": "<string>",
"store_ids": ["<string>"],
"channels": [],
"dayparts": [
{
"name": "Breakfast",
"days": [],
"start": "05:00",
"end": "10:30",
"id": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Kitchen',
categories: [
{
name: 'Breakfast tacos',
items: [
{
external_id: '<string>',
sort_order: 123,
daypart_names: ['<string>'],
modifier_group_ids: ['<string>']
}
],
external_id: '<string>',
sort_order: 123,
daypart_names: ['<string>']
}
],
external_id: '<string>',
store_ids: ['<string>'],
channels: [],
dayparts: [{name: 'Breakfast', days: [], start: '05:00', end: '10:30', id: '<string>'}]
})
};
fetch('https://api.lulacommerce.com/v1/menus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"channels": [
"lula_direct"
],
"hours": {
"timezone": "America/Chicago",
"regular": [
{
"day": "monday",
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": false,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
},
"item_count": 123,
"updated_at": "2023-11-07T05:31:56Z",
"store_id": "<string>",
"categories": [
{
"id": "<string>",
"name": "<string>",
"sort_order": 123,
"items": [
{
"id": "<string>",
"external_id": "<string>",
"name": "<string>",
"description": "<string>",
"image": "<string>",
"price": {
"amount": 249,
"currency": "USD"
},
"available": true,
"station": "kitchen",
"modifier_group_ids": [
"<string>"
]
}
]
}
],
"modifier_groups": [
{
"name": "Dipping sauces",
"options": [
{
"name": "Ranch",
"price": {
"amount": 249,
"currency": "USD"
},
"external_id": "<string>",
"default_selected": false,
"available": true
}
],
"id": "<string>",
"min_selections": 0,
"max_selections": 4,
"free_selections": 0,
"item_external_ids": [
"<string>"
]
}
]
}{
"error": {
"type": "authentication_error",
"code": "invalid_external_id",
"message": "<string>",
"request_id": "req_01J9ZS2B6C8D",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Menus
Create a menu
Publish a menu authored in your own menu system: categories, items,
dayparts, and modifier groups, for any set of stores and channels.
Lula validates the menu against each channel’s rules and publishes it
to every channel. Emits menu.published per store and channel.
POST
/
menus
Create a menu
curl --request POST \
--url https://api.lulacommerce.com/v1/menus \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Kitchen",
"categories": [
{
"name": "Breakfast tacos",
"items": [
{
"external_id": "<string>",
"sort_order": 123,
"daypart_names": [
"<string>"
],
"modifier_group_ids": [
"<string>"
]
}
],
"external_id": "<string>",
"sort_order": 123,
"daypart_names": [
"<string>"
]
}
],
"external_id": "<string>",
"store_ids": [
"<string>"
],
"channels": [],
"dayparts": [
{
"name": "Breakfast",
"days": [],
"start": "05:00",
"end": "10:30",
"id": "<string>"
}
]
}
'import requests
url = "https://api.lulacommerce.com/v1/menus"
payload = {
"name": "Kitchen",
"categories": [
{
"name": "Breakfast tacos",
"items": [
{
"external_id": "<string>",
"sort_order": 123,
"daypart_names": ["<string>"],
"modifier_group_ids": ["<string>"]
}
],
"external_id": "<string>",
"sort_order": 123,
"daypart_names": ["<string>"]
}
],
"external_id": "<string>",
"store_ids": ["<string>"],
"channels": [],
"dayparts": [
{
"name": "Breakfast",
"days": [],
"start": "05:00",
"end": "10:30",
"id": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Kitchen',
categories: [
{
name: 'Breakfast tacos',
items: [
{
external_id: '<string>',
sort_order: 123,
daypart_names: ['<string>'],
modifier_group_ids: ['<string>']
}
],
external_id: '<string>',
sort_order: 123,
daypart_names: ['<string>']
}
],
external_id: '<string>',
store_ids: ['<string>'],
channels: [],
dayparts: [{name: 'Breakfast', days: [], start: '05:00', end: '10:30', id: '<string>'}]
})
};
fetch('https://api.lulacommerce.com/v1/menus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"channels": [
"lula_direct"
],
"hours": {
"timezone": "America/Chicago",
"regular": [
{
"day": "monday",
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": false,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
},
"item_count": 123,
"updated_at": "2023-11-07T05:31:56Z",
"store_id": "<string>",
"categories": [
{
"id": "<string>",
"name": "<string>",
"sort_order": 123,
"items": [
{
"id": "<string>",
"external_id": "<string>",
"name": "<string>",
"description": "<string>",
"image": "<string>",
"price": {
"amount": 249,
"currency": "USD"
},
"available": true,
"station": "kitchen",
"modifier_group_ids": [
"<string>"
]
}
]
}
],
"modifier_groups": [
{
"name": "Dipping sauces",
"options": [
{
"name": "Ranch",
"price": {
"amount": 249,
"currency": "USD"
},
"external_id": "<string>",
"default_selected": false,
"available": true
}
],
"id": "<string>",
"min_selections": 0,
"max_selections": 4,
"free_selections": 0,
"item_external_ids": [
"<string>"
]
}
]
}{
"error": {
"type": "authentication_error",
"code": "invalid_external_id",
"message": "<string>",
"request_id": "req_01J9ZS2B6C8D",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Authorizations
Headers
Body
application/json
Response
Menu accepted and publishing.

