Catalogue overview

How catalogue items keep your own stock records in step with Localoy, and how they drive webhooks and live inventory checks.

A catalogue item is a stock record from your own system — a dish, a ticket, a session, a product — keyed by your own ID, the externalId. Catalogue items are never shown to customers; what customers see is a listing. The catalogue does two jobs:

  1. It links your items to your Localoy bookables, so Localoy can ask your system whether there is stock before it accepts a booking.
  2. It announces changes: every create, update and delete sends a catalog.item.* webhook.
OperationEndpointScope
Create or replacePOST /catalog/itemsREGISTRATION
ListGET /catalog/itemsINVENTORY
RetrieveGET /catalog/items/:externalIdINVENTORY
Update some fieldsPATCH /catalog/items/:externalIdUPDATE
DeleteDELETE /catalog/items/:externalIdUPDATE

The flow#

Keeping a catalogue item in sync
Keeping a catalogue item in syncYour serverLocaloyYour webhook endpoint1. POST /catalog/items sku-44712. 201 created3. catalog.item.createdWhen stock or price changes in your system4. PATCH /catalog/items/sku-44715. 200 only the sent fields changed6. catalog.item.updatedTo reconcile7. GET /catalog/items?limit=…&offset=…8. 200 a page, newest firstWhen you stop selling it9. DELETE /catalog/items/sku-447110. catalog.item.deleted
  1. Your server → Localoy: POST /catalog/items sku-4471
  2. Localoy → Your server: 201 created
  3. Localoy → Your webhook endpoint: catalog.item.created
  4. — When stock or price changes in your system —
  5. Your server → Localoy: PATCH /catalog/items/sku-4471
  6. Localoy → Your server: 200 only the sent fields changed
  7. Localoy → Your webhook endpoint: catalog.item.updated
  8. — To reconcile —
  9. Your server → Localoy: GET /catalog/items?limit=…&offset=…
  10. Localoy → Your server: 200 a page, newest first
  11. — When you stop selling it —
  12. Your server → Localoy: DELETE /catalog/items/sku-4471
  13. Localoy → Your webhook endpoint: catalog.item.deleted
  1. Create it. POST is an upsert on externalId: the first call answers 201, later ones 200. On a repeat, fields you leave out keep their stored values; send null to clear a nullable field.
  2. Change it. Use PATCH for a few fields — most often stock — instead of re-sending the item.
  3. Reconcile. Page through the list with limit and offset and compare with your own records.
  4. Delete it. Deletion is permanent, and the externalId cannot be renamed — to rename, delete and create again.

Stock and availability#

FieldMeaning
availableWhether you are selling the item at all.
stock: nullYou do not track stock for this item.
stock: 0You track stock and have none left.
stock: 12You track stock and have 12.

These values are a snapshot. When a customer books a linked item, Localoy does not read them — it asks your inventory endpoint live. To link an item, see the Bookables overview.

Rules to remember#

  • Items written for you by a connected integration carry a managedBy object, and the integration keeps writing them. Change those at their source.
  • A sandbox key reads and writes only the sandbox's own items.

Guide: Sync your catalogue.