OTA Activity NBC Request
curl --request POST \
--url https://ota-int.axisdata.net:9443/activitynbc \
--header 'Content-Type: application/xml' \
--data '<OTA_ProductDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2016.2" PrimaryLangID="EN" AltLangID="EN" SequenceNmbr="1">
<POS>
<Source>
<RequestorID ID="TEST" ID_Context="AxisData" Type="22"/>
</Source>
<Source>
<RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>
</Source>
</POS>
<ProductDescriptiveInfos>
<TourActivityDescriptiveInfo TourActivityID="XESPMI5L4U"/>
</ProductDescriptiveInfos>
</OTA_ProductDescriptiveInfoRQ>'import requests
url = "https://ota-int.axisdata.net:9443/activitynbc"
payload = "<OTA_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>"
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_ProductDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2016.2" PrimaryLangID="EN" AltLangID="EN" SequenceNmbr="1">\n <POS>\n <Source>\n <RequestorID ID="TEST" ID_Context="AxisData" Type="22"/>\n </Source>\n <Source>\n <RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID="XESPMI5L4U"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>'
};
fetch('https://ota-int.axisdata.net:9443/activitynbc', 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/activitynbc",
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_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>",
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/activitynbc"
payload := strings.NewReader("<OTA_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>")
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/activitynbc")
.header("Content-Type", "application/xml")
.body("<OTA_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ota-int.axisdata.net:9443/activitynbc")
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_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>"
response = http.request(request)
puts response.read_body"<string>"Activity NBC
OTA_ProductDescriptiveInfoRQ Playground
POST
/
activitynbc
OTA Activity NBC Request
curl --request POST \
--url https://ota-int.axisdata.net:9443/activitynbc \
--header 'Content-Type: application/xml' \
--data '<OTA_ProductDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2016.2" PrimaryLangID="EN" AltLangID="EN" SequenceNmbr="1">
<POS>
<Source>
<RequestorID ID="TEST" ID_Context="AxisData" Type="22"/>
</Source>
<Source>
<RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>
</Source>
</POS>
<ProductDescriptiveInfos>
<TourActivityDescriptiveInfo TourActivityID="XESPMI5L4U"/>
</ProductDescriptiveInfos>
</OTA_ProductDescriptiveInfoRQ>'import requests
url = "https://ota-int.axisdata.net:9443/activitynbc"
payload = "<OTA_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>"
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_ProductDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2016.2" PrimaryLangID="EN" AltLangID="EN" SequenceNmbr="1">\n <POS>\n <Source>\n <RequestorID ID="TEST" ID_Context="AxisData" Type="22"/>\n </Source>\n <Source>\n <RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID="XESPMI5L4U"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>'
};
fetch('https://ota-int.axisdata.net:9443/activitynbc', 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/activitynbc",
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_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>",
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/activitynbc"
payload := strings.NewReader("<OTA_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>")
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/activitynbc")
.header("Content-Type", "application/xml")
.body("<OTA_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ota-int.axisdata.net:9443/activitynbc")
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_ProductDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2016.2\" PrimaryLangID=\"EN\" AltLangID=\"EN\" SequenceNmbr=\"1\">\n <POS>\n <Source>\n <RequestorID ID=\"TEST\" ID_Context=\"AxisData\" Type=\"22\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <ProductDescriptiveInfos>\n <TourActivityDescriptiveInfo TourActivityID=\"XESPMI5L4U\"/>\n </ProductDescriptiveInfos>\n</OTA_ProductDescriptiveInfoRQ>"
response = http.request(request)
puts response.read_body"<string>"Use this message to retrieve NBC data for a specific tour activity.
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

