Check availability
check_availabilityCheck live start times and remaining seats for a TripWays tour on one date or a range of up to 31 days. Pass party_size (seats needed) or a travelers object; slots that cannot fit the group are left out, and party_size wins if both are given. The status field is ok, no_schedule, no_fit, or calendar_gone. Use get_price_quote with the same date, start time, and travelers for the total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| bokun_id | Yes | ||
| date_end | No | Inclusive end; default = date. Max 31 days. | |
| travelers | No | Simple ages; mapped to occupied seats (infants excluded unless the tour has an infant category). Used only when party_size is omitted. | |
| party_size | No | Occupied seats to keep (not ticket count). Slots with availabilityCount < party_size are omitted unless unlimited. Wins over travelers when both are set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| error | No | Present when ok is false. code: tour_not_found, destination_not_found, destination_ambiguous, or unpriced. message is written for the traveler. | |
| slots | No | Open start times that fit the party. | |
| reason | No | ||
| status | No | ok, no_schedule, no_fit, or calendar_gone. | |
| bokun_id | No | ||
| checkout_url | No | ||
| bookable_natively | No |