POST/v2/travelers/search

Search saved travellers

The shopper’s traveller book. Owner is always the token. No money fields, so no POS conversion.

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

Use this to pre-fill the passenger form. Name is a case-insensitive partial match on given name or surname. type maps Adult → ADT, Child → C0*, Infant → INF; any other value matches the raw stored type.

cURL

bash
curl -X POST "https://booking.aerolink.dev/v2/travelers/search?pageNum=0&pageSize=10" \
  -H "Authorization: Bearer eyJ..." \
  -H "Content-Type: application/json" \
  -d '{"name":"rahim","type":"Adult"}'

Query parameters

pageNumnumber
optional

Default 0

pageSizenumber
optional

Default 10

Request

JSON
{
  "name": "rahim",
  "type": "Adult"
}

Body fields

namestring
optional

Case-insensitive partial match on given name or surname

typestring
optional

Adult, Child, Infant, or a raw stored type

Response

200
{
  "message": "Success",
  "data": {
    "content": [
      {
        "id": "66c9...",
        "type": "ADT",
        "givenName": "RAHIM",
        "surname": "UDDIN",
        "gender": "MALE",
        "dateOfBirth": "1990-05-12",
        "phoneNumber": "+8801700000000",
        "email": "customer@example.com",
        "document": {}
      }
    ],
    "meta": null,
    "page": 0,
    "size": 10,
    "totalElements": 1,
    "totalPages": 1,
    "last": true
  }
}

Business rules

  • Sorted by id descending. There is no field a client can use to widen the owner filter.

Errors

401 / 403UNAUTHORIZED

Missing token or missing B2C_TRAVELER_SEARCH