POST Airline/BaggageAndMeal

Request Information

URI Parameters

None.

Body Parameters

AirAsiaAddOnsRequest
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.

schDepart

sch depart code

string

None.

schReturn

sch return code

string

None.

paxAdult

amount of adult passanger

integer

None.

paxChild

amount of child passanger

integer

None.

paxInfant

amount of infant passanger

integer

None.

departureAirlineSegmentCode

string

None.

departureFareBasisCode

string

None.

returnAirlineSegmentCode

string

None.

returnFareBasisCode

string

None.

contactFirstName

string

None.

contactLastName

string

None.

contactTitle

string

None.

contactCountryCodePhone

string

None.

contactAreaCodePhone

string

None.

contactRemainingPhoneNo

string

None.

contactEmail

string

None.

paxDetails

Collection of BasePaxModel

None.

insurance

boolean

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": "2025-01-22T23:51:53.0613798+07:00",
  "returnDate": "2025-01-22T23:51:53.0613798+07:00",
  "schDepart": "sample string 7",
  "schReturn": "sample string 8",
  "paxAdult": 9,
  "paxChild": 10,
  "paxInfant": 11,
  "departureAirlineSegmentCode": "sample string 12",
  "departureFareBasisCode": "sample string 13",
  "returnAirlineSegmentCode": "sample string 14",
  "returnFareBasisCode": "sample string 15",
  "contactFirstName": "sample string 16",
  "contactLastName": "sample string 17",
  "contactTitle": "sample string 18",
  "contactCountryCodePhone": "sample string 19",
  "contactAreaCodePhone": "sample string 20",
  "contactRemainingPhoneNo": "sample string 21",
  "contactEmail": "sample string 22",
  "paxDetails": [
    {
      "IDNumber": "sample string 1",
      "title": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "birthDate": "2025-01-22T23:51:53.0613798+07:00",
      "gender": "sample string 6",
      "nationality": "sample string 7",
      "birthCountry": "sample string 8",
      "DocType": "sample string 9",
      "parent": "sample string 10",
      "passportNumber": "sample string 11",
      "passportIssuedCountry": "sample string 12",
      "passportIssuedDate": "2025-01-22T23:51:53.0613798+07:00",
      "passportExpiredDate": "2025-01-22T23:51:53.0613798+07:00",
      "Email": "sample string 15",
      "type": 0,
      "batikMilesNo": "sample string 16",
      "garudaFrequentFlyer": "sample string 17",
      "SSR": "sample string 18"
    },
    {
      "IDNumber": "sample string 1",
      "title": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "birthDate": "2025-01-22T23:51:53.0613798+07:00",
      "gender": "sample string 6",
      "nationality": "sample string 7",
      "birthCountry": "sample string 8",
      "DocType": "sample string 9",
      "parent": "sample string 10",
      "passportNumber": "sample string 11",
      "passportIssuedCountry": "sample string 12",
      "passportIssuedDate": "2025-01-22T23:51:53.0613798+07:00",
      "passportExpiredDate": "2025-01-22T23:51:53.0613798+07:00",
      "Email": "sample string 15",
      "type": 0,
      "batikMilesNo": "sample string 16",
      "garudaFrequentFlyer": "sample string 17",
      "SSR": "sample string 18"
    }
  ],
  "insurance": true,
  "userID": "sample string 24",
  "accessToken": "sample string 25"
}

application/xml, text/xml

