home > support > API > Marketplace API > API: channel information

Show Channel

PurposeReturn channel information. Think of this as company/brand information
NotesMost TourCMS accounts will only have one channel however it is possible for TourCMS accounts to follow a multi-channel strategy.
 
The data fields with _private in are not for public display. They are provided to make it easy for you to create a management system to review multiple channels
REST info Call/c/channel/show
FormatsXML
Example/c/channel/show.xml
VerbGET
Code

PHP examples use the PHP Client Library with SimpleXML

Description

object show_channel ( int $channel )

Parameters

$channel
	ID for the channel (supplier) we want the details

Example

// ID for the channel (supplier) we want the details for
$channel = 6;

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

// Get the channel node
$channel = $result->channel;

// Print out a link to the channel website
print '<a href="'.$channel->home_url.'">'.$channel->channel_name.' website</a>';
Example Tours website

C# examples use the .Net Client Library

Overload list

XmlDocument ShowChannel (int ChannelId)

Parameters

channelId
	ID for the channel (supplier) we want the details

Example

// ID for the channel (supplier) we want the details for 
int channelId = 3; 
 
// Query the TourCMS API 
XmlDocument doc = myTourCMS.ShowChannel(channelId); 
 
// Display the Channel name and web address
String chanName = doc.SelectSingleNode("//channel/channel_name");
String chanWeb = doc.SelectSingleNode("//channel/home_url");

Console.WriteLine(chanName + " website - " + chanWeb);
Example Tours website - http://www.example.com

VB examples use the .Net Client Library

Overload list

XmlDocument ShowChannel (int ChannelId)

Parameters

channelId
	ID for the channel (supplier) we want the details

Example

' ID for the channel (supplier) we want the details for 
Dim channelId As Integer = 6
 
' Query the TourCMS API 
Dim doc As XmlDocument = myTourCMS.ShowChannel(channelId)
 
' Display the Channel name and web address
Dim chanName As String = doc.SelectSingleNode("//channel/channel_name")
Dim chanWeb As String = doc.SelectSingleNode("//channel/home_url")

Console.WriteLine(chanName & " website - " & chanWeb)
Example Tours website - http://www.example.com

Querystring parameters

There are no querystring parameters supported by this method.

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
channel

The channel node contains the following child nodes.

XML NodeNotes
channel_idChannel ID
account_idAccount ID
channel_nameChannel name (Company name)
get_perm_custbookAPI GET permission - Customers / Bookings
get_perm_agsupAPI GET permission - Agents / Suppliers. Permission settings
post_perm_custbookAPI POST permission - Customers / Bookings
post_perm_agsupAPI POST permission - Agents / Suppliers
post_perm_dpaAPI POST permission - Products / Dates / Prices / Availability
home_urlURL website homepage
home_url_trackedURL website homepage (with agent tracking)
logo_urlChannel logo URL
langChannel language
utc_offset_minsLocal time: Offset (minutes) from UTC
sale_currencySale currency (prices returned in this currency)
base_currencyBase currency - for accounting integrations only
connection_dateDate you connected to this channel (YYYY-MM-DD)
booking_styleENQUIRY, QUOTE, BOOKING
Permits you to use text such as book now or enquire now
It describes what the channel uses their booking engine for
short_descShort description
long_descLong description
very_long_descVery long description
why_descWhy us?
bonding_descBonding / financial protection
certificatione.g. for activity companies could be industry association memberships
cancel_policyCancellation policy
terms_and_conditionsTerms and conditions for booking
email_customerSales enquiry email address that can be shown to customers
phone_customerSales enquiry telephone number that can be shown to customers
office_hoursOffice hours
twitterTwitter handle (excludes the @)
tripadvisorURL for TripAdvisor entry
youtubeURL for Youtube channel
facebookURL for Facebook page
flickrURL for Flickr photo page
othersmURL for some other social media site (e.g. Ning, blog, forums etc)
address_1Address line 1
address_2Address line 2
address_cityCity
address_stateState
address_postcodePostcode / Zipcode
address_countryCountry code
commercial_email_privateEmail address for partners to use to contact the channel
commercial_contactname_privateName of the channel contact
commercial_pitch_privateWhat the standard deal for this channel is
commercial_ppl_privateInterested in pay per lead
commercial_dir_privateInterested in directory listings / pay to list
commercial_ppc_privateInterested in pay per click
commercial_aff_privateInterested in affiliate deals (consumer books with channel directly)
commercial_ag_privateInterested in agent deals (agent takes money)
commercial_any_privateInterested in all sorts of promotional ideas!
commercial_avleadtime_privateAverage leadtime (Days between when booking made and start date)
commercial_avtransaction_privateAverage transaction size (in sale currency)
commercial_avpeople_privateAverage number of people (pax) in a booking
commercial_avclick2book_privateAverage number of unique visitors (via tracking script) to deliver 1 booking
commercial_avduration_privateAverage duration of a booking (days) (i.e. whether day tours or longer)
commercial_percent_online_private% bookings received online
commercial_percent_convert_private% of bookings that ultimately convert to confirmed bookings

Sample XML Response

/c/channel/show.xml

16 commercial information fields have been removed in this live data example

More information

© 2003-2012 Travel UCD Limited. All rights reserved. TourCMS® is a registered trademark of Travel UCD Limited, United Kingdom. View Privacy policy.