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: markup scheme information

Show Markup Scheme

Return full information about the specific Markup Scheme set for an account channel.

For Tour Operator use only, agents cannot see markup information.

Caching

If you are calling the API directly from your website (i.e. rather than populating your own database with tour data) we would recommend caching this API for around an hour. This helps you keep within API limits and to keep your site running fast. More on API caching.

REST info

Call/c/markups/show
FormatsXML
Example/c/markups/show.xml
VerbGET

Code

PHP examples use the PHP Client Library with SimpleXML

Description

object show_markup_scheme ( int $channel )


Parameters

$channel
ID for the Channel (Operator) - required


Example

// Channel (Operator) 
$channel = 12;

// Query the TourCMS API
$result = $tourcms->show_markup_scheme($channel);

// Go straight to the markup_scheme node
$markup_scheme = $result->markup_scheme;

// Print out the markup_scheme name and markup_scheme note
print $markup_scheme->markup_scheme_name.' : '.$markup_scheme->markup_scheme_note;
Scheme for UK Tours : Fixed 10%

Response fields

Response fields
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
markup_scheme

The markup_scheme node contains the following child nodes.

NodeNotes
markup_sheme_idMarkup Scheme ID
markup_scheme_nameMarkup Scheme name
markup_scheme_noteMarkup Scheme note
markup_types

Information about the different Markup types

XML NodeNotes
markup_type

Information about a specific Markup type

XML NodeNotes
markup_type_idMarkup type ID
markup_type_nameMarkup type name
markup_type_noteMarkup type note
preMarkup scheme pre (currency)
percentageMarkup scheme percentage
postMarkup scheme post (currency)

Example response

<?xml version="1.0" encoding="UTF-8"?>
<response>
   <request>GET /c/markups/show.xml</request>
   <error>OK</error>
   <markup_scheme>
        <markup_scheme_id>5</markup_scheme_id>
		<markup_scheme_name>Summer Season Markup Scheme</markup_scheme_name>
		<markup_scheme_note>Tours for Summer Season</markup_scheme_note>
		<markup_types>
			<markup_type>
				<markup_type_id>11</markup_type_id>
				<markup_name>10% upper</markup_name>
				<markup_note>Upper</markup_note>
				<pre>0.00</pre>
				<percentage>10.00</percentage>
				<post>0.00</post>
			</markup_type>
			<markup_type>
				<markup_type_id>12</markup_type_id>
				<markup_name>10E discount</markup_name>
				<markup_note>10€ discount</markup_note>
				<pre>0.00</pre>
				<percentage>0.00</percentage>
				<post>-10.00</post>
			</markup_type>
			<markup_type>
				<markup_type_id>13</markup_type_id>
				<markup_name>17.65% (15% Margin)</markup_name>
				<markup_note>17.65% (15% Margin)</markup_note>
				<pre>0.00</pre>
				<percentage>17.65</percentage>
				<post>0.00</post>
			</markup_type>
		</markup_types>
    </markup_scheme>
</response>

More information