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/:externalIdsection 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? }. audiencestringoptionalEVERYONE(default),WOMEN,MENorKIDS.clientsAtSameTimeinteger | nulloptional- 1–50.
wellness-packages
packageTypestringoptionalPACKAGE(default),PROGRAMorMEMBERSHIP.validBystringoptionalTIME(default),VISITSorBOTH.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.
| Status | Code | When |
|---|---|---|
404 | section_not_found | section is not one of the four. |
400 | service_not_found | A package names a service you have not created. |
400 | item_unavailable | A stay or pets item is neither bookable nor purchasable. |
409 | externalId_in_another_section | The 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"
}
}