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: show agent profile

Show Agent Profile

View information on a a single agent.

Notes

Tour Operators can only access information from Agents to whose channels they are connected, Marketplace Agents can request their own information but not that of another Marketplace Agent.

REST info

Endpoint /api/agent/profile/get
Formats XML
Example /api/agent/profile/get.xml?id=12345
Verb GET

Code samples

PHP examples use the PHP Client Library with SimpleXML

Description

object show_agent_profile ( int $partnerId [, int $channel = 0] )


Parameters

$partnerId
ID for the Marketplace Agent we want to show
$channel
ID for the channel that we, as an operator, are bound to

Example

// Marketplace agent ID number
$partnerId = 12345;

// ID for the channel the operation is bound to
$channel = 199;

// Using the method as an Operator
$result = $tourcms->show_agent_profile($partnerId, $channel);

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

// Print the agent ID
print $agent->id . "<br />";

// Print the agent phone
print $agent->phone . "<br />";

//Print the agent nationality
print $agent->country . "<br />"
12345
34534534
ES

C# examples use the .Net Client Library

Not supported currently

VB examples use the .Net Client Library

Not supported currently

NodeJS examples use the NodeJS Wrapper

Not supported currently

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 Booking endpoint.


            
            

Response fields

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

The agent node contains the following child nodes.

XML Node Notes
id Marketplace Agent Id
name Marketplace Agent Name
phone Agent's Phone number
fax Agent's Fax number
contact_details Contact information
accounts_email Email used to communicate with other accounts or to send invoices
bookings_email Email used for automated new bookings communications
address Physical direction or postal code
country 2 digit country code (uppercase). Here's a HTML snippet containing all countries in a select box
web_address Website url
description Agent's description
logo Agent's logo URL

More information