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: supplier information

Show Supplier

View information on an internal (to a an operator account) supplier record.

Notes

For use by Tour Operators only (not for use by Marketplace Partners). Marketplace partners retrieving information on the Channels (operators) they are connected with via the Marketplace see Show Channel.

REST info

Endpoint/c/supplier/show
FormatsXML
Example/c/supplier/show.xml?supplier_id=12345
VerbGET

Code samples

PHP examples use the PHP Client Library with SimpleXML

Description

object show_supplier ( int $supplier, int $channel )


Parameters

$supplier
ID for the supplier we want to view
$channel
Our channel ID

Example

// ID for the supplier
$supplier = 12345;

// Set your channel ID
$channel = 3; 

// Query the TourCMS API
$result = $tourcms->show_supplier($supplier, $channel);

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

// Print out the supplier name and code
print $supplier->name . " - " . $supplier->code;
Marriott Hotels - MARRIOTT

C# examples use the .Net Client Library

Overload list

XmlDocument ShowSupplier (int supplierId, int channelId)


Parameters

supplierId
Internal TourCMS supplier ID
channelId
ID for the channel that the supplier belongs to

Example

// ID for the supplier
int supplierId = 12345;

// Set your channel ID
int channelId = 3; 

// Call the TourCMS API
XmlDocument doc = myTourCMS.ShowSupplier(supplierId, channelId);

// Check the status of the response
string status = doc.SelectSingleNode("//error").InnerText;

// If the status is "OK" TourCMS will have returned our Supplier
if ( status == "OK" )
{
// Success! Print out the supplier name and code
string supN = doc.SelectSingleNode("//supplier/name").InnerText;
string supC = doc.SelectSingleNode("//supplier/code").InnerText;
Console.WriteLine(supN + " - " + supC);
} else {
// Failure! Print out the error text to debug
Console.WriteLine("Error: " + status);    
} 
Marriott Hotels - MARRIOTT

VB examples use the .Net Client Library

Overload list

XmlDocument ShowSupplier (Integer supplierId, Integer channelId)


Parameters

supplierId
Internal TourCMS supplier ID
channelId
ID for the channel that the supplier belongs to

Example

' ID for the supplier
Dim supplierId As Integer = 12345

' Set your channel ID
Dim channelId As Integer = 3

' Call the TourCMS API
Dim doc As XmlDocument = myTourCMS.ShowSupplier(supplierId, channelId)

' Check the status of the response
Dim status As String = doc.SelectSingleNode("//error").InnerText

' If the status is "OK" TourCMS will have returned our Supplier
If  status = "OK" Then

' Success! Print out the supplier name and code
Dim supN As String = doc.SelectSingleNode("//supplier/name").InnerText
Dim supC As String= doc.SelectSingleNode("//supplier/code").InnerText
Console.WriteLine(supN & " - " & supC)

Else

' Failure! Print out the error text to debug
Console.WriteLine("Error: " & status) 

End If 
Marriott Hotels - MARRIOTT

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

Implementing yourself? Check the REST info for this endpoint.

Try it

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


            
            

Querystring parameters

Querystring parameters
XML NodeNotes
supplier_id Internal ID number for a supplier (perhaps retrieved from a booking record)

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
supplier

The channel node contains the following child nodes.

XML NodeNotes
supplier_idSupplier ID
channel_idChannel ID
account_idAccount ID
nameDisplay name for the suplier
codeCode for the supplier
home_urlWebsite homepage url
logo_urlLogo image url
contact_nameName of the contact (person) at the supplier
email_bookingsEmail address for sending booking information
email_accountsEmail address for accounts
addressPostal address (multiline)
short_descShort description
long_descLong 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

More information