POST Airline/BookingList
Request Information
URI Parameters
None.
Body Parameters
AirlineBookingListRequestName | Description | Type | Additional information |
---|---|---|---|
filterByStatus | csFilterDateTicketAirline |
None. |
|
startDate | date |
None. |
|
endDate | date |
None. |
|
userID |
user API |
string |
None. |
accessToken |
access code getting from login |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "filterByStatus": 0, "startDate": "2025-01-22T23:56:50.2004702+07:00", "endDate": "2025-01-22T23:56:50.2004702+07:00", "userID": "sample string 1", "accessToken": "sample string 2" }
application/xml, text/xml
Sample:
<AirlineBookingListRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 2</accessToken> <userID>sample string 1</userID> <endDate>2025-01-22T23:56:50.2004702+07:00</endDate> <filterByStatus>Booking</filterByStatus> <startDate>2025-01-22T23:56:50.2004702+07:00</startDate> </AirlineBookingListRequest>
Response Information
Resource Description
AirlineBookingListResponseName | Description | Type | Additional information |
---|---|---|---|
filterByStatus | csFilterDateTicketAirline |
None. |
|
startDate | date |
None. |
|
endDate | date |
None. |
|
bookingInfos | Collection of AirlineBookingDetailModel |
None. |
|
respTime |
describe time in sending response |
date |
None. |
userID |
user ID to access API |
string |
None. |
accessToken |
access token that needed to access API |
string |
None. |
status |
SUCCESS or FAILED |
string |
None. |
respMessage |
detail message of response status |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "filterByStatus": 0, "startDate": "2025-01-22T23:56:50.2161+07:00", "endDate": "2025-01-22T23:56:50.2161+07:00", "bookingInfos": [ { "flightDetails": [ { "flightNumber": "sample string 1", "fdDepartTime": "2025-01-22T23:56:50.2161+07:00", "fdArrivalTime": "2025-01-22T23:56:50.2161+07:00", "fdOrigin": "sample string 4", "fdDestination": "sample string 5", "fdFlightClass": "sample string 6" }, { "flightNumber": "sample string 1", "fdDepartTime": "2025-01-22T23:56:50.2161+07:00", "fdArrivalTime": "2025-01-22T23:56:50.2161+07:00", "fdOrigin": "sample string 4", "fdDestination": "sample string 5", "fdFlightClass": "sample string 6" } ], "airline": "sample string 1", "airlineID": "sample string 2", "bookingCode": "sample string 3", "bookingDate": "2025-01-22T23:56:50.2161+07:00", "timeLimit": "2025-01-22T23:56:50.2161+07:00", "route": "sample string 5", "agenFare": 1.0, "currency": "sample string 6", "bookingStatus": "sample string 7", "pax": 8, "referenceNo": "sample string 9" }, { "flightDetails": [ { "flightNumber": "sample string 1", "fdDepartTime": "2025-01-22T23:56:50.2161+07:00", "fdArrivalTime": "2025-01-22T23:56:50.2161+07:00", "fdOrigin": "sample string 4", "fdDestination": "sample string 5", "fdFlightClass": "sample string 6" }, { "flightNumber": "sample string 1", "fdDepartTime": "2025-01-22T23:56:50.2161+07:00", "fdArrivalTime": "2025-01-22T23:56:50.2161+07:00", "fdOrigin": "sample string 4", "fdDestination": "sample string 5", "fdFlightClass": "sample string 6" } ], "airline": "sample string 1", "airlineID": "sample string 2", "bookingCode": "sample string 3", "bookingDate": "2025-01-22T23:56:50.2161+07:00", "timeLimit": "2025-01-22T23:56:50.2161+07:00", "route": "sample string 5", "agenFare": 1.0, "currency": "sample string 6", "bookingStatus": "sample string 7", "pax": 8, "referenceNo": "sample string 9" } ], "respTime": "2025-01-22T23:56:50.2161+07:00", "userID": "sample string 2", "accessToken": "sample string 3", "status": "sample string 4", "respMessage": "sample string 5" }
application/xml, text/xml
Sample:
<AirlineBookingListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 3</accessToken> <respMessage>sample string 5</respMessage> <respTime>2025-01-22T23:56:50.2161+07:00</respTime> <status>sample string 4</status> <userID>sample string 2</userID> <bookingInfos> <AirlineBookingDetailModel> <agenFare>1</agenFare> <airline>sample string 1</airline> <airlineID>sample string 2</airlineID> <bookingCode>sample string 3</bookingCode> <bookingDate>2025-01-22T23:56:50.2161+07:00</bookingDate> <bookingStatus>sample string 7</bookingStatus> <currency>sample string 6</currency> <flightDetails> <FligthDetailModel> <fdArrivalTime>2025-01-22T23:56:50.2161+07:00</fdArrivalTime> <fdDepartTime>2025-01-22T23:56:50.2161+07:00</fdDepartTime> <fdDestination>sample string 5</fdDestination> <fdFlightClass>sample string 6</fdFlightClass> <fdOrigin>sample string 4</fdOrigin> <flightNumber>sample string 1</flightNumber> </FligthDetailModel> <FligthDetailModel> <fdArrivalTime>2025-01-22T23:56:50.2161+07:00</fdArrivalTime> <fdDepartTime>2025-01-22T23:56:50.2161+07:00</fdDepartTime> <fdDestination>sample string 5</fdDestination> <fdFlightClass>sample string 6</fdFlightClass> <fdOrigin>sample string 4</fdOrigin> <flightNumber>sample string 1</flightNumber> </FligthDetailModel> </flightDetails> <pax>8</pax> <referenceNo>sample string 9</referenceNo> <route>sample string 5</route> <timeLimit>2025-01-22T23:56:50.2161+07:00</timeLimit> </AirlineBookingDetailModel> <AirlineBookingDetailModel> <agenFare>1</agenFare> <airline>sample string 1</airline> <airlineID>sample string 2</airlineID> <bookingCode>sample string 3</bookingCode> <bookingDate>2025-01-22T23:56:50.2161+07:00</bookingDate> <bookingStatus>sample string 7</bookingStatus> <currency>sample string 6</currency> <flightDetails> <FligthDetailModel> <fdArrivalTime>2025-01-22T23:56:50.2161+07:00</fdArrivalTime> <fdDepartTime>2025-01-22T23:56:50.2161+07:00</fdDepartTime> <fdDestination>sample string 5</fdDestination> <fdFlightClass>sample string 6</fdFlightClass> <fdOrigin>sample string 4</fdOrigin> <flightNumber>sample string 1</flightNumber> </FligthDetailModel> <FligthDetailModel> <fdArrivalTime>2025-01-22T23:56:50.2161+07:00</fdArrivalTime> <fdDepartTime>2025-01-22T23:56:50.2161+07:00</fdDepartTime> <fdDestination>sample string 5</fdDestination> <fdFlightClass>sample string 6</fdFlightClass> <fdOrigin>sample string 4</fdOrigin> <flightNumber>sample string 1</flightNumber> </FligthDetailModel> </flightDetails> <pax>8</pax> <referenceNo>sample string 9</referenceNo> <route>sample string 5</route> <timeLimit>2025-01-22T23:56:50.2161+07:00</timeLimit> </AirlineBookingDetailModel> </bookingInfos> <endDate>2025-01-22T23:56:50.2161+07:00</endDate> <filterByStatus>Booking</filterByStatus> <startDate>2025-01-22T23:56:50.2161+07:00</startDate> </AirlineBookingListResponse>