POST Airline/Issued

airline issued request

Request Information

URI Parameters

None.

Body Parameters

AirlineIssuedRequest
NameDescriptionTypeAdditional information
airlineID

ID or code for airlines

string

None.

origin

origin ID

string

None.

destination

destination ID

string

None.

tripType

type of flight trip, OneWay for without return flight, RoundTrip for using return flight

string

None.

departDate

date for flight

date

None.

returnDate

date for return flight

date

None.

bookingCode

booking code

string

None.

bookingDate

booking date

date

None.

airlineAccessCode

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "airlineID": "sample string 1",
  "origin": "sample string 2",
  "destination": "sample string 3",
  "tripType": "sample string 4",
  "departDate": "2021-11-26T23:34:54.0266928+07:00",
  "returnDate": "2021-11-26T23:34:54.0266928+07:00",
  "bookingCode": "sample string 7",
  "bookingDate": "2021-11-26T23:34:54.0266928+07:00",
  "airlineAccessCode": "sample string 9",
  "userID": "sample string 10",
  "accessToken": "sample string 11"
}

application/xml, text/xml

Sample:
<AirlineIssuedRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 11</accessToken>
  <userID>sample string 10</userID>
  <airlineAccessCode>sample string 9</airlineAccessCode>
  <airlineID>sample string 1</airlineID>
  <bookingCode>sample string 7</bookingCode>
  <bookingDate>2021-11-26T23:34:54.0266928+07:00</bookingDate>
  <departDate>2021-11-26T23:34:54.0266928+07:00</departDate>
  <destination>sample string 3</destination>
  <origin>sample string 2</origin>
  <returnDate>2021-11-26T23:34:54.0266928+07:00</returnDate>
  <tripType>sample string 4</tripType>
</AirlineIssuedRequest>

Response Information

Resource Description

AirlineIssuedResponse
NameDescriptionTypeAdditional information
airlineID

ID or code for airlines

string

None.

origin

origin ID

string

None.

destination

destination ID

string

None.

tripType

type of flight trip, OneWay for without return flight, RoundTrip for using return flight

string

None.

departDate

date for flight

date

None.

returnDate

date for return flight

date

None.

bookingCode

booking code

string

None.

airlineAccessCode

string

None.

bookingStatus

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",
  "origin": "sample string 2",
  "destination": "sample string 3",
  "tripType": "sample string 4",
  "departDate": "2021-11-26T23:34:54.0266928+07:00",
  "returnDate": "2021-11-26T23:34:54.0266928+07:00",
  "bookingCode": "sample string 7",
  "airlineAccessCode": "sample string 8",
  "bookingStatus": "sample string 9",
  "respTime": "2021-11-26T23:34:54.0266928+07:00",
  "userID": "sample string 11",
  "accessToken": "sample string 12",
  "status": "sample string 13",
  "respMessage": "sample string 14"
}

application/xml, text/xml

Sample:
<AirlineIssuedResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 12</accessToken>
  <respMessage>sample string 14</respMessage>
  <respTime>2021-11-26T23:34:54.0266928+07:00</respTime>
  <status>sample string 13</status>
  <userID>sample string 11</userID>
  <airlineAccessCode>sample string 8</airlineAccessCode>
  <airlineID>sample string 1</airlineID>
  <bookingCode>sample string 7</bookingCode>
  <bookingStatus>sample string 9</bookingStatus>
  <departDate>2021-11-26T23:34:54.0266928+07:00</departDate>
  <destination>sample string 3</destination>
  <origin>sample string 2</origin>
  <returnDate>2021-11-26T23:34:54.0266928+07:00</returnDate>
  <tripType>sample string 4</tripType>
</AirlineIssuedResponse>