Get information about the given allocation
curl --request GET \
--url https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}import requests
url = "https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyVersion 1
Get information about the given allocation
Get information about the given allocation
Retrieves information about the given allocation.
Response
Top Level Result Object
| Field name | Nullable | Type | Description |
|---|---|---|---|
| allocationId | n | Integer | ID of this Allocation. |
| allocationName | n | String | Name of the Allocation. |
| defaultQuantity | n | Integer | Default quantity for this Allocation. |
| startDate | n | String | Start date of this Allocation in format YYYY-MM-DD. |
| endDate | y | String | End date of this Allocation in format YYYY-MM-DD. |
| blockoutDays | y | String | Days of the week on which this product is not available. Comma-separated list of integers (eg ‘3,5’) where 0 => Sunday, 1=> Monday etc. |
| bookingDetailId | y | Integer | ID of the BookingDetail Object for this allocation. |
| bookingBuffer | y | Integer | Number of days before booking date that reservations through Website Travel should be disabled. |
| productPricesDetailsIds | n | String | Comma-separated listed of IDs for the ProductPricesDetails that this Allocation should apply to. |
GET
/
{supplierapi}
/
product
/
{productId}
/
allocation
/
{allocationId}
Get information about the given allocation
curl --request GET \
--url https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}import requests
url = "https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{supplierapi}/product/{productId}/allocation/{allocationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body