Skip to content
Maple

Menus

How a Maple catalog is structured, how to map your own catalog onto it, and the rules that prevent wrong assumptions.

A catalog is the menu you publish. It describes everything a customer can order at a location: the items, how they’re priced, how they’re customized, and which taxes and discounts apply. You publish it as one JSON document, and Maple keys every object off the external IDs you assign. This page explains the model and how to map your own menu onto it. The Publish your catalog guide covers the request flow, Catalog recipes has worked examples, and the endpoint reference lists every field.

One catalog per location

Each location has exactly one catalog. Inside it, you split the menu into menus (Lunch, Dinner, Summer Specials), each with its own hours.

Publishing replaces that one catalog as a whole (applied as a diff — see below). Maple keeps version history internally and always serves the current version, but from your side the model is simple: one location, one catalog, which you publish in full.

The tree

A catalog has three top-level lists: menus, categories and items. They point at each other by external_id, in order. Shared definitions sit beside them:

flowchart TD
  Menu[Menu · carries the hours] -->|category_ids| Cat[Category]
  Cat -->|item_ids| Item[Item]
  Item --> Var[Variation · carries the price]
  Var -. "price.overrides" .-> Menu
  Item -.modifier_groups.-> MG[Modifier group]
  Var -.modifier_groups.-> MG
  MG --> Opt[Modifier option]
  Opt -.nested.-> MG
  Item -.tax_rate_ids.-> Tax[Tax rates]
  • Menu — a set of categories open at the same hours (Lunch, Dinner). At least one is required. Hours live here and nowhere else.
  • Category — a menu section (Drinks, Mains). It lists its items in order with item_ids. One category can sit in several menus.
  • Item — a product. It lives in the top-level items list, and categories point at it. One item can sit in several categories and stays one object with one stock status. It has one or more variations and may carry modifier groups and tax rates.
  • Variation — a buyable form of an item (Small / Large, or just “Regular”). The price lives here. Every item has at least one.
  • Modifier group — a set of choices (Milk, Toppings) with selection rules. Defined once and shared, or inline on an item. Options can themselves carry nested modifier groups.

Every category must be in at least one menu, and every item in at least one category. Publish refuses a category or item that no one lists.

Mapping your own catalog

Most integrators already have a menu model of their own. Here’s how typical concepts map — getting this right up front avoids the most common mistakes:

Your concept Maps to Notes
Daypart or named menu (Lunch, Dinner, Seasonal) Menu Carries the hours. Lists its categories in order with category_ids.
Menu section / heading Category Order matters. Lists its items with item_ids. A category can sit in several menus.
Product / dish Item A name and description; not where the price lives. One item can sit in several categories.
Size / option that changes the base price (Small/Large) Variation of the item Not a separate item. Every item needs ≥1 variation, even if it’s just “Regular”.
Add-on / customization (extra shot, no onions) Modifier option in a modifier group Group carries the selection rules; option carries any price change.
A reusable choice set used on many items (Milk) Shared modifier group referenced by group_id Define once, reference everywhere.
Combo / build-your-own with sub-choices Nested modifier groups Options can carry their own modifier groups.

External IDs are yours

Every object — menu, category, item, variation, modifier group, option, tax rate, discount, promotion — carries an external_id that you assign and own. Maple never changes it. This is the backbone of the model:

  • Re-publishing with the same external_id updates the same object instead of creating a duplicate.
  • An order line item (and modifier) carries the external_id you published for that catalog object, so an incoming order maps directly back to your own records.
  • Maple also mints its own IDs (menu_…, ctg_…, item_…, var_…) in responses for reference, but you address everything by your external_id.
  • Objects reference each other by external_id too. When a menu lists category_ids, a category lists item_ids, a price override names a menu_id, a modifier group reference uses group_id, an item points at a tax rate with tax_rate_ids, or a promotion names its discount with discount_id, those values are the external_ids you assigned — not Maple’s minted IDs. A reference that starts with menu_, ctg_, item_ or var_ gets a hint to use the external_id.
  • An order line item’s external_id is the variation’s external_id.

Use IDs that are stable in your own system (a SKU, a primary key) — not the display name, which can change.

Pricing

Prices are objects, not bare numbers, so the model can express more than a flat amount. The base shape is an amount in integer minor units with a currency:

{ "money": { "amount": 450, "currency": "USD" } }

Every price needs money. price_type picks how Maple charges it:

  • fixed (the default) — money per unit.
  • per_unit — money per measurement_unit ({ "unit": "lb" }), for items sold by weight or measure.
  • bulk — money per unit, or a tier’s unit_price_money once the quantity reaches its min_quantity (bulk_tiers).

A price can also carry compare_at_money, a strikethrough amount. A modifier option’s price is always fixed. To charge a different price on one menu, see Prices per menu. Every field that holds money ends in money. See Money and amounts.

Modifiers

A modifier group has selection rules and a set of options. The rules are richer than a simple min/max, which is what lets you express things like “choose up to 3, but no more than 2 of the same”:

Field Controls
min_selections / max_selections Total selections allowed (counting quantities).
min_unique_selections / max_unique_selections How many distinct options may be chosen.
free_selection_count How many selections are free before charges apply.
allowed_quantities Permitted per-option quantities.
option min_quantity / max_quantity Bounds on a single option.

Reference a shared group from an item or variation by group_id, or define one inline. The two shapes are mutually exclusive in a single entry — a reference carries only group_id; a definition carries name and options. Mixing them is rejected rather than silently truncated. Options can carry their own nested modifier groups for build-your-own flows, and selected nested modifiers appear recursively under each option’s modifier_groups on the order resource. See Catalog recipes for worked examples.

