Flight Orders
POST
/api/v1/generic-api-service/flight/orders?page=0&size=100
The orders endpoint returns a paginated list of flight orders (bookings) filtered by a date range. Each item summarizes an order — PNR, route, direction, status, amount and dates. Use the page and size query parameters to page through results.
- cURL
- Request
- Response
- Request Details
- Response Details
curl --location 'https://test-api.etscore.com/api/v1/generic-api-service/flight/orders?page=0&size=100' \
--header 'Accept-Language: en-US' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"filterType": "SALES",
"startDate": "2026-09-11",
"endDate": "2026-09-11"
}'
{
"filterType": "SALES",
"startDate": "2026-09-11",
"endDate": "2026-09-11"
}
{
"content": [
0: {
"orderId": 49661695,
"pnr": "42ED16",
"pax": 1,
"provider": "Ajet Test",
"airline": "Ajet",
"direction": "ROUNDTRIP",
"flightType": "DOMESTIC",
"cabType": "ECONOMY",
"parkur": "AYT-SAW",
"statute": "TICKET",
"departureDate": "2026-10-10T05:15:00",
"eticketSaleDate": "2026-09-11T10:22:50",
"totalAmount": 116.5,
"currency": "EUR",
"paymentType": "Debit"
},
1: {
"orderId": 49661659,
"pnr": "42ECTE",
"pax": 1,
"provider": "Ajet Test",
"airline": "Ajet",
"direction": "ROUNDTRIP",
"flightType": "DOMESTIC",
"cabType": "ECONOMY",
"parkur": "SAW-AYT",
"statute": "REFUND_PNR",
"departureDate": "2026-09-27T02:55:00",
"eticketSaleDate": "2026-09-11T07:23:56",
"totalAmount": 191.71,
"currency": "EUR",
"paymentType": "Debit"
}
],
"pageable": {
"pageNumber": 0,
"pageSize": 100,
"sort": {
"sorted": false,
"empty": true,
"unsorted": true
},
"offset": 0,
"paged": true,
"unpaged": false
},
"totalElements": 25,
"totalPages": 1,
"last": true,
"size": 100,
"number": 0,
"sort": {
"sorted": false,
"empty": true,
"unsorted": true
},
"numberOfElements": 25,
"first": true,
"empty": false
}
| Name | Type | Required | Description |
|---|---|---|---|
| filterType | string | Yes | The type of date filter to apply. SALES filters by e-ticket sale date. |
| startDate | string | Yes | Start of the date range in yyyy-MM-dd format. |
| endDate | string | Yes | End of the date range in yyyy-MM-dd format. |
| Name | Type | Required | Description |
|---|---|---|---|
| content | object-array | Yes | The list of orders on the current page. |
| content/orderId | int | Yes | Unique order identifier. |
| content/pnr | string | Yes | Passenger Name Record (booking reference). |
| content/pax | int | Yes | Number of passengers on the order. |
| content/provider | string | Yes | Provider/source of the booking (e.g. Ajet Test). |
| content/airline | string | Yes | Airline name (e.g. Ajet). |
| content/direction | string | Yes | Trip direction: ONEWAY or ROUNDTRIP. |
| content/flightType | string | Yes | Flight scope: DOMESTIC or INTERNATIONAL. |
| content/cabType | string | Yes | Cabin type (e.g. ECONOMY). |
| content/parkur | string | Yes | Route in ORIGIN-DESTINATION IATA format (e.g. AYT-SAW). |
| content/statute | string | Yes | Order status (e.g. TICKET, REFUND_PNR). |
| content/departureDate | string | Yes | Departure date and time of the (first) flight. |
| content/eticketSaleDate | string | Yes | Date and time the e-ticket was sold/issued. |
| content/totalAmount | decimal | Yes | Total amount of the order. |
| content/currency | string | Yes | Currency of the amount (e.g. EUR). |
| content/paymentType | string | Yes | Payment method (e.g. Debit). |
| pageable | object | Yes | Pagination request info: pageNumber, pageSize, offset, paged, unpaged, sort. |
| totalElements | int | Yes | Total number of orders matching the filter across all pages. |
| totalPages | int | Yes | Total number of pages. |
| number | int | Yes | Current page index (zero-based). |
| size | int | Yes | Page size used for this response. |
| numberOfElements | int | Yes | Number of orders returned on the current page. |
| first | boolean | Yes | Whether this is the first page. |
| last | boolean | Yes | Whether this is the last page. |
| empty | boolean | Yes | Whether the current page has no elements. |
| sort | object | Yes | Sort state: sorted, unsorted, empty. |