Skip to content

REST: Bookings Export

The bookings export endpoint allows you to export bookings based on specific criteria and a pre-configured data structure (layout).

POST /api/v2/bookings
ParameterTypeDescription
skipnumberNumber of records to skip from the beginning
countnumberMaximum number of records to return (max 1000)
PropertyTypeDescription
layoutIdstringUUID of the layout configured in the Mobiledock UI. Determines output columns and their order
filterobjectFilter criteria (see Querying Bookings)
formatstringOutput format: json or csv
viewAsstringData type: bookings or tasks
Terminal window
curl -X POST "https://my.mobiledock.com/api/v2/bookings?skip=0&count=100" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"layoutId": "00000000-0000-0000-0000-000000000000",
"filter": {
"location": {
"name": { "eq": "Example DC" }
}
},
"format": "json",
"viewAs": "bookings"
}'

The response is a JSON object with a data array. Each object represents a single booking. The keys correspond to the column names defined in the layout.

{
"data": [
{
"ID": "MDB-25-BBPD-959B",
"PIN": "44918",
"POs": "PO-0010, PO-0020, PO-0030",
"Receivers": "Example DC",
"Senders": "SUPPLIER A, SUPPLIER B",
"Pallets": 100,
"Cartons": 1000,
"Status": "Completed",
"Scheduled": "15/05/2025 16:00:00",
"Carrier": "Example Carrier",
"Direction": "Inbound",
"Space": "Bay 03"
}
]
}