Get information about the given BookingDetail Object
curl --request GET \
--url https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}import requests
url = "https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}', 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}/bookingdetail/{bookingDetailId}",
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}/bookingdetail/{bookingDetailId}"
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}/bookingdetail/{bookingDetailId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}")
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 BookingDetail Object
Get information about the given BookingDetail Object
Retrieves information about the given BookingDetail Object.
Response
Top Level Result Object
| Field name | Nullable | Type | Description |
|---|---|---|---|
| bookingDetailId | n | Integer | ID of this BookingDetail Object. |
| name | n | String | Name of BookingDetail Object. |
| pickups | n | Array | List of Pickup objects. |
| supplierBookingDetailsOptionalFields | n | Array | List of SupplierBookingDetailsOptionalField objects. |
Pickup Object
| Field name | Nullable | Type | Description |
|---|---|---|---|
| pickupTime | n | String | Time in format HH:ii. |
| pickupLocation | n | String | Name of pickup location. |
SupplierBookingDetailsOptionalField
| Field name | Nullable | Type | Description |
|---|---|---|---|
| supplierBookingDetailsOptionalFieldId | n | Integer | Unique identifier. |
| title | n | String | Name of the optional field. |
GET
/
{supplierapi}
/
bookingdetail
/
{bookingDetailId}
Get information about the given BookingDetail Object
curl --request GET \
--url https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}import requests
url = "https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}', 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}/bookingdetail/{bookingDetailId}",
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}/bookingdetail/{bookingDetailId}"
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}/bookingdetail/{bookingDetailId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{supplierapi}/bookingdetail/{bookingDetailId}")
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