Skip to main content
POST
/
api
/
flights
/
{id}
/
bookings
Ingest Flight Booking List (XFBL/FBL)
curl --request POST \
  --url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/flights/{id}/bookings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flightId": "QR001-20240101",
  "bookings": [
    {
      "awbNumber": "157-12345678",
      "pieces": 10,
      "weight": 500,
      "volume": 2.1,
      "origin": "DOH",
      "destination": "LHR",
      "status": "BKD",
      "xfbl": "<XFBL XML or IMP>",
      "fbl": "<FBL if sent>"
    }
  ]
}
'
{
  "flightId": "QR001-20240101",
  "accepted": 1,
  "failed": 0
}

Reference Documentation

For more information on FBL/XFBL booking ingestion, please refer to:

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Flight ID

Body

application/json
flightId
string
required
Example:

"QR001-20240101"

bookings
object[]
required

Response

202 - application/json

Bookings Ingested Successfully

flightId
string
Example:

"QR001-20240101"

accepted
integer
Example:

1

failed
integer
Example:

0