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.
| Operation | Endpoint | Scope |
|---|---|---|
| Create or replace | PUT /menu/items/:externalId | REGISTRATION |
| List and retrieve | GET /menu/items | REGISTRATION |
| Publish, unpublish, delete | POST …/publish | UPDATE |
The flow#
- Your server → Localoy: POST /media { url }
- Localoy → Your server: 201 { url: Localoy's copy }
- Your server → Localoy: PUT /menu/items/sku-4471
- Localoy → Your server: 201 created — a draft
- Your server → Localoy: POST …/sku-4471/publish
- Localoy → Customer: The item appears on your menu
- Customer → Localoy: Order it
- Localoy → Your server: Inventory check, if enabled
- Localoy → Customer: Order placed
- Localoy → Your server: Webhook: booking.created
- — When something changes —
- Your server → Localoy: PUT /menu/items/sku-4471
- Localoy → Your server: 200 updated — still published
- Import the image first. The item's
imagemust be a URL fromPOST /media. PUTthe whole item. The firstPUTof anexternalIdcreates a draft (201); later ones replace it (200). An option you leave out goes back to its default.- Publish it. Customers cannot see a draft.
publishshows it,unpublishhides it again, and aPUTnever changes whether an item is published. Calling either twice is harmless. - 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. - Delete it when you stop selling it.
Rules to remember#
- Writing a new
externalIdfrom two requests at once gives one201and one409 resource_busy— retry the second. - If the item is changed in the Partner Portal, Localoy sends
listing.updated; your nextPUTreplaces 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_allowedotherwise).
Guide: Sync your listings.