Event types
Every webhook event, when it is sent, and the payload it carries.
Event types#
| Event | Sent when | Environment | data |
|---|---|---|---|
booking.created | A customer books or orders: an activity booking, a dining reservation, an event RSVP or ticket, a tour booking, a food or store order, a class, court, appointment, stay or pets booking, or a wellness package. | Production | booking |
booking.updated | A booking changes state: confirmed, checked in, completed, no-show, rescheduled, an RSVP decided, or confirmed by a payment. | Production | booking, change |
booking.cancelled | A booking is cancelled, by the customer or by you. | Production | booking, change |
payment.updated | A booking's payment status changes: marked paid, refunded, or failed. | Production | booking, change |
catalog.item.created | A catalogue item is created — through the API, or by a connected store's sync. | The key's; production for a store sync | item |
catalog.item.updated | A catalogue item is written again, patched, or changed by a store sync. | As above | item |
catalog.item.deleted | A catalogue item is deleted, or removed by a store sync. | As above | item (as it was) |
listing.updated | A listing you manage is changed outside the API — in the Partner Portal or by Localoy. | Production | listing, source |
listing.deleted | A listing you manage is deleted outside the API. | Production | listing, source |
profile.updated | The business profile is changed outside the API — in the Partner Portal. | Production | profile, source |
ping | You press Test in the portal. It cannot be subscribed to. | The endpoint's | message, endpointId |
Booking and payment events come from real customer activity, so they are only sent to production endpoints.
The envelope#
Every event has the same outer shape:
{
"id": "evt_mfz3k2a1Xq9vT0bLm3Rk",
"event": "booking.created",
"occurredAt": "2026-09-26T08:15:30.123Z",
"environment": "production",
"partnerId": "cm1partnerid000000000000001",
"data": { "…": "…" }
}| Field | Meaning |
|---|---|
id | The event ID, also sent as X-Localoy-Event-Id. |
event | The event type. |
occurredAt | When it happened, ISO 8601 UTC. |
environment | sandbox or production, in lower case. |
partnerId | Your Localoy partner ID. |
data | The event's payload, below. |
The order of keys in the JSON is not fixed. Parse the body as JSON — but verify the signature against the raw bytes first.
Booking events#
booking.created, booking.updated, booking.cancelled and payment.updated carry a booking.
Every field is always present; fields that do not apply to a booking are null.
{
"booking": {
"id": "cm5b00k1ng0000000000001",
"module": "activity",
"reference": "BKG-7F3K9Q",
"experienceId": "cm5act1v1ty000000000001",
"experienceName": "Kayak (1 hour)",
"status": "CONFIRMED",
"paymentStatus": "PAID",
"customerName": "Nusrat Jahan",
"customerPhone": "01712345678",
"customerEmail": null,
"quantity": 2,
"totalTaka": 900,
"scheduledFor": "2026-09-30T00:00:00.000Z",
"startTime": null,
"endTime": null,
"checkedInAt": null,
"cancelledAt": null,
"cancellationReason": null,
"createdAt": "2026-09-26T08:15:30.123Z",
"listing": null,
"items": null
},
"change": {
"previousPaymentStatus": "PENDING",
"reason": "payment_paid"
}
}| Field | Meaning |
|---|---|
module | Which kind of booking — see the table below. |
reference | The booking reference shown to the customer, where there is one. |
status | The booking's status. |
paymentStatus | The booking's payment status. |
quantity | Units booked. For dining, the party size. For events, always 1. |
totalTaka | The total in whole taka — not minor units. |
scheduledFor, startTime, endTime | When the booking is for, where it has a date or time. |
listing | What was booked: { kind, id, externalId }, where kind is tour, class, court or catalogue_item and externalId is your own ID when you registered it through the API. null for activity, dining, event and order modules. |
items | An order's lines (and a tour's package): { name, option, quantity, unitTaka, totalTaka, listingId, externalId }. externalId is your ID for the menu item, product or package when you registered it through the API. null where the booking is not an order. |
module | What it is | Provider module |
|---|---|---|
activity | An activity booking | Activities |
dining | A table reservation | Dining |
event | An event RSVP or ticket | Events |
tour | A tour booking | Tours |
food_order | A food order (pickup or delivery) | Dining |
store_order | A store order | Store |
class, court | A class or court booking | Activities |
appointment, stay, pets | A wellness appointment, stay or pets booking | Catalogue sections |
package_purchase | A wellness package or membership bought | Catalogue sections |
Differences between modules#
- Events: one webhook is sent per admission — a ticket order for four people sends four. Each
has
quantity1andreferencenull. When a customer withdraws an RSVP you receivebooking.cancelledwithstatusCANCELLEDandcancelledAtset;previousStatusis what it was before (APPROVEDorPENDING). - Dining:
quantityis the party size, andexperienceNameis the branch's name. - Tours:
quantityis the number of guests;scheduledForis the travel date;itemsholds the package. - Food and store orders:
quantityis the number of units across all lines;experienceNameis the branch;statusfollows the order (PENDING,ACCEPTED,PREPARINGorPACKED,READY,OUT_FOR_DELIVERY,COMPLETED,REJECTED,CANCELLED). A rejected order is sent asbooking.cancelled, with the reason given. - Class, court, appointment, stay and pets:
startTimeandendTimeare exact times (Dhaka time, sent in UTC). - Package purchases:
statusisACTIVE,EXPIREDorUSED_UP;quantityis the number of visits it includes (1for a time-only package);endTimeis when it expires;checkedInAtis the last visit. Each visit sendsbooking.updated.
The change object#
Sent on updates, and present when Localoy knows what changed. Every field is optional:
| Field | Meaning |
|---|---|
previousStatus | The booking's status before this change. |
previousPaymentStatus | The payment status before this change. |
reason | A short hint saying why it changed — see Reasons. |
Treat reason as informational. New values can appear at any time; do not reject unknown ones.
Reasons#
Every reason Localoy sends today, by who or what caused the change:
reason | Sent with | Modules | Means |
|---|---|---|---|
payment_paid, payment_failed, payment_refunded | payment.updated | Every module paid online | A payment through Localoy's or your checkout succeeded, failed or was refunded. |
payment_confirmed | booking.updated | Every module paid online | The successful payment above also confirmed the booking. Sent right after payment_paid. |
payment_paid, payment_failed, payment_refunded, payment_pending | payment.updated | event | You decided a ticket order's payment in the portal. |
cancelled_by_customer | booking.cancelled | All but package_purchase | The customer cancelled (for event, withdrew an RSVP). |
refunded_on_cancellation | payment.updated | activity, dining | A paid booking was refunded because it was cancelled. |
refund_on_cancel | payment.updated | tour | As above, for a tour the customer cancelled. |
confirmed, checked_in, completed, no_show, cancelled_by_partner | booking.updated or booking.cancelled | activity, dining | You changed the booking's status in the portal. |
marked_paid, refunded | payment.updated | activity, dining | You marked the booking paid or refunded in the portal. |
reschedule_approved, reschedule_rejected | booking.updated | activity, dining | You decided the customer's request to move the booking. |
confirm, check_in, complete, no_show, cancel | booking.updated or booking.cancelled | tour, class, court, appointment, stay, pets | You changed the booking's status in the portal. |
accept, reject, start_preparing, mark_ready, out_for_delivery, complete, cancel | booking.updated or booking.cancelled | food_order | You moved the order on in the portal. |
accept, reject, mark_packed, mark_ready, out_for_delivery, complete, cancel | booking.updated or booking.cancelled | store_order | As above, for a store order. |
mark_paid, mark_refunded | payment.updated | tour, food_order, store_order, class, court, appointment, stay, pets | You marked it paid or refunded in the portal. |
mark_paid | payment.updated | package_purchase | You marked the package paid. |
rsvp_approved, rsvp_rejected, rsvp_pending | booking.updated | event | You approved or rejected an RSVP, or put it back to pending. |
checked_in, check_in_reversed | booking.updated | event | A guest was checked in at the door, or the check-in was undone. |
reschedule_requested | booking.updated | tour, activity, dining | The customer asked to move the booking; it waits for your decision. The booking still stands at its old time, so scheduledFor and startTime have not changed. |
rescheduled | booking.updated | tour, activity, dining | The customer moved the booking, and no approval was needed. scheduledFor and startTime are the new time. |
reschedule_approved, reschedule_declined | booking.updated | tour | You decided the customer's request to move it. |
moved | booking.updated | tour | You moved the booking to another date or departure. |
waitlist_promoted | booking.updated | class | A place opened up and the customer came off the waitlist. |
session_cancelled | booking.cancelled, and payment.updated when it was paid | class | You cancelled the whole session, so every booking on it was cancelled. |
hold_expired | booking.cancelled | store_order | The order was never paid, and its hold on the stock ran out. |
visit | booking.updated | package_purchase | The customer used one visit. |
extended | booking.updated | package_purchase | You extended the package's expiry. |
⚠️ The same action is spelled differently by module. activity and dining say what happened
(marked_paid, refunded, cancelled_by_partner, confirmed); the other modules send the portal
action's name (mark_paid, mark_refunded, cancel, confirm). And the refund that follows a
cancellation is refunded_on_cancellation on activity and dining but refund_on_cancel on
tour. If you branch on reason, match both spellings — or, better, compare status and
paymentStatus with previousStatus and previousPaymentStatus, which mean the same in every module.
Catalogue events#
catalog.item.* events carry the item — without its metadata and localoyRef:
{
"item": {
"id": "cm1q2w3e4r5t6y7u8i9o0p1a2",
"externalId": "sku-4471",
"name": "Kacchi Biryani (full)",
"description": "Mutton kacchi with borhani",
"priceCents": 45000,
"currency": "BDT",
"available": true,
"stock": 12,
"createdAt": "2026-09-26T08:15:30.123Z",
"updatedAt": "2026-09-26T08:15:30.123Z"
}
}An API write sends its event to your endpoints of the key's environment. A connected store's sync sends to your production endpoints.
Listing events#
listing.* events tell you that a listing you manage through the listings API was
changed somewhere else — usually by the partner in the Partner Portal. They are a pointer, not a copy:
read the listing back with its GET before your next PUT, or that PUT will undo the change.
{
"listing": {
"kind": "menu_item",
"externalId": "sku-4471",
"id": "cm4m3nu1t3m0000000000001"
},
"source": "partner_portal"
}kind is menu_item, store_product, activity_item, activity_class, activity_court,
catalogue_item, tour, event or watch. Your own API writes never send these events — you already know
about them. After listing.deleted, a GET answers 404 and your next PUT of the externalId
creates the listing again.
Profile events#
profile.updated tells you that the partner changed their business profile in the Partner Portal —
the parts PATCH /profile writes. Each part of that PATCH replaces what is stored,
so read the profile back with GET /profile before your next PATCH, or it will undo the partner's
edit.
{
"profile": {
"changed": ["operatingHours"]
},
"source": "partner_portal"
}changed names the part the partner saved:
changed | What it covers |
|---|---|
businessDetails | description, websiteUrl and businessType (and portal-only fields the API does not write). |
operatingHours | The week's opening hours. |
priceRange | The price range. |
details | The profile details: tags, summary lines, the button, payment methods, office address and the per-category answers. |
Your own PATCH /profile never sends this event.