home > support > API > Marketplace API > API: list tour booking restrictions
Return information about field restrictions of specific tours, often combined with named tickets.
Tour operators cannot use the account filter, because they can only access to his own tours.
Partners must use account filter to filter tours in the specific account, if not account provided, API request will be rejected.
Tour operators and Partners can filter tours using the tour filter separated by comma.
Call | /api/tours/restrictions/list_tour_bookings_restrictions |
Formats | XML |
Example | /api/tours/restrictions/list_tour_bookings_restrictions.xml |
Verb | GET |
PHP examples use the PHP Client Library with SimpleXML
object list_tour_booking_restrictions ( int $channel [ , string $querystring = "" ] )
// Channel ID
$channel = 6;
// Query the TourCMS API
$result = $tourcms->list_tour_booking_restrictions($channel);
// Print out the error
print 'error: '.$result->error;
error: OK
Enter your TourCMS API credentials below to call the List Tour Booking Restrictions endpoint.
Parameter | Notes |
---|---|
aid | Account ID. Can be used by Operators and Marketplace Agents. Mandatory for Marketplace Agents. |
tour_ids | Tour IDs separated by commas. The returned XML will contain each of the tours we search by this parameter. |
Node | Notes | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request | Confirmation of the request that you sent | ||||||||||||||||||||||||||||||||||||
error | Error status OK/NOTOK | ||||||||||||||||||||||||||||||||||||
error_message | Any error message returned. Will only be returned if error is NOTOK | ||||||||||||||||||||||||||||||||||||
tours |
Node containing an array of tours:
|