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.
| Resource | Endpoints | On your |
|---|---|---|
| Menu items | /menu/items | Dining listing |
| Store products | /store/products | Store |
| Activity items, classes and courts | /activity/items, /activity/classes, /activity/courts | Activity listing |
| Wellness services and packages, stays, pets | /catalogue/:section/items | Business profile's Catalogue sections |
| Tours, with their packages | /tours | Business |
| Events, with their ticket tiers | /events | Business |
| Watches — movies, shows, screenings | /watches | Business |
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#
- 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 /menu/items/sku-4471/publish
- Localoy → Customers: The item appears on your menu
- — Later, when something changes —
- Your server → Localoy: PUT /menu/items/sku-4471
- Localoy → Your server: 200 updated — still published
- Import each image once with
POST /mediaand keep the URL it returns. A listing only takes images Localoy stores (400 image_not_importedotherwise), so a re-sync never uploads the same picture again. PUTthe whole listing. The firstPUTof anexternalIdcreates it (201), every later one replaces it (200). A field you leave out goes back to its default — leave outtagsand the item has none. The one exception is a product'sstock: leave it out and the counts stay as they are.- Publish it. A new listing is a draft customers cannot see.
POST …/publishshows it andPOST …/unpublishhides it again. APUTnever changes whether a listing is published. - Delete with
DELETE …/:externalIdwhen 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.