Sample:
<AirAsiaAddOnsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 25</accessToken>
  <userID>sample string 24</userID>
  <airlineID>sample string 1</airlineID>
  <contactAreaCodePhone>sample string 20</contactAreaCodePhone>
  <contactCountryCodePhone>sample string 19</contactCountryCodePhone>
  <contactEmail>sample string 22</contactEmail>
  <contactFirstName>sample string 16</contactFirstName>
  <contactLastName>sample string 17</contactLastName>
  <contactRemainingPhoneNo>sample string 21</contactRemainingPhoneNo>
  <contactTitle>sample string 18</contactTitle>
  <departDate>2025-01-22T23:51:53.0613798+07:00</departDate>
  <departureAirlineSegmentCode>sample string 12</departureAirlineSegmentCode>
  <departureFareBasisCode>sample string 13</departureFareBasisCode>
  <destination>sample string 3</destination>
  <insurance>true</insurance>
  <origin>sample string 2</origin>
  <paxAdult>9</paxAdult>
  <paxChild>10</paxChild>
  <paxDetails>
    <BasePaxModel>
      <DocType>sample string 9</DocType>
      <Email>sample string 15</Email>
      <IDNumber>sample string 1</IDNumber>
      <SSR>sample string 18</SSR>
      <batikMilesNo>sample string 16</batikMilesNo>
      <birthCountry>sample string 8</birthCountry>
      <birthDate>2025-01-22T23:51:53.0613798+07:00</birthDate>
      <firstName>sample string 3</firstName>
      <garudaFrequentFlyer>sample string 17</garudaFrequentFlyer>
      <gender>sample string 6</gender>
      <lastName>sample string 4</lastName>
      <nationality>sample string 7</nationality>
      <parent>sample string 10</parent>
      <passportExpiredDate>2025-01-22T23:51:53.0613798+07:00</passportExpiredDate>
      <passportIssuedCountry>sample string 12</passportIssuedCountry>
      <passportIssuedDate>2025-01-22T23:51:53.0613798+07:00</passportIssuedDate>
      <passportNumber>sample string 11</passportNumber>
      <title>sample string 2</title>
      <type>Adult</type>
    </BasePaxModel>
    <BasePaxModel>
      <DocType>sample string 9</DocType>
      <Email>sample string 15</Email>
      <IDNumber>sample string 1</IDNumber>
      <SSR>sample string 18</SSR>
      <batikMilesNo>sample string 16</batikMilesNo>
      <birthCountry>sample string 8</birthCountry>
      <birthDate>2025-01-22T23:51:53.0613798+07:00</birthDate>
      <firstName>sample string 3</firstName>
      <garudaFrequentFlyer>sample string 17</garudaFrequentFlyer>
      <gender>sample string 6</gender>
      <lastName>sample string 4</lastName>
      <nationality>sample string 7</nationality>
      <parent>sample string 10</parent>
      <passportExpiredDate>2025-01-22T23:51:53.0613798+07:00</passportExpiredDate>
      <passportIssuedCountry>sample string 12</passportIssuedCountry>
      <passportIssuedDate>2025-01-22T23:51:53.0613798+07:00</passportIssuedDate>
      <passportNumber>sample string 11</passportNumber>
      <title>sample string 2</title>
      <type>Adult</type>
    </BasePaxModel>
  </paxDetails>
  <paxInfant>11</paxInfant>
  <returnAirlineSegmentCode>sample string 14</returnAirlineSegmentCode>
  <returnDate>2025-01-22T23:51:53.0613798+07:00</returnDate>
  <returnFareBasisCode>sample string 15</returnFareBasisCode>
  <schDepart>sample string 7</schDepart>
  <schReturn>sample string 8</schReturn>
  <tripType>sample string 4</tripType>
</AirAsiaAddOnsRequest>

Response Information

Resource Description

AirlineBaggageResponse
NameDescriptionTypeAdditional information
addOns

Collection of AddOnBagage

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:
{
  "addOns": [
    {
      "origin": "sample string 1",
      "destination": "sample string 2",
      "baggageInfos": [
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        },
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        }
      ],
      "mealInfos": [
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        },
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        }
      ],
      "medicalInfos": [
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        },
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        }
      ],
      "isEnableNoBaggage": true,
      "isBaggageBundling": true,
      "equipment": "sample string 3"
    },
    {
      "origin": "sample string 1",
      "destination": "sample string 2",
      "baggageInfos": [
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        },
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        }
      ],
      "mealInfos": [
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        },
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        }
      ],
      "medicalInfos": [
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        },
        {
          "code": "sample string 1",
          "fare": 2.0,
          "desc": "sample string 3",
          "currency": "sample string 4"
        }
      ],
      "isEnableNoBaggage": true,
      "isBaggageBundling": true,
      "equipment": "sample string 3"
    }
  ],
  "respTime": "2025-01-22T23:51:53.0613798+07:00",
  "userID": "sample string 2",
  "accessToken": "sample string 3",
  "status": "sample string 4",
  "respMessage": "sample string 5"
}

application/xml, text/xml

Sample:
<AirlineBaggageResponse 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:51:53.0613798+07:00</respTime>
  <status>sample string 4</status>
  <userID>sample string 2</userID>
  <addOns>
    <AddOnBagage>
      <baggageInfos>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
      </baggageInfos>
      <destination>sample string 2</destination>
      <equipment>sample string 3</equipment>
      <isBaggageBundling>true</isBaggageBundling>
      <isEnableNoBaggage>true</isEnableNoBaggage>
      <mealInfos>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
      </mealInfos>
      <medicalInfos>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
      </medicalInfos>
      <origin>sample string 1</origin>
    </AddOnBagage>
    <AddOnBagage>
      <baggageInfos>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
      </baggageInfos>
      <destination>sample string 2</destination>
      <equipment>sample string 3</equipment>
      <isBaggageBundling>true</isBaggageBundling>
      <isEnableNoBaggage>true</isEnableNoBaggage>
      <mealInfos>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
      </mealInfos>
      <medicalInfos>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
        <BaggageInfo>
          <code>sample string 1</code>
          <currency>sample string 4</currency>
          <desc>sample string 3</desc>
          <fare>2</fare>
        </BaggageInfo>
      </medicalInfos>
      <origin>sample string 1</origin>
    </AddOnBagage>
  </addOns>
</AirlineBaggageResponse>