Tours overview
How a tour, with its itinerary and packages, is synced, published and booked.
A tour has a destination, a duration, a day-by-day itinerary and one or more packages — the ways to book it. Customers book a package. Tours need no listing setup.
| Operation | Endpoint |
|---|---|
| Create or replace | PUT /tours/:externalId |
| List, retrieve, publish, unpublish, delete | Read, publish or delete at /tours |
The flow#
- Your server → Localoy: PUT /tours/sundarbans-3d
- Localoy → Your server: 201 draft, readyToPublish
- Your server → Localoy: POST …/sundarbans-3d/publish
- — If something is missing —
- Localoy → Your server: 409 tour_not_ready + blockers
- — When the tour is complete —
- Localoy → Your server: 200 published
- Customer → Localoy: Book package “std”
- Localoy → Your server: Inventory check: tour/std
- Localoy → Your server: Webhook: booking.created
- — Consultation tours and your checkout —
- Note: Customers ask first, or the booking waits for payment
PUTthe whole tour, itinerary and packages included. The firstPUTcreates a draft (201); later ones replace it (200) and keep whether it is published.- Check
readyToPublish. Every response says it. A tour needs a destination, a duration, a description, at least one itinerary day and one package; otherwisepublishanswers409 tour_not_readywithdetails.blockers. - Packages keep their identity. Each package has its own
externalId, unique within the tour, and is updated in place, so existing bookings keep pointing at it. Leaving out a package that has bookings is refused (409 package_has_bookings). - Customers book a package. With
bookingOptionCONSULTATIONthey ask first; withDIRECTthey book. Localoy asks your inventory endpoint using<tour>/<package>as theexternal_id(module=tour). - Payment. A tour set to your own checkout in the Partner Portal stays pending until you report a successful payment.
Rules to remember#
- A tour with bookings cannot be deleted (
409 listing_has_bookings) — unpublish it. - Images (
poster,gallery) must come fromPOST /media. - The brand colour, brochure and departure dates are set in the Partner Portal and left as they are.
- A sandbox key validates and changes nothing (
"dryRun": true). - A Technology Provider needs the Tours module.