Parameters
| Query parameter | Meaning | Example |
|---|---|---|
limit | Maximum number of bookings in the response. | 25 |
offset | Zero-based index of the first booking to return. | 0 |
static_filter | Named status filter; omit for all bookings. | inprogress |
Send Authorization: Bearer <token> with every request. The token comes from the OAuth 2.0 client credentials flow and must carry the bookings:read scope.
Request body
{ "static_filter": "inprogress", "limit": 25, "offset": 0 }Example request
curl -X POST 'https://api.airliftusa.com/api/v1/api-service/external/bookings' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"static_filter":"inprogress","limit":25,"offset":0}'Example response (200)
[
{
"carrierServiceCode": "TA1",
"carrierExportVoyageNumber": "403W",
"vessel": { "name": "MAERSK IOWA", "vesselIMONumber": "9298686" },
"expectedDepartureDate": "2024-01-20",
"expectedArrivalDate": "2024-02-14",
"shipmentLocations": [
{ "locationTypeCode": "POL", "location": { "UNLocationCode": "DEBRV", "locationName": "Bremerhaven" } },
{ "locationTypeCode": "POD", "location": { "UNLocationCode": "USORF", "locationName": "Norfolk" } }
],
"requestedEquipments": [
{ "ISOEquipmentCode": "42G1", "units": 3, "commodities": [{ "commodityType": "Dry cargo, Freight all kinds" }] }
],
"cargoMovementTypeAtOrigin": "FCL",
"incoTerms": "EXW",
"freightPaymentTermCode": "PRE"
}
]- The response is a JSON array of booking records; each element has the same fields as GET /booking.
- Page with limit and offset until a page comes back shorter than limit.
Other status codes: 400 missing or invalid parameter, 401 token missing or expired, 403 scope not granted, 404 nothing matches the reference, 500 server error. Limits are 60 requests a minute and 4,000 an hour per consumer, reported in the X-RateLimit-* headers.
Frequently asked questions
Why is this a POST?
The filters travel in a JSON body as well as the query string, which keeps longer filter sets off the URL. The call reads data and changes nothing.
What does static_filter accept?
Named filters such as inprogress. Leave it out to list every booking the account can see.
Other endpoints
- GET /trackntrace · Track & Trace Events
- GET /booking · Ocean Booking
- GET /documents · Commercial Shipping Documents
- GET /invoices · Invoices Data Service
- GET /invoice · Invoice Data
- All API documentation
- Free tariff API
Need access? Register your application in the developer portal; the API is open to approved Airlift customers.