TourCMS, a leading online booking and channel management solution is operated by Palisis.

Contact Info

Palisis AG
Florastrasse 18A
8610 Uster
support@palisis.com
+41 44 533 40 40

Follow Us

home > support > API > Marketplace API > API: tour_tier_show

Show a tour tier

Shows a tour tier.


Notes

For Tour Operator usage only (not accessible by Marketplace Agents).

REST info

Endpoint/api/tours/tour_tiers/tour_tier_show
FormatsXML
Example/api/tours/tour_tiers/tour_tier_show
VerbPOST

Code samples

PHP examples use the PHP Client Library with the return type set to SimpleXML


Description

object show_tier(SimpleXmlElement $tier, int $channel)


Parameters

$tier
SimpleXmlElement containing the tier data.
$channel
ID number for the channel this tours which tier belongs to.


Example


      // Create a new SimpleXMLElement with tier details.
      $tier = new SimpleXMLElement('<tier />');
      $tier->addChild('tier_type', 'tour_tier');
      $tier->addChild('tour_id', 307);
      $tier->addChild('scale_from', 5);
      $tier->addChild('scale_to', 6);
      // Define the channel ID the tour belongs to.
      $channel = 3930;
      // Call TourCMS API, showing the tour tier.
      $result = $tourcms->get_tier($tier, $channel);
      if ($result->error == "OK") {
        print "Tour Tier found";
      } else {
        print $result->error;
      }
    
Tour Tier Show

Looking for sample code in a different language? TourCMS and community provided API libraries

Try it

Enter your TourCMS API credentials below to call the Show Tour Tier endpoint.

Take care, submitting this form will modify live data!


            
            

Querystring parameters

There are no querystring parameters.

Post fields

The following fields can be posted as XML when calling the API method. All are required fields for their specific tier types.

POST fields
XML NODENotes
tier

Tour Level tier node contains:

XML NodeNotes
tour_id The id of the tier tour.
tier_type Type of tier we want to show. For tiers at tour level the value must be tour_tier
scale_from Minimum quantity of people for the tier.
scale_to Maximum quantity of people for the tier.

Rate Level tier node contains:

XML NodeNotes
tour_id The id of the tier tour.
tier_type Type of tier we want to show. For tiers at rate level the value must be rate_tier
tier_id Identifier of the tier to be show.
rate_id Attached rate to the tier.

Departure Level tier node contains:

XML NodeNotes
tour_id The id of the tier tour.
tier_type Type of tier we want to show. For tiers at departure level the value must be departure_tier
tier_id Identifier of the tier to be show.
rate_id Attached rate to the tier.
departure_id Attached departure to the tier.

Response fields

Response fields
XML NodeNotes
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
errors Optional field. Only if there are errors.
Array of childs error. With the field is not valid and a description of the error.
tier

Tour Level tier node contains:

XML NodeNotes
tier_id The id of the tier.
active The tier status. It can be 1 for active and 0 for inactive.
aid The id of account associated with the tier.
tour_id The id of the tier tour.
scale_from Minimum quantity of people for the tier.
scale_to Maximum quantity of people for the tier.

Rate Level tier node contains:

XML NodeNotes
tier_id The id of the tier.
active The tier status. It can be 1 for active and 0 for inactive.
aid The id of account associated with the tier.
tour_id The id of the tier tour.
scale_from Minimum quantity of people for the tier.
scale_to Maximum quantity of people for the tier.
rate_id Attached rate to the tier.
sale_price Price for the tier in the specific rate.

Departure Level tier node contains:

XML NodeNotes
tier_id The id of the tier.
active The tier status. It can be 1 for active and 0 for inactive.
aid The id of account associated with the tier.
tour_id The id of the tier tour.
scale_from Minimum quantity of people for the tier.
scale_to Maximum quantity of people for the tier.
rate_id Attached rate to the tier.
departure_id Attached departure to the tier.
sale_price Price for the tier in the specific departure.

More information