home > support > API > Marketplace API > API: get tour facets
Return tour facets (search criteria) that can be used to request the tour list from the subsystem.
For Tour Operator usage only (not accessible by Marketplace Agents).
| Call | /api/tours/importer/get_tour_facets |
| Formats | XML |
| Example | /api/tours/importer/get_tour_facets.xml |
| Verb | GET |
PHP examples use the PHP Client Library with SimpleXML
object get_tour_facets ( int $channel )
// Channel (Operator) ID of the Tour
$channel = 6;
// Query the TourCMS API
$result = $tourcms->get_tour_facets($channel);
// Go straight to the tour node
$tour = $result->tour_facets;
// Print out the tour name and lead in price
print 'Top Level Text - '.$tour->top_level_text;
Top Level Text - Message from subsystem
Enter your TourCMS API credentials below to call the Get Tour Facets endpoint.
There are no querystring parameters.
| Node | Notes | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| request | Confirmation of the request that you sent | ||||||||||||||||||||||||||||||||||
| error | Any error message returned, if there is no error this will just contain the text OK | tour_facets |
The tour_facets node contains the following child nodes.
|