Skip to Content

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"
ParameterRequiredNotes
locationWhen the key covers several locationsOne 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.

FieldContains
location, currencyThe location and its currency
channel_markupsPrice changes for online orders (delivery and pickup) and third_party delivery partners
menusMenus, such as Breakfast or Late night, with their hours
categoriesCategories, sorted by sort_order
itemsItems, with their prices, category, menus, modifier groups, and taxes
modifier_groupsModifier groups and their options and sub_options
taxesTaxes that are switched on
discountsprice_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 id is unique only within its group. Store options by modifier group id and option id together. An option and a sub-option in one group can share an id.
  • An option last saved by an older Back Office editor gets a new id when it’s renamed. Two such options with the same name can swap ids when they’re reordered. Saving the options again in Back Office fixes their ids.
  • 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 of menu_ids and modifier_group_ids.

Prices and times

  • All money is integer cents in currency. Percentages are numbers, such as 7.625.
  • An item’s price is its base price. Each picked option adds its price once per quantity.
  • An item with open_price has its price typed in at the register.
  • An item with a unit, such as LB, is sold by weight, and price is per unit.
  • online_upcharge is added on online orders (delivery and pickup), not kiosk or QR. third_party_upcharge is added on delivery partners. Both come on top of channel_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 hours of null means all day, every day. An empty list means never.

Taxes

  • Use each item’s tax_ids for the taxes charged on it. They also cover items with no category.
  • A tax’s category_ids lists 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.
  • inclusive means the rate is already in the item prices.
  • excluded_order_types lists order types the tax isn’t charged on: dinein, pickup, delivery, curbside, drive, qrcode, or retail. It’s always empty for an inclusive tax.

Discounts

price_rules change an item’s price at the POS, such as a happy hour.

FieldMeaning
triggerautomatic, manager_approval, member_automatic, or member_manager_approval. Member rules apply to Member Program members of at least member_tier.
hoursWhen 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_idsThe items it covers: listed items, items in a listed category, or items on a listed menu
adjustmentpercent_off, amount_off, or fixed_price (the item sells for amount)
excluded_order_typespickup, 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.

FlagOnMeaning
sold_outMenu, category, item, modifier group, optionSold 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_onlineMenu, category, itemNot shown in online ordering. The POS still sells it.
third_partyMenu, category, itemSent to delivery partners
onlineModifier group, optionfalse means POS only

Errors

StatuscodeWhen
403insufficient_scopeThe key lacks menu:read
404location_missingThe location no longer exists
503replica_unavailable, menu_timeoutThe menu is briefly unavailable. Retry after Retry-After.

See Errors for the codes every endpoint shares.

Last updated on