Skip to content

booking

Query

Get a single booking, identified by ID.

To see a booking for which an organisation of yours is the location at, you must have the ViewLocationBookings permission for the location. To see a booking for which an organisation of yours is the carrier for, you must have the ViewCarrierBookings permission for that organisation.

If the booking is present at multiple of your organisations, you only need permission from one to see it.

query {
booking(
id: ID!
): Booking
}
ArgumentTypeDefaultDescription
id*ID!The ID of the booking

Booking (Booking)

query Booking($id: ID!) {
booking(id: $id) {
id
pin
status {
id
name
description
}
carrier {
id
name
description
}
requestedTime
bookedTime
duration
reassignedFrom
}
}
{
"data": {
"booking": {
"id": "MDB-26-GS8Q-8Q30",
"pin": "65471",
"status": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Approved",
"description": ""
},
"carrier": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Express Freight Co",
"description": ""
},
"requestedTime": "2026-03-28T19:00:00Z",
"bookedTime": "2026-03-28T19:00:00Z",
"duration": 30,
"reassignedFrom": "MDB-26-GS8Q-8Q30"
}
}
}