Event types

Every webhook event, when it is sent, and the payload it carries.

Event types#

EventSent whenEnvironmentdata
booking.createdA 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.Productionbooking
booking.updatedA booking changes state: confirmed, checked in, completed, no-show, rescheduled, an RSVP decided, or confirmed by a payment.Productionbooking, change
booking.cancelledA booking is cancelled, by the customer or by you.Productionbooking, change
payment.updatedA booking's payment status changes: marked paid, refunded, or failed.Productionbooking, change
catalog.item.createdA catalogue item is created — through the API, or by a connected store's sync.The key's; production for a store syncitem
catalog.item.updatedA catalogue item is written again, patched, or changed by a store sync.As aboveitem
catalog.item.deletedA catalogue item is deleted, or removed by a store sync.As aboveitem (as it was)
listing.updatedA listing you manage is changed outside the API — in the Partner Portal or by Localoy.Productionlisting, source
listing.deletedA listing you manage is deleted outside the API.Productionlisting, source
profile.updatedThe business profile is changed outside the API — in the Partner Portal.Productionprofile, source
pingYou press Test in the portal. It cannot be subscribed to.The endpoint'smessage, 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:

Envelope
{
  "id": "evt_mfz3k2a1Xq9vT0bLm3Rk",
  "event": "booking.created",
  "occurredAt": "2026-09-26T08:15:30.123Z",
  "environment": "production",
  "partnerId": "cm1partnerid000000000000001",
  "data": { "…": "…" }
}
FieldMeaning
idThe event ID, also sent as X-Localoy-Event-Id.
eventThe event type.
occurredAtWhen it happened, ISO 8601 UTC.
environmentsandbox or production, in lower case.
partnerIdYour Localoy partner ID.
dataThe 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.

data
{
  "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"
  }
}
FieldMeaning
moduleWhich kind of booking — see the table below.
referenceThe booking reference shown to the customer, where there is one.
statusThe booking's status.
paymentStatusThe booking's payment status.
quantityUnits booked. For dining, the party size. For events, always 1.
totalTakaThe total in whole taka — not minor units.
scheduledFor, startTime, endTimeWhen the booking is for, where it has a date or time.
listingWhat 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.
itemsAn 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.
moduleWhat it isProvider module
activityAn activity bookingActivities
diningA table reservationDining
eventAn event RSVP or ticketEvents
tourA tour bookingTours
food_orderA food order (pickup or delivery)Dining
store_orderA store orderStore
class, courtA class or court bookingActivities
appointment, stay, petsA wellness appointment, stay or pets bookingCatalogue sections
package_purchaseA wellness package or membership boughtCatalogue sections

Differences between modules#

  • Events: one webhook is sent per admission — a ticket order for four people sends four. Each has quantity 1 and reference null. When a customer withdraws an RSVP you receive booking.cancelled with status CANCELLED and cancelledAt set; previousStatus is what it was before (APPROVED or PENDING).
  • Dining: quantity is the party size, and experienceName is the branch's name.
  • Tours: quantity is the number of guests; scheduledFor is the travel date; items holds the package.
  • Food and store orders: quantity is the number of units across all lines; experienceName is the branch; status follows the order (PENDING, ACCEPTED, PREPARING or PACKED, READY, OUT_FOR_DELIVERY, COMPLETED, REJECTED, CANCELLED). A rejected order is sent as booking.cancelled, with the reason given.
  • Class, court, appointment, stay and pets: startTime and endTime are exact times (Dhaka time, sent in UTC).
  • Package purchases: status is ACTIVE, EXPIRED or USED_UP; quantity is the number of visits it includes (1 for a time-only package); endTime is when it expires; checkedInAt is the last visit. Each visit sends booking.updated.

The change object#

Sent on updates, and present when Localoy knows what changed. Every field is optional:

FieldMeaning
previousStatusThe booking's status before this change.
previousPaymentStatusThe payment status before this change.
reasonA 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:

reasonSent withModulesMeans
payment_paid, payment_failed, payment_refundedpayment.updatedEvery module paid onlineA payment through Localoy's or your checkout succeeded, failed or was refunded.
payment_confirmedbooking.updatedEvery module paid onlineThe successful payment above also confirmed the booking. Sent right after payment_paid.
payment_paid, payment_failed, payment_refunded, payment_pendingpayment.updatedeventYou decided a ticket order's payment in the portal.
cancelled_by_customerbooking.cancelledAll but package_purchaseThe customer cancelled (for event, withdrew an RSVP).
refunded_on_cancellationpayment.updatedactivity, diningA paid booking was refunded because it was cancelled.
refund_on_cancelpayment.updatedtourAs above, for a tour the customer cancelled.
confirmed, checked_in, completed, no_show, cancelled_by_partnerbooking.updated or booking.cancelledactivity, diningYou changed the booking's status in the portal.
marked_paid, refundedpayment.updatedactivity, diningYou marked the booking paid or refunded in the portal.
reschedule_approved, reschedule_rejectedbooking.updatedactivity, diningYou decided the customer's request to move the booking.
confirm, check_in, complete, no_show, cancelbooking.updated or booking.cancelledtour, class, court, appointment, stay, petsYou changed the booking's status in the portal.
accept, reject, start_preparing, mark_ready, out_for_delivery, complete, cancelbooking.updated or booking.cancelledfood_orderYou moved the order on in the portal.
accept, reject, mark_packed, mark_ready, out_for_delivery, complete, cancelbooking.updated or booking.cancelledstore_orderAs above, for a store order.
mark_paid, mark_refundedpayment.updatedtour, food_order, store_order, class, court, appointment, stay, petsYou marked it paid or refunded in the portal.
mark_paidpayment.updatedpackage_purchaseYou marked the package paid.
rsvp_approved, rsvp_rejected, rsvp_pendingbooking.updatedeventYou approved or rejected an RSVP, or put it back to pending.
checked_in, check_in_reversedbooking.updatedeventA guest was checked in at the door, or the check-in was undone.
reschedule_requestedbooking.updatedtour, activity, diningThe 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.
rescheduledbooking.updatedtour, activity, diningThe customer moved the booking, and no approval was needed. scheduledFor and startTime are the new time.
reschedule_approved, reschedule_declinedbooking.updatedtourYou decided the customer's request to move it.
movedbooking.updatedtourYou moved the booking to another date or departure.
waitlist_promotedbooking.updatedclassA place opened up and the customer came off the waitlist.
session_cancelledbooking.cancelled, and payment.updated when it was paidclassYou cancelled the whole session, so every booking on it was cancelled.
hold_expiredbooking.cancelledstore_orderThe order was never paid, and its hold on the stock ran out.
visitbooking.updatedpackage_purchaseThe customer used one visit.
extendedbooking.updatedpackage_purchaseYou 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:

data
{
  "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.

data
{
  "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.

data
{
  "profile": {
    "changed": ["operatingHours"]
  },
  "source": "partner_portal"
}

changed names the part the partner saved:

changedWhat it covers
businessDetailsdescription, websiteUrl and businessType (and portal-only fields the API does not write).
operatingHoursThe week's opening hours.
priceRangeThe price range.
detailsThe profile details: tags, summary lines, the button, payment methods, office address and the per-category answers.

Your own PATCH /profile never sends this event.