Sync your listings

Keep the menu items, products, activities, catalogue items, tours, events and watches customers see on Localoy in step with your own system.

The listings endpoints write what customers actually see on Localoy: your restaurant's menu, your store's products, your activities, classes and courts, your wellness, stay and pets offerings, and your tours, events and watches (movies, shows and screenings). Each listing is addressed by your own ID — the externalId — so your system never has to store Localoy's.

ResourceEndpointsOn your
Menu items/menu/itemsDining listing
Store products/store/productsStore
Activity items, classes and courts/activity/items, /activity/classes, /activity/courtsActivity listing
Wellness services and packages, stays, pets/catalogue/:section/itemsBusiness profile's Catalogue sections
Tours, with their packages/toursBusiness
Events, with their ticket tiers/eventsBusiness
Watches — movies, shows, screenings/watchesBusiness

Set the dining listing, store or activity listing up once in the Partner Portal. Until it exists, a write answers 409 dining_not_set_up, 409 store_not_set_up or 409 activity_not_set_up. Catalogue sections, tours, events and watches need no setup.

Catalogue items are different

Catalogue items are the stock records Localoy's inventory checks ask your system about. They are never shown to customers. Listings are.

The flow#

Adding a menu item
Adding a menu itemYour serverLocaloyCustomers1. POST /media { url }2. 201 { url: Localoy's copy }3. PUT /menu/items/sku-44714. 201 created — a draft5. POST /menu/items/sku-4471/publish6. The item appears on your menuLater, when something changes7. PUT /menu/items/sku-44718. 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 /menu/items/sku-4471/publish
  6. Localoy → Customers: The item appears on your menu
  7. — Later, when something changes —
  8. Your server → Localoy: PUT /menu/items/sku-4471
  9. Localoy → Your server: 200 updated — still published
  1. Import each image once with POST /media and keep the URL it returns. A listing only takes images Localoy stores (400 image_not_imported otherwise), so a re-sync never uploads the same picture again.
  2. PUT the whole listing. The first PUT of an externalId creates it (201), every later one replaces it (200). A field you leave out goes back to its default — leave out tags and the item has none. The one exception is a product's stock: leave it out and the counts stay as they are.
  3. Publish it. A new listing is a draft customers cannot see. POST …/publish shows it and POST …/unpublish hides it again. A PUT never changes whether a listing is published.
  4. Delete with DELETE …/:externalId when you stop selling it. An activity item, tour or event that has bookings cannot be deleted (409 listing_has_bookings) — deleting it would delete them. Unpublish it instead.

Retries and concurrency#

Every write is safe to repeat: sending the same PUT again leaves the same listing.

If two requests write a new externalId at the same moment, one creates it and the other gets 409 resource_busy — wait a moment and send it again, and it updates the listing the first one made. Localoy never makes two listings for one externalId.

If someone deletes a listing in the Partner Portal, GET answers 404 and your next PUT creates it again under the same externalId.

Edits made in the Partner Portal#

The Partner Portal can still edit a listing you manage. When it does, Localoy sends your webhook endpoints a listing.updated or listing.deleted event. Your next PUT replaces the listing with what you send, so read it back with GET when you get the event, or make your system the place changes are made.

Sandbox#

A sandbox key never changes your listings. Its PUT, publish and delete are checked exactly as a production key's would be — including every rule about prices, offers and variants — and answered with "dryRun": true and what would have been saved. See Sandbox and production.

Technology Providers#

A provider manages only the listings it created for a partner; a partner's own key can manage all of them. A provider writing an externalId another integration holds gets 409 resource_managed_elsewhere. Each kind of listing needs its module: Dining for menu items, Store for products, Activities for activity items, classes and courts, Tours, Catalogue sections and Events. Without it a write answers 403 provider_module_not_allowed.