List quotes or get quote details
curl --request GET \
--url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes \
--header 'Authorization: <api-key>'import requests
url = "https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes', 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://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"quotes": [
{
"id": "quote-123",
"status": "pending",
"origin": "DOH",
"destination": "LHR",
"pieces": 10,
"weight": 500,
"volume": 2.5,
"commodity": "GEN",
"shc": [
"PER"
],
"createdAt": "2024-01-01T10:00:00Z",
"priceOptions": [
{
"flightNumber": "QR123",
"departureDate": "2024-01-15",
"pricePerKg": 2.5,
"totalAmount": 2450,
"currency": "USD",
"validityHours": 24
}
]
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 100,
"totalPages": 10
}
}{
"error": "not_found",
"errorDescription": "No quotes found matching the specified criteria",
"errorUri": "https://docs.example.com/cargo/errors"
}Quotes
Get Quotes
Get list of quotes with optional filtering, or get specific quote details by ID
GET
/
api
/
quotes
List quotes or get quote details
curl --request GET \
--url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes \
--header 'Authorization: <api-key>'import requests
url = "https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes', 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://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"quotes": [
{
"id": "quote-123",
"status": "pending",
"origin": "DOH",
"destination": "LHR",
"pieces": 10,
"weight": 500,
"volume": 2.5,
"commodity": "GEN",
"shc": [
"PER"
],
"createdAt": "2024-01-01T10:00:00Z",
"priceOptions": [
{
"flightNumber": "QR123",
"departureDate": "2024-01-15",
"pricePerKg": 2.5,
"totalAmount": 2450,
"currency": "USD",
"validityHours": 24
}
]
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 100,
"totalPages": 10
}
}{
"error": "not_found",
"errorDescription": "No quotes found matching the specified criteria",
"errorUri": "https://docs.example.com/cargo/errors"
}Retrieve quotes list with optional filtering, or get specific quote details by ID.
Reference Documentation
For more information on quote preparation and response, please refer to:
- Pages 14-19 of “Functional_Requirements_V18 FINAL”: https://belli.sg/4nxxCDR
Authorizations
ApiKeyAuthApiKeyHeader
Query Parameters
Quote ID to get specific quote details
Filter by status
Filter by origin
Filter by destination
⌘I