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 > managing dates & prices externally > delete departure

Delete departure

Delete a departure from a Tour

Part of a series of API calls intended largely for managing dates and prices outside of TourCMS

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


REST info

Endpoint/c/tour/datesprices/dep/manage/delete
FormatsXML
Example/c/tour/datesprices/dep/manage/delete.xml?id=1&departure_id=3191
VerbPOST

Code samples

PHP examples use the PHP Client Library with SimpleXML

Description

object delete_departure ( int $departure, int $tour, int $channel )


Parameters

$departure
ID for the departure to delete
$tour
The Tour that the departure belongs to
$channel
The Channel that the tour belongs to

Example

// Set our Channel ID
$channel = 3930;

// Set the ID for the Tour that this departure belongs to
$tour_id = 1;

// Set the ID for the departure to delete
$departure_id = 3191;

// Query the TourCMS API, deleting the departure
$result = $tourcms->delete_departure($departure_id, $tour_id , $channel);

if($result->error == "OK") {
	print "Departure deleted";
} else {
	print $result->error;
}
Departure deleted

C# examples use the .Net Client Library

Coming soon

VB examples use the .Net Client Library

Coming soon

Querystring parameters

Querystring parameters
ParameterNotes
idTour ID
departure_idID of departure to be deleted


The Channel ID is also passed via the request header.

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.
tour

A tour node containing the following:

XML NodeNotes
account_idAccount ID
channel_idChannel ID
tour_idTour ID
departure_idDeparture ID

More information