Catalogue sections overview
How wellness services and packages, stays and pets items are synced and booked or bought.
Catalogue sections are the offerings on your business profile that are not dining, store or
activities. There are four, named in the path: wellness-services, wellness-packages, stay and
pets. They need no listing setup, and they are different from the stock catalogue.
| Operation | Endpoint |
|---|---|
| Create or replace | PUT /catalogue/:section/items/:externalId |
| List, retrieve, publish, unpublish, delete | Read, publish or delete at /catalogue/:section/items |
The flow#
- Your server → Localoy: PUT …/wellness-services/items/massage
- Localoy → Your server: 201 draft
- Your server → Localoy: PUT …/wellness-packages/items/spa-month
- Note: services lists externalIds of services you created
- Localoy → Your server: 201 draft, or 400 service_not_found
- Your server → Localoy: POST …/spa-month/publish
- Localoy → Customer: The package appears
- Customer → Localoy: Book or buy it
- Localoy → Your server: Inventory check, if enabled
- Localoy → Your server: Webhook: booking.created
- Pick the section in the path. An
externalIdbelongs to one section; using it in another answers409 externalId_in_another_section, and an unknown section404 section_not_found. - Create dependencies first. A package's
servicesare theexternalIds of wellness services you created with this API. A deleted service drops out of the list. - Services can have variants — up to 10
{ name, durationMinutes, price }; the service's price and length are then its cheapest variant's. - Stay and pets items must be bookable, purchasable or both (
400 item_unavailableif neither). - Publish to show it. A
PUTnever changes whether an item is published. - Customers book or buy. Localoy asks your inventory endpoint with
module=catalogue; paid-online orders can go through your checkout.
Rules to remember#
- A catalogue list holds only its own section's items.
- Items delete normally; their past bookings stay.
- A sandbox key validates and changes nothing (
"dryRun": true). - A Technology Provider needs the Catalogue sections module.