OTA Transfer Reservation Request
curl --request POST \
--url https://ota-int.axisdata.net:9443/transferbook \
--header 'Content-Type: application/xml' \
--data '<OTA_GroundBookRQ ResStatus="Quote" xmlns="http://www.opentravel.org/OTA/2003/05" Version="2012.2" EchoToken="1234">
<POS>
<Source>
<RequestorID ID="TEST" Type="22" ID_Context="AxisData" Instance="PriceBreakdown"/>
</Source>
<Source>
<RequestorID ID="TEST" Type="88" MessagePassword="testpass"/>
</Source>
</POS>
<GroundReservations>
<Service>
<Locations>
<Location RPH="1">
<Pickup DateTime="2029-07-17T00:00:00">
<AirportInfo>
<Departure CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-17T17:15:00"/>
<Arrival CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-17T20:55:00"/>
</AirportInfo>
<Airline FlightNumber="3445" Code="FR"/>
</Pickup>
<DropOff>
<Address>
<LocationType Code="11" UniqueId="AESPMI5L46"/>
</Address>
</DropOff>
</Location>
<Location RPH="2">
<Pickup DateTime="2029-07-24T00:00:00">
<Address>
<LocationType Code="11" UniqueId="AESPMI5L46"/>
</Address>
</Pickup>
<DropOff>
<AirportInfo>
<Departure CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-24T21:30:00"/>
<Arrival CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-24T23:10:00"/>
</AirportInfo>
<Airline FlightNumber="3446" Code="FR"/>
</DropOff>
</Location>
</Locations>
<ServiceLevel Code="S0000"/>
<VehicleType Code="26" Description="Shared Shuttle"/>
<RateQualifier PromotionCode="IN/OT" RateQualifier="TRESPMIPMI"/>
</Service>
<Passengers>
<Primary RPH="1" Age="25">
<PersonName>
<NamePrefix>Mr</NamePrefix>
<GivenName>Bender</GivenName>
<Surname>Bending</Surname>
</PersonName>
<Telephone PhoneNumber="+4912252352"/>
<Email>bender@gmail.com</Email>
</Primary>
<Additional RPH="2" Age="25"/>
<Additional RPH="3" Age="11"/>
</Passengers>
</GroundReservations>
<TPA_Extensions>
<UniqueID Type="36" ID_Context="Client" ID="test_xxx"/>
<UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr1" Item_RPH="1"/>
<UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr2" Item_RPH="2"/>
</TPA_Extensions>
</OTA_GroundBookRQ>'import requests
url = "https://ota-int.axisdata.net:9443/transferbook"
payload = "<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>"
headers = {"Content-Type": "application/xml"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/xml'},
body: '<OTA_GroundBookRQ ResStatus="Quote" xmlns="http://www.opentravel.org/OTA/2003/05" Version="2012.2" EchoToken="1234">\n <POS>\n <Source>\n <RequestorID ID="TEST" Type="22" ID_Context="AxisData" Instance="PriceBreakdown"/>\n </Source>\n <Source>\n <RequestorID ID="TEST" Type="88" MessagePassword="testpass"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH="1">\n <Pickup DateTime="2029-07-17T00:00:00">\n <AirportInfo>\n <Departure CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-17T17:15:00"/>\n <Arrival CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-17T20:55:00"/>\n </AirportInfo>\n <Airline FlightNumber="3445" Code="FR"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code="11" UniqueId="AESPMI5L46"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH="2">\n <Pickup DateTime="2029-07-24T00:00:00">\n <Address>\n <LocationType Code="11" UniqueId="AESPMI5L46"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-24T21:30:00"/>\n <Arrival CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-24T23:10:00"/>\n </AirportInfo>\n <Airline FlightNumber="3446" Code="FR"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code="S0000"/>\n <VehicleType Code="26" Description="Shared Shuttle"/>\n <RateQualifier PromotionCode="IN/OT" RateQualifier="TRESPMIPMI"/>\n </Service>\n <Passengers>\n <Primary RPH="1" Age="25">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber="+4912252352"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH="2" Age="25"/>\n <Additional RPH="3" Age="11"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type="36" ID_Context="Client" ID="test_xxx"/>\n <UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr1" Item_RPH="1"/>\n <UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr2" Item_RPH="2"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>'
};
fetch('https://ota-int.axisdata.net:9443/transferbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9443",
CURLOPT_URL => "https://ota-int.axisdata.net:9443/transferbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>",
CURLOPT_HTTPHEADER => [
"Content-Type: application/xml"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ota-int.axisdata.net:9443/transferbook"
payload := strings.NewReader("<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/xml")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ota-int.axisdata.net:9443/transferbook")
.header("Content-Type", "application/xml")
.body("<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ota-int.axisdata.net:9443/transferbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/xml'
request.body = "<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>"
response = http.request(request)
puts response.read_body"<string>"Transfer Book
OTA_GroundResRQ Playground
POST
/
transferbook
OTA Transfer Reservation Request
curl --request POST \
--url https://ota-int.axisdata.net:9443/transferbook \
--header 'Content-Type: application/xml' \
--data '<OTA_GroundBookRQ ResStatus="Quote" xmlns="http://www.opentravel.org/OTA/2003/05" Version="2012.2" EchoToken="1234">
<POS>
<Source>
<RequestorID ID="TEST" Type="22" ID_Context="AxisData" Instance="PriceBreakdown"/>
</Source>
<Source>
<RequestorID ID="TEST" Type="88" MessagePassword="testpass"/>
</Source>
</POS>
<GroundReservations>
<Service>
<Locations>
<Location RPH="1">
<Pickup DateTime="2029-07-17T00:00:00">
<AirportInfo>
<Departure CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-17T17:15:00"/>
<Arrival CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-17T20:55:00"/>
</AirportInfo>
<Airline FlightNumber="3445" Code="FR"/>
</Pickup>
<DropOff>
<Address>
<LocationType Code="11" UniqueId="AESPMI5L46"/>
</Address>
</DropOff>
</Location>
<Location RPH="2">
<Pickup DateTime="2029-07-24T00:00:00">
<Address>
<LocationType Code="11" UniqueId="AESPMI5L46"/>
</Address>
</Pickup>
<DropOff>
<AirportInfo>
<Departure CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-24T21:30:00"/>
<Arrival CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-24T23:10:00"/>
</AirportInfo>
<Airline FlightNumber="3446" Code="FR"/>
</DropOff>
</Location>
</Locations>
<ServiceLevel Code="S0000"/>
<VehicleType Code="26" Description="Shared Shuttle"/>
<RateQualifier PromotionCode="IN/OT" RateQualifier="TRESPMIPMI"/>
</Service>
<Passengers>
<Primary RPH="1" Age="25">
<PersonName>
<NamePrefix>Mr</NamePrefix>
<GivenName>Bender</GivenName>
<Surname>Bending</Surname>
</PersonName>
<Telephone PhoneNumber="+4912252352"/>
<Email>bender@gmail.com</Email>
</Primary>
<Additional RPH="2" Age="25"/>
<Additional RPH="3" Age="11"/>
</Passengers>
</GroundReservations>
<TPA_Extensions>
<UniqueID Type="36" ID_Context="Client" ID="test_xxx"/>
<UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr1" Item_RPH="1"/>
<UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr2" Item_RPH="2"/>
</TPA_Extensions>
</OTA_GroundBookRQ>'import requests
url = "https://ota-int.axisdata.net:9443/transferbook"
payload = "<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>"
headers = {"Content-Type": "application/xml"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/xml'},
body: '<OTA_GroundBookRQ ResStatus="Quote" xmlns="http://www.opentravel.org/OTA/2003/05" Version="2012.2" EchoToken="1234">\n <POS>\n <Source>\n <RequestorID ID="TEST" Type="22" ID_Context="AxisData" Instance="PriceBreakdown"/>\n </Source>\n <Source>\n <RequestorID ID="TEST" Type="88" MessagePassword="testpass"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH="1">\n <Pickup DateTime="2029-07-17T00:00:00">\n <AirportInfo>\n <Departure CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-17T17:15:00"/>\n <Arrival CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-17T20:55:00"/>\n </AirportInfo>\n <Airline FlightNumber="3445" Code="FR"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code="11" UniqueId="AESPMI5L46"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH="2">\n <Pickup DateTime="2029-07-24T00:00:00">\n <Address>\n <LocationType Code="11" UniqueId="AESPMI5L46"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext="IATA" LocationCode="PMI" DateTime="2029-07-24T21:30:00"/>\n <Arrival CodeContext="IATA" LocationCode="MAN" DateTime="2029-07-24T23:10:00"/>\n </AirportInfo>\n <Airline FlightNumber="3446" Code="FR"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code="S0000"/>\n <VehicleType Code="26" Description="Shared Shuttle"/>\n <RateQualifier PromotionCode="IN/OT" RateQualifier="TRESPMIPMI"/>\n </Service>\n <Passengers>\n <Primary RPH="1" Age="25">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber="+4912252352"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH="2" Age="25"/>\n <Additional RPH="3" Age="11"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type="36" ID_Context="Client" ID="test_xxx"/>\n <UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr1" Item_RPH="1"/>\n <UniqueID Type="37" ID_Context="Client" ID="text_xxx_tr2" Item_RPH="2"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>'
};
fetch('https://ota-int.axisdata.net:9443/transferbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9443",
CURLOPT_URL => "https://ota-int.axisdata.net:9443/transferbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>",
CURLOPT_HTTPHEADER => [
"Content-Type: application/xml"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ota-int.axisdata.net:9443/transferbook"
payload := strings.NewReader("<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/xml")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ota-int.axisdata.net:9443/transferbook")
.header("Content-Type", "application/xml")
.body("<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ota-int.axisdata.net:9443/transferbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/xml'
request.body = "<OTA_GroundBookRQ ResStatus=\"Quote\" xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2012.2\" EchoToken=\"1234\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"22\" ID_Context=\"AxisData\" Instance=\"PriceBreakdown\"/>\n </Source>\n <Source>\n <RequestorID ID=\"TEST\" Type=\"88\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <GroundReservations>\n <Service>\n <Locations>\n <Location RPH=\"1\">\n <Pickup DateTime=\"2029-07-17T00:00:00\">\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-17T17:15:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-17T20:55:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3445\" Code=\"FR\"/>\n </Pickup>\n <DropOff>\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </DropOff>\n </Location>\n <Location RPH=\"2\">\n <Pickup DateTime=\"2029-07-24T00:00:00\">\n <Address>\n <LocationType Code=\"11\" UniqueId=\"AESPMI5L46\"/>\n </Address>\n </Pickup>\n <DropOff>\n <AirportInfo>\n <Departure CodeContext=\"IATA\" LocationCode=\"PMI\" DateTime=\"2029-07-24T21:30:00\"/>\n <Arrival CodeContext=\"IATA\" LocationCode=\"MAN\" DateTime=\"2029-07-24T23:10:00\"/>\n </AirportInfo>\n <Airline FlightNumber=\"3446\" Code=\"FR\"/>\n </DropOff>\n </Location>\n </Locations>\n <ServiceLevel Code=\"S0000\"/>\n <VehicleType Code=\"26\" Description=\"Shared Shuttle\"/>\n <RateQualifier PromotionCode=\"IN/OT\" RateQualifier=\"TRESPMIPMI\"/>\n </Service>\n <Passengers>\n <Primary RPH=\"1\" Age=\"25\">\n <PersonName>\n <NamePrefix>Mr</NamePrefix>\n <GivenName>Bender</GivenName>\n <Surname>Bending</Surname>\n </PersonName>\n <Telephone PhoneNumber=\"+4912252352\"/>\n <Email>bender@gmail.com</Email>\n </Primary>\n <Additional RPH=\"2\" Age=\"25\"/>\n <Additional RPH=\"3\" Age=\"11\"/>\n </Passengers>\n </GroundReservations>\n <TPA_Extensions>\n <UniqueID Type=\"36\" ID_Context=\"Client\" ID=\"test_xxx\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr1\" Item_RPH=\"1\"/>\n <UniqueID Type=\"37\" ID_Context=\"Client\" ID=\"text_xxx_tr2\" Item_RPH=\"2\"/>\n </TPA_Extensions>\n</OTA_GroundBookRQ>"
response = http.request(request)
puts response.read_body"<string>"Use this message to book an available transfer service.
Find all the necessary information regarding the request message here
The endpoint (url) shown in the code snippet is for Sandbox only. If you need to throw the requests from Postman or other tools, please use https://sintesb.axisdata.net/apu-test/ota after whitelisting your IPs. More info at Access to our Systems
Body
application/xml
The body is of type string<xml>.
Response
200 - application/xml
Success
The response is of type string.
⌘I

