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.

OperationEndpoint
Create or replacePUT /catalogue/:section/items/:externalId
List, retrieve, publish, unpublish, deleteRead, publish or delete at /catalogue/:section/items

The flow#

A wellness package built from services
A wellness package built from servicesYour serverLocaloyCustomer1. PUT …/wellness-services/items/massage2. 201 draft3. PUT …/wellness-packages/items/spa-monthservices lists externalIds of services you created4. 201 draft, or 400 service_not_found5. POST …/spa-month/publish6. The package appears7. Book or buy it8. Inventory check, if enabled9. Webhook: booking.created
  1. Your server → Localoy: PUT …/wellness-services/items/massage
  2. Localoy → Your server: 201 draft
  3. Your server → Localoy: PUT …/wellness-packages/items/spa-month
  4. Note: services lists externalIds of services you created
  5. Localoy → Your server: 201 draft, or 400 service_not_found
  6. Your server → Localoy: POST …/spa-month/publish
  7. Localoy → Customer: The package appears
  8. Customer → Localoy: Book or buy it
  9. Localoy → Your server: Inventory check, if enabled
  10. Localoy → Your server: Webhook: booking.created
  1. Pick the section in the path. An externalId belongs to one section; using it in another answers 409 externalId_in_another_section, and an unknown section 404 section_not_found.
  2. Create dependencies first. A package's services are the externalIds of wellness services you created with this API. A deleted service drops out of the list.
  3. Services can have variants — up to 10 { name, durationMinutes, price }; the service's price and length are then its cheapest variant's.
  4. Stay and pets items must be bookable, purchasable or both (400 item_unavailable if neither).
  5. Publish to show it. A PUT never changes whether an item is published.
  6. 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.