Discover Leiden – private tours in Leiden
v1.0.0Private thematic tours in Leiden, Netherlands: availability, group prices and a booking link.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tours List tours
All private tours of Discover Leiden that can be booked in Leiden, the Netherlands. Returns per tour: id, title, description, duration, group size, starting price, departure point and booking page.
get_tour Tour details
Full details of one tour: description, departure point, duration, group size, prices (incl. seasonal prices), regular start times, optional extras with their ids and prices, cancellation policy and contact details.
| Parameter | Type | Description |
|---|---|---|
tour * | string | Tour id (the "tour" value from list_tours, e.g. "cosy-tour"). |
check_availability Check availability
Free start times of a tour per day. Tours can be booked far ahead (usually up to a year; the result says until when in bookable_until). Each call covers at most 31 days from date_from (default 14); date_from can be any date up to bookable_until, so call again for later periods. Times are local Leiden time. When nothing is free in the range, next_available_date tells the first day with a free time.
| Parameter | Type | Description |
|---|---|---|
tour * | string | Tour id (the "tour" value from list_tours, e.g. "cosy-tour"). |
date_from | string | First day, YYYY-MM-DD, any date up to bookable_until. Default: today. |
date_to | string | Last day, YYYY-MM-DD (inclusive). |
guests | integer | Number of guests in the group (adults and children together). |
get_price Get price
Exact price for a group on a date (prices can depend on the season), including chosen extras and the VAT breakdown. Same calculation as the booking page.
| Parameter | Type | Description |
|---|---|---|
date * | string | Tour date, YYYY-MM-DD. |
guests * | integer | Number of guests in the group (adults and children together). |
tour * | string | Tour id (the "tour" value from list_tours, e.g. "cosy-tour"). |
options | object | Optional extras, keyed by option id (or option name) from get_tour. Value: the chosen text for a choice, true for a yes/no extra, a number for a quantity. |
create_booking_link Create booking link
Checks that the time is still free and returns a secure booking link with tour, date, time, guests and extras already filled in. Give this link to the guest: they check the details and pay there. Guest details are optional ('guest'): pass them only if the guest gave them to you for this booking; then name, e-mail and/or phone are filled in on the booking page. They are stored on our server for at most 24 hours and are not in the link itself. No e-mail is sent before payment; the guest confirms the booking by paying. Nothing is reserved or charged by this tool.
| Parameter | Type | Description |
|---|---|---|
date * | string | Tour date, YYYY-MM-DD. |
guests * | integer | Number of guests in the group (adults and children together). |
time * | string | Start time HH:MM, one of the free times from check_availability. |
tour * | string | Tour id (the "tour" value from list_tours, e.g. "cosy-tour"). |
guest | object | Optional. Only if the guest gave you these for this booking. Each field is optional. |
options | object | Optional extras, keyed by option id (or option name) from get_tour. Value: the chosen text for a choice, true for a yes/no extra, a number for a quantity. |