Create or replace a catalogue item

Create a wellness service or package, a stay or a pets item, or replace it, by your own ID.

PUT{BASE_URL}/catalogue/:section/items/:externalId

section is wellness-services, wellness-packages, stay or pets. The first PUT creates the item as a draft (201); later ones replace it (200) and keep whether it is published. Requires the REGISTRATION scope; a Technology Provider also needs the Catalogue sections module.

An externalId belongs to one section: using it in another answers 409 externalId_in_another_section.

Every section

namestringrequired
1–80 characters.
priceintegeroptional
Whole taka, 0–1,000,000. Required except for a wellness service with variants.
categorystring | nulloptional
Up to 40 characters.
descriptionstring | nulloptional
Up to 500 characters.
imagestring | nulloptional
A URL from POST /media.
locationIdsstring[]optional
IDs from GET /locations.
linkobject | nulloptional
{ url, label }.

wellness-services

durationMinutesintegeroptional
5–720. Required unless you send variants.
variantsobject[]optional
Up to 10 { name, durationMinutes, price }. With variants, the service's price and length are its cheapest variant's.
includedobject[]optional
Up to 12 { name, detail? }.
audiencestringoptional
EVERYONE (default), WOMEN, MEN or KIDS.
clientsAtSameTimeinteger | nulloptional
1–50.

wellness-packages

packageTypestringoptional
PACKAGE (default), PROGRAM or MEMBERSHIP.
validBystringoptional
TIME (default), VISITS or BOTH.
validMonthsintegeroptional
1–36. Required when valid by time.
visitsintegeroptional
1–1,000. Required when valid by visits.
servicesstring[]optional
The externalIds of wellness services you created with this API, up to 100.

stay and pets

canBookbooleanoptional
Customers can book it. Defaults to true.
canPurchasebooleanoptional
Customers can buy it outright. Defaults to false. At least one of the two must be true.
durationTextstring | nulloptional
For example per night. Up to 40 characters.

A package's services come back as externalIds. A service that has been deleted drops out of the list.

StatusCodeWhen
404section_not_foundsection is not one of the four.
400service_not_foundA package names a service you have not created.
400item_unavailableA stay or pets item is neither bookable nor purchasable.
409externalId_in_another_sectionThe externalId is already used in another section.
cURL
curl -X PUT "$LOCALOY_BASE_URL/catalogue/wellness-packages/items/spa-month" \
  -H "Authorization: Bearer $LOCALOY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Spa month",
    "price": 9000,
    "validBy": "TIME",
    "validMonths": 1,
    "services": ["massage-swedish", "facial-basic"]
  }'
Response · 201
{
  "success": true,
  "message": "Item created as a draft — publish it to show it to customers",
  "dryRun": false,
  "created": true,
  "data": {
    "externalId": "spa-month",
    "id": "cm4pack4ge000000000001",
    "section": "wellness-packages",
    "name": "Spa month",
    "price": 9000,
    "category": null,
    "description": null,
    "image": null,
    "locationIds": [],
    "link": null,
    "packageType": "PACKAGE",
    "validBy": "TIME",
    "validMonths": 1,
    "visits": null,
    "services": ["massage-swedish", "facial-basic"],
    "published": false,
    "updatedAt": "2026-11-10T10:00:00.000Z"
  }
}