home > support > API > Marketplace API > API: delete_tour_geopoint
Deletes a tour geopoint.
For Tour Operator usage only (not accessible by Marketplace Agents).
Endpoint | /api/tours/geos/delete |
Formats | XML |
Example | /api/tours/geos/delete.xml |
Verb | POST |
PHP examples use the PHP Client Library with the return type set to SimpleXML
object delete_tour_geopoint(SimpleXmlElement $geopoint, int $channel)
// Create a new SimpleXMLElement with tour geopoint details.
$geopoint = new SimpleXMLElement('<geopoint />');
$geopoint->tour_id = 68;
$geopoint->loc_type = 'm';
$geopoint->geo_order = 1;
// Define the channel ID the tour belongs to.
$channel = 3930;
// Call TourCMS API, deleting the tour geopoint.
$result = $tourcms->delete_tour_geopoint($geopoint, $channel);
if ($result->error == "OK") {
print "Tour Geopoint deleted";
} else {
print $result->error;
}
Tour Geopoint deleted
Looking for sample code in a different language? TourCMS and community provided API libraries
There are no querystring parameters.
The following fields can be posted as XML when calling the API method. The tour_id is the only required field.
XML NODE | Notes | ||||||||
---|---|---|---|---|---|---|---|---|---|
geocode |
Tour geopoint node contains:
|
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 |