OTA Hotel NBC Request
curl --request POST \
--url https://ota-int.axisdata.net:9443/hotelnbc \
--header 'Content-Type: application/xml' \
--data '<OTA_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2009.1" PrimaryLangID="EN" AltLangID="EN">
<POS>
<Source>
<RequestorID Type="22" ID="TEST" ID_Context="AxisData"/>
</Source>
<Source>
<RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>
</Source>
</POS>
<HotelDescriptiveInfos>
<HotelDescriptiveInfo HotelCode="AESPMI5L46" BrandCode="TEST">
</HotelDescriptiveInfo>
</HotelDescriptiveInfos>
</OTA_HotelDescriptiveInfoRQ>'import requests
url = "https://ota-int.axisdata.net:9443/hotelnbc"
payload = "<OTA_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>"
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_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2009.1" PrimaryLangID="EN" AltLangID="EN">\n <POS>\n <Source>\n <RequestorID Type="22" ID="TEST" ID_Context="AxisData"/>\n </Source>\n <Source>\n <RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode="AESPMI5L46" BrandCode="TEST">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>'
};
fetch('https://ota-int.axisdata.net:9443/hotelnbc', 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/hotelnbc",
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_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>",
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/hotelnbc"
payload := strings.NewReader("<OTA_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>")
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/hotelnbc")
.header("Content-Type", "application/xml")
.body("<OTA_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ota-int.axisdata.net:9443/hotelnbc")
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_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>"
response = http.request(request)
puts response.read_body"<string>"Hotel NBC
OTA_HotelDescriptiveInfoRQ Playground
POST
/
hotelnbc
OTA Hotel NBC Request
curl --request POST \
--url https://ota-int.axisdata.net:9443/hotelnbc \
--header 'Content-Type: application/xml' \
--data '<OTA_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2009.1" PrimaryLangID="EN" AltLangID="EN">
<POS>
<Source>
<RequestorID Type="22" ID="TEST" ID_Context="AxisData"/>
</Source>
<Source>
<RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>
</Source>
</POS>
<HotelDescriptiveInfos>
<HotelDescriptiveInfo HotelCode="AESPMI5L46" BrandCode="TEST">
</HotelDescriptiveInfo>
</HotelDescriptiveInfos>
</OTA_HotelDescriptiveInfoRQ>'import requests
url = "https://ota-int.axisdata.net:9443/hotelnbc"
payload = "<OTA_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>"
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_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2009.1" PrimaryLangID="EN" AltLangID="EN">\n <POS>\n <Source>\n <RequestorID Type="22" ID="TEST" ID_Context="AxisData"/>\n </Source>\n <Source>\n <RequestorID Type="88" ID="TEST" MessagePassword="testpass"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode="AESPMI5L46" BrandCode="TEST">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>'
};
fetch('https://ota-int.axisdata.net:9443/hotelnbc', 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/hotelnbc",
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_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>",
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/hotelnbc"
payload := strings.NewReader("<OTA_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>")
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/hotelnbc")
.header("Content-Type", "application/xml")
.body("<OTA_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ota-int.axisdata.net:9443/hotelnbc")
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_HotelDescriptiveInfoRQ xmlns=\"http://www.opentravel.org/OTA/2003/05\" Version=\"2009.1\" PrimaryLangID=\"EN\" AltLangID=\"EN\">\n <POS>\n <Source>\n <RequestorID Type=\"22\" ID=\"TEST\" ID_Context=\"AxisData\"/>\n </Source>\n <Source>\n <RequestorID Type=\"88\" ID=\"TEST\" MessagePassword=\"testpass\"/>\n </Source>\n </POS>\n <HotelDescriptiveInfos>\n <HotelDescriptiveInfo HotelCode=\"AESPMI5L46\" BrandCode=\"TEST\">\n </HotelDescriptiveInfo>\n </HotelDescriptiveInfos>\n</OTA_HotelDescriptiveInfoRQ>"
response = http.request(request)
puts response.read_body"<string>"Use this message to retrieve all necessary NBC or Portfolio information as specified in the request.
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

