POST Airline/Ticket

Request Information

URI Parameters

None.

Body Parameters

AirlineTicketRequest
NameDescriptionTypeAdditional information
bookingCode

string

None.

bookingDate

date

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "bookingCode": "sample string 1",
  "bookingDate": "2025-01-22T23:57:38.9550096+07:00",
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<AirlineTicketRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 4</accessToken>
  <userID>sample string 3</userID>
  <bookingCode>sample string 1</bookingCode>
  <bookingDate>2025-01-22T23:57:38.9550096+07:00</bookingDate>
</AirlineTicketRequest>

Response Information

Resource Description

AirlineTicketResponse
NameDescriptionTypeAdditional information
airlineID

string

None.

bookingCode

string

None.

bookingDate

date

None.

type

string

None.

eTicket

string

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:
{
  "airlineID": "sample string 1",
  "bookingCode": "sample string 2",
  "bookingDate": "2025-01-22T23:57:38.9706448+07:00",
  "type": "sample string 4",
  "eTicket": "sample string 5",
  "respTime": "2025-01-22T23:57:38.9706448+07:00",
  "userID": "sample string 7",
  "accessToken": "sample string 8",
  "status": "sample string 9",
  "respMessage": "sample string 10"
}

application/xml, text/xml

Sample:
<AirlineTicketResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 8</accessToken>
  <respMessage>sample string 10</respMessage>
  <respTime>2025-01-22T23:57:38.9706448+07:00</respTime>
  <status>sample string 9</status>
  <userID>sample string 7</userID>
  <airlineID>sample string 1</airlineID>
  <bookingCode>sample string 2</bookingCode>
  <bookingDate>2025-01-22T23:57:38.9706448+07:00</bookingDate>
  <eTicket>sample string 5</eTicket>
  <type>sample string 4</type>
</AirlineTicketResponse>