Menu items overview

How a menu item goes from your system to your Localoy dining listing, and what happens when a customer orders it.

A menu item is a dish or drink on your dining listing. You address each one by your own externalId. Set the dining listing up once in the Partner Portal; until then a write answers 409 dining_not_set_up.

OperationEndpointScope
Create or replacePUT /menu/items/:externalIdREGISTRATION
List and retrieveGET /menu/itemsREGISTRATION
Publish, unpublish, deletePOST …/publishUPDATE

The flow#

A menu item, from draft to order
A menu item, from draft to orderYour serverLocaloyCustomer1. POST /media { url }2. 201 { url: Localoy's copy }3. PUT /menu/items/sku-44714. 201 created — a draft5. POST …/sku-4471/publish6. The item appears on your menu7. Order it8. Inventory check, if enabled9. Order placed10. Webhook: booking.createdWhen something changes11. PUT /menu/items/sku-447112. 200 updated — still published
  1. Your server → Localoy: POST /media { url }
  2. Localoy → Your server: 201 { url: Localoy's copy }
  3. Your server → Localoy: PUT /menu/items/sku-4471
  4. Localoy → Your server: 201 created — a draft
  5. Your server → Localoy: POST …/sku-4471/publish
  6. Localoy → Customer: The item appears on your menu
  7. Customer → Localoy: Order it
  8. Localoy → Your server: Inventory check, if enabled
  9. Localoy → Customer: Order placed
  10. Localoy → Your server: Webhook: booking.created
  11. — When something changes —
  12. Your server → Localoy: PUT /menu/items/sku-4471
  13. Localoy → Your server: 200 updated — still published
  1. Import the image first. The item's image must be a URL from POST /media.
  2. PUT the whole item. The first PUT of an externalId creates a draft (201); later ones replace it (200). An option you leave out goes back to its default.
  3. Publish it. Customers cannot see a draft. publish shows it, unpublish hides it again, and a PUT never changes whether an item is published. Calling either twice is harmless.
  4. Customers order it. If you have inventory checks enabled, Localoy asks your system about the item (module=food_order) before accepting the order. Orders keep their own copy of what was ordered, so editing or deleting the item later never rewrites them.
  5. Delete it when you stop selling it.

Rules to remember#

  • Writing a new externalId from two requests at once gives one 201 and one 409 resource_busy — retry the second.
  • If the item is changed in the Partner Portal, Localoy sends listing.updated; your next PUT replaces it with what you send, so read it back first.
  • A sandbox key's PUT, publish and delete are fully validated but change nothing ("dryRun": true).
  • A Technology Provider needs the Dining module (403 provider_module_not_allowed otherwise).

Guide: Sync your listings.