home > support > API > Marketplace API > Get tour promotions
List of tour promotions for agents only. This endpoint will show the promotions available for a specific tour and channel to an agent. It will only show promotions as long as the channel configuration allows it
| Endpoint | /api/tours/promotions/get |
| Formats | XML |
| Example | /api/tours/promotions/get.xml |
| Verb | GET |
PHP examples use the PHP Client Library with SimpleXML
Currently it is not implemented in the PHP Client Library.
// Query the TourCMS API
$result = $tourcms->request('/api/tours/promotions/get.xml?tour_id='.$tourId, $channelId);
// Loop through each promotion returned
foreach($result->promotions as $promotion) {
// Print out the promotion name
print $promotion->name.'
';
}
Example promotion
Promotion with 10 %
Soon-to-be-expired
Looking for sample code in a different language? TourCMS and community provided API libraries
Implementing yourself? Check the REST info for this endpoint.
Enter your TourCMS API credentials below to call this endpoint.
| Parameter | Notes |
|---|---|
| tour_id | Tour whose promotions you want to retrieve. |
| 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 | ||||||||||||||||||||||||||||||||||||||||||
| promotions |
There will be one promotion node for promotion returned Each promotion node contains the following child nodes.
|
<?xml version="1.0"?>
<response>
<request>GET /api/tours/promotions/get.xml?tour_id=262</request>
<error>OK</error>
<promotions>
<promotion>
<aid>1</aid>
<tour_id>262</tour_id>
<promotion_id>10</promotion_id>
<name>ejemplo</name>
<start_date>2026-01-14</start_date>
<end_date>2026-01-15</end_date>
<type>standard</type>
<discount>20</discount>
<vacancies>50</vacancies>
<notice_period_days>0</notice_period_days>
<tour_departure_structure>
<type>SINGLE</type>
</tour_departure_structure>
</promotion>
</promotions></response>