POSTAPI key
Air-freight quote
POSTapi.aircargomcp.com/rates/quote
An all-in per-kg quote for a lane and weight. Computes chargeable weight from the volume, then applies weight breaks and surcharges.
Request body
origin
Origin airport IATA.
destination
Destination airport IATA.
weight_kg
Gross weight in kilograms.
volume_cm3
Volume in cubic centimetres, for chargeable-weight.
Response fields
Derived from the example response.
data
The payload. Everything an endpoint returns sits under this key.
data.origin
Origin code (airport IATA or UN/LOCODE).
data.destination
Destination code (airport IATA or UN/LOCODE).
data.chargeable_weight_kg
Chargeable weight in kilograms.
data.net_per_kg
Net rate per kilogram.
data.surcharge_per_kg
Surcharges per kilogram.
data.total_charge
All-in charge for the shipment.
data.currency
ISO currency code.
data.airline_iata
Airline 2-letter IATA code.
curl -X POST 'https://api.aircargomcp.com/rates/quote' \
-H "Authorization: Bearer tmcp_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"FRA","destination":"JFK","weight_kg":512,"volume_cm3":3200000}'const res = await fetch("https://api.aircargomcp.com/rates/quote", {
method: "POST",
headers: {
"Authorization": "Bearer tmcp_YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"origin": "FRA",
"destination": "JFK",
"weight_kg": 512,
"volume_cm3": 3200000
})
});
const data = await res.json();import requests
res = requests.post(
"https://api.aircargomcp.com/rates/quote",
headers={"Authorization": "Bearer tmcp_YOUR_API_KEY"},
json={
"origin": "FRA",
"destination": "JFK",
"weight_kg": 512,
"volume_cm3": 3200000
},
)
data = res.json() Response
{
"data": {
"origin": "FRA", "destination": "JFK",
"chargeable_weight_kg": 533,
"net_per_kg": 2.85,
"surcharge_per_kg": 0.62,
"total_charge": 1849.51,
"currency": "EUR",
"airline_iata": "LH"
}
}