Menu
GET /v1/menu returns one location’s whole menu in one response: menus, categories, items, modifier groups and their options, taxes, and discounts. Use it to keep another system’s copy of the menu in step with Selflane.
Needs the menu:read scope (Menu in Back Office). See Scopes.
Request
curl "https://developer.selflane.com/v1/menu?location=64b0c1e2f3a4b5c6d7e8f901" \
-H "Authorization: Bearer $SELFLANE_API_KEY"| Parameter | Required | Notes |
|---|---|---|
location | When the key covers several locations | One of the key’s locations |
The response is one object, not a list, so there’s no paging.
What you get
You get the menu as it’s saved in Back Office now. Combos and the POS’s matrix modifiers aren’t included.
Every object is listed, whether or not it’s available right now. Sold-out, hidden, and channel-limited objects carry flags (see Availability), so filter by channel on your side.
| Field | Contains |
|---|---|
location, currency | The location and its currency |
channel_markups | Price changes for online orders (delivery and pickup) and third_party delivery partners |
menus | Menus, such as Breakfast or Late night, with their hours |
categories | Categories, sorted by sort_order |
items | Items, with their prices, category, menus, modifier groups, and taxes |
modifier_groups | Modifier groups and their options and sub_options |
taxes | Taxes that are switched on |
discounts | price_rules (item price changes) and order_discounts (whole-order discounts staff apply) |
The API reference lists every field.
Ids
Every object has an id that stays the same between calls. Store by id and update in place.
- A modifier option or sub-option
idis unique only within its group. Store options by modifier groupidand optionidtogether. An option and a sub-option in one group can share anid. - An option last saved by an older Back Office editor gets a new
idwhen it’s renamed. Two such options with the same name can swapids when they’re reordered. Saving the options again in Back Office fixes theirids. - A modifier group can belong to several items. It’s listed once, and each item names it in
modifier_group_ids. - Only modifier groups that some item uses are listed.
- Links to deleted objects are dropped. An item in a deleted category has
category_id: null, and a deleted menu or modifier group is left out ofmenu_idsandmodifier_group_ids.
Prices and times
- All money is integer cents in
currency. Percentages are numbers, such as7.625. - An item’s
priceis its base price. Each picked option adds itspriceonce per quantity. - An item with
open_pricehas its price typed in at the register. - An item with a
unit, such asLB, is sold by weight, andpriceis per unit. online_upchargeis added on online orders (delivery and pickup), not kiosk or QR.third_party_upchargeis added on delivery partners. Both come on top ofchannel_markups.- Times are minutes after midnight in the location’s timezone (see
GET /v1/business). A menu that closes after midnight ends past 1440, so 2 AM is 1560. - A menu’s
hoursofnullmeans all day, every day. An empty list means never.
Taxes
- Use each item’s
tax_idsfor the taxes charged on it. They also cover items with no category. - A tax’s
category_idslists the categories it’s charged on. A tax set up without categories covers every category no other tax names, and this list spells that out. inclusivemeans the rate is already in the item prices.excluded_order_typeslists order types the tax isn’t charged on:dinein,pickup,delivery,curbside,drive,qrcode, orretail. It’s always empty for an inclusive tax.
Discounts
price_rules change an item’s price at the POS, such as a happy hour.
| Field | Meaning |
|---|---|
trigger | automatic, manager_approval, member_automatic, or member_manager_approval. Member rules apply to Member Program members of at least member_tier. |
hours | When an automatic rule applies: on one of days, from start_minute to end_minute, both included. It doesn’t run past midnight, so an end_minute before start_minute never matches. null for other triggers. |
menu_ids, category_ids, item_ids | The items it covers: listed items, items in a listed category, or items on a listed menu |
adjustment | percent_off, amount_off, or fixed_price (the item sells for amount) |
excluded_order_types | pickup, delivery, or dinein. Here dinein stands for every order type other than pickup and delivery. |
order_discounts are discounts staff apply to a whole order at the POS. category_ids limits one to items in those categories; empty means the whole order. hours works as for price rules, or is null for any time. max_per_order is null for no limit.
Availability
An item can be ordered on a channel only if the item, its category, and at least one of its menus all allow it.
| Flag | On | Meaning |
|---|---|---|
sold_out | Menu, category, item, modifier group, option | Sold out everywhere until it’s turned back on. An item is also sold_out when a required modifier group is sold out, or can’t be completed because its options are sold out. |
hidden_online | Menu, category, item | Not shown in online ordering. The POS still sells it. |
third_party | Menu, category, item | Sent to delivery partners |
online | Modifier group, option | false means POS only |
Errors
| Status | code | When |
|---|---|---|
403 | insufficient_scope | The key lacks menu:read |
404 | location_missing | The location no longer exists |
503 | replica_unavailable, menu_timeout | The menu is briefly unavailable. Retry after Retry-After. |
See Errors for the codes every endpoint shares.