POST/v2/order/search

Search my bookings

A page of this customer’s bookings, newest first. The owner filter always comes from the token.

Bearer tokenAuthority: B2C_ORDER_SEARCHhttps://booking.aerolink.dev

An empty body lists everything the shopper owns. A userId or agencyId in the body is ignored — a storefront cannot widen the window. statusName accepts only BOOKED, ISSUED, CANCELLED, EXPIRED, REFUND_REQUESTED.

cURL

bash
curl -X POST "https://booking.aerolink.dev/v2/order/search?pageNum=0&pageSize=10" \
  -H "Authorization: Bearer eyJ..." \
  -H "Content-Type: application/json" \
  -d '{"statusName":"ISSUED"}'

Query parameters

pageNumnumber
optional

Default 0

pageSizenumber
optional

Default 10

Request

JSON
{
  "pnr": "ABC123",
  "statusName": "ISSUED",
  "fromDate": 1788300000,
  "toDate": 1788400000
}

Body fields

pnrstring
optional

Exact match, case-insensitive

statusNamestring
optional

BOOKED, ISSUED, CANCELLED, EXPIRED, REFUND_REQUESTED

fromDatenumber
optional

Booking-time epoch seconds. Only applied together with toDate.

toDatenumber
optional

As above

Response

200
{
  "message": "Success",
  "data": {
    "content": [
      {
        "id": "66f0...",
        "refNo": "TRP-000123",
        "pnr": "ABC123",
        "status": "ISSUED",
        "price": { "currencyCode": "BDT", "total": 46300 },
        "bookingTime": 1788356966,
        "route": "DAC-DXB",
        "primaryPassenger": "RAHIM UDDIN"
      }
    ],
    "meta": null,
    "page": 0,
    "size": 10,
    "totalElements": 1,
    "totalPages": 1,
    "last": true
  }
}

Errors

400UNKNOWN_STATUS

statusName is not one of the five accepted values

401 / 403UNAUTHORIZED

Missing token or missing B2C_ORDER_SEARCH