home > support > API > Marketplace API > List Product Filters
Product Filters are used to group tours. Use this API to find out which tours are in which Product Filters.
For use by Tour Operator accounts only, not accessible by Marketplace Agents.
Endpoint | /c/tours/filters |
Formats | XML |
Example | /c/tours/filters.xml |
Verb | GET |
PHP examples use the PHP Client Library with SimpleXML
object list_product_filters ( int $channel )
// Query the TourCMS API
$channel = 3930;
$result = $tourcms->list_product_filters($channel);
// Loop through each filter
foreach($result->filters->filter as $filter) {
// Print out the filter name
print $filter->filter_name.'<br />';
}
Cycling Tours
Hiking Tours
C# examples use the .Net Client Library
VB examples use the .Net Client Library
NodeJS examples use the NodeJS Wrapper
Looking for sample code in a different language? TourCMS and community provided API libraries
Enter your TourCMS API credentials below to call the List Product Filters endpoint.
There are no querystring parameters supported by this method.
XML 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 | ||||||||||||||||||||
filters |
|