Tax, discounts and promotions

These are top-level collections. You attach them by external_id:

  • Tax rates — method is percentage (the default) or flat (flat_money). A rate is added on top of the price, or with inclusion: "inclusive" is already in it (percentage rates only). To tax on top of other rates, set base: "price_plus_prior_taxes" and list them in compound_on_tax_rate_ids; those rates must be added on top, not inclusive. Attach rates to an item with tax_rate_ids; its modifiers are taxed at the item’s rates.
  • Discounts — benefit_type is percentage (up to two decimal places, capped by maximum_money if you set it), amount (money off) or set_price (the order costs money).
  • Promotions — apply one discount to the whole order, on their own, with no code. A promotion can need a minimum subtotal (eligibility.minimum_order_subtotal_money), run in weekly availability windows, and start and end at valid_from / valid_until, Unix timestamps in seconds. When several promotions apply, Maple takes the one that saves the guest most.

Most catalogs need a single tax rate and nothing else.

What Maple refuses

A catalog holds only what Maple charges. Publishing any of these answers 400, and error.param names the field:

  • fees and deposits (fees, fee_ids)
  • tax categories (tax_categories, tax_category_id), bracket taxes, tax brackets, condition and tender_exemptions, and a base other than price or price_plus_prior_taxes
  • a variable (open) price, tax_inclusive prices, currency_prices and the currencies collection
  • tax_rate_ids on a modifier option, and a modifier option price that is not fixed
  • product_sets, discounts that target some items (bxgy, free_item, free_fee), coupons, and a promotion’s application_mode, redemption or stacking

To charge a deposit today, add it to the variation’s price.

A menu is how you express time of day. Lunch and Dinner are two menus, each with its own hours, in the one catalog.

A menu has these fields:

Field Controls
external_id Your handle for the menu. Price overrides name it as menu_id.
name, description What the menu is called. description is optional, stored and returned.
active Defaults to true. false switches the menu off without deleting its categories and items.
availability The hours. Leave it out and the menu is always open.
category_ids The menu’s categories, in order.

menus is required. An empty list is refused with invalid_catalog, its message naming [menus_required]; leaving the key out fails the body decode with invalid_request (param: "menus"). Maple does not add a hidden default menu, so a catalog with one menu all day still sends that one menu.

Hours go on menus only. A category or item takes no availability. A daily special or a late-night section is its own menu.

availability holds a list of windows. Each window is a day plus a time range:

  • day_of_week — a lowercase day name: monday, tuesday, wednesday, thursday, friday, saturday or sunday. Add one window per active day.
  • start_time / end_time — HH:MM, 24-hour.

The rules:

  • A window is half-open, [start, end). It includes the start minute and not the end minute. A Lunch window that ends at 15:00 and a Dinner window that starts at 15:00 do not overlap.
  • 24:00 is allowed as an end_time, so a window can run to the end of the day.
  • An end_time before the start_time runs past midnight into the next day. 17:00 to 01:00 on saturday ends at 01:00 on Sunday.
  • start_time equal to end_time is refused.
  • windows needs at least one entry. An empty list is refused. To say “always open”, leave availability out.
  • Hours read in the location’s own timezone, shown on GET /v1/locations/{id}. A catalog has no timezone field.

To turn a seasonal menu off, set active: false and keep it in the document. If you delete it instead, its categories and items lose their Maple IDs and stock status. See the recipes.

Prices per menu

An item can sit in two menus and cost a different amount in each. Set the usual price in price.money, then list the exceptions in price.overrides:

{
"money": { "amount": 1300, "currency": "USD" },
"overrides": [{ "menu_id": "dinner", "money": { "amount": 1600, "currency": "USD" } }]
}

This variation costs $13.00 on every menu except Dinner, where it costs $16.00. The rules:

  • menu_id is the external_id of a menu that holds the item.
  • Each menu appears at most once in overrides.
  • money is not negative, and its currency equals the catalog currency.
  • Only fixed prices take overrides.
  • Modifier options take no overrides yet.

Two menus can hold one variation and be open at the same time only if the variation costs the same on both. If not, publish is refused with menu_price_overlap: the guest could not know which price applies. A menu with no hours is open all the time, so it overlaps every other menu. Overnight windows count. Lunch from 11:00 to 15:00 and Dinner from 15:00 to 22:00 do not overlap, so a different price on each passes.

Orders and menu hours

A guest can order an item only while one of its menus is open. If every menu that holds an item is closed at the time of the order, or at its scheduled_for time, Maple refuses the order, and the error message names the items and when their menus serve. Where an item sits in several open menus, Maple charges the price on the menu that is open.

Stock status

Stock status is in_stock, out_of_stock, or low_stock. On publish, omitting it preserves the current value; brand-new objects default to in_stock. To 86 an item without republishing, call POST /v1/locations/{locationId}/catalog/stock; see 86 an item.

Publishing replaces the whole catalog

You always send the entire catalog as the desired state. Maple applies it as a diff keyed by external_id:

  • Validation is all-or-nothing — a 400 lists every issue, names the first field in error.param, and changes nothing. Beyond the field rules, it refuses a catalog with no menus (menus_required), a menu_price_overlap, a category in no menu, an item in no category, empty or zero-length windows, and bad price overrides.
  • An identical re-publish is a no-op, and object identities stay stable, so you can publish on every catalog change without churn.

So the simplest integration re-publishes the full catalog whenever your source changes. See Publish your catalog.