POST Airline/Booking

gain access to booking airline API

Request Information

URI Parameters

None.

Body Parameters

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

paxAdult

amount of adult passanger

integer

None.

paxChild

amount of child passanger

integer

None.

paxInfant

amount of infant passanger

integer

None.

schDeparts

list of departing airline schedule

Collection of SelectedAirlineScheduleModel

None.

schReturns

list of returning airline schedule

Collection of SelectedAirlineScheduleModel

None.

contactFirstName

string

None.

contactLastName

string

None.

contactTitle

string

None.

contactCountryCodePhone

string

None.

contactAreaCodePhone

string

None.

contactRemainingPhoneNo

string

None.

contactEmail

string

None.

paxDetails

list of passenger's data

Collection of PaxModel

None.

searchKey

searching key, filled in Sriwijaya

string

None.

insurance

is ExtraCoverAddOns, filled in Sriwijaya

boolean

None.

promoCode

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": "2025-01-22T23:52:57.3309494+07:00",
  "returnDate": "2025-01-22T23:52:57.3309494+07:00",
  "paxAdult": 7,
  "paxChild": 8,
  "paxInfant": 9,
  "schDeparts": [
    {
      "airlineCode": "sample string 1",
      "flightNumber": "sample string 2",
      "schOrigin": "sample string 3",
      "schDestination": "sample string 4",
      "detailSchedule": "sample string 5",
      "schDepartTime": "2025-01-22T23:52:57.3309494+07:00",
      "schArrivalTime": "2025-01-22T23:52:57.3309494+07:00",
      "flightClass": "sample string 8",
      "garudaNumber": "sample string 9",
      "garudaAvailability": "sample string 10"
    },
    {
      "airlineCode": "sample string 1",
      "flightNumber": "sample string 2",
      "schOrigin": "sample string 3",
      "schDestination": "sample string 4",
      "detailSchedule": "sample string 5",
      "schDepartTime": "2025-01-22T23:52:57.3309494+07:00",
      "schArrivalTime": "2025-01-22T23:52:57.3309494+07:00",
      "flightClass": "sample string 8",
      "garudaNumber": "sample string 9",
      "garudaAvailability": "sample string 10"
    }
  ],
  "schReturns": [
    {
      "airlineCode": "sample string 1",
      "flightNumber": "sample string 2",
      "schOrigin": "sample string 3",
      "schDestination": "sample string 4",
      "detailSchedule": "sample string 5",
      "schDepartTime": "2025-01-22T23:52:57.3309494+07:00",
      "schArrivalTime": "2025-01-22T23:52:57.3309494+07:00",
      "flightClass": "sample string 8",
      "garudaNumber": "sample string 9",
      "garudaAvailability": "sample string 10"
    },
    {
      "airlineCode": "sample string 1",
      "flightNumber": "sample string 2",
      "schOrigin": "sample string 3",
      "schDestination": "sample string 4",
      "detailSchedule": "sample string 5",
      "schDepartTime": "2025-01-22T23:52:57.3309494+07:00",
      "schArrivalTime": "2025-01-22T23:52:57.3309494+07:00",
      "flightClass": "sample string 8",
      "garudaNumber": "sample string 9",
      "garudaAvailability": "sample string 10"
    }
  ],
  "contactFirstName": "sample string 10",
  "contactLastName": "sample string 11",
  "contactTitle": "sample string 12",
  "contactCountryCodePhone": "sample string 13",
  "contactAreaCodePhone": "sample string 14",
  "contactRemainingPhoneNo": "sample string 15",
  "contactEmail": "sample string 16",
  "paxDetails": [
    {
      "addOns": [
        {
          "aoOrigin": "sample string 1",
          "aoDestination": "sample string 2",
          "baggageString": "sample string 3",
          "meals": [
            "sample string 1",
            "sample string 2"
          ],
          "seat": "sample string 4",
          "compartment": "sample string 5",
          "medicalString": "sample string 6"
        },
        {
          "aoOrigin": "sample string 1",
          "aoDestination": "sample string 2",
          "baggageString": "sample string 3",
          "meals": [
            "sample string 1",
            "sample string 2"
          ],
          "seat": "sample string 4",
          "compartment": "sample string 5",
          "medicalString": "sample string 6"
        }
      ],
      "IDNumber": "sample string 1",
      "title": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "birthDate": "2025-01-22T23:52:57.3309494+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:52:57.3309494+07:00",
      "passportExpiredDate": "2025-01-22T23:52:57.3309494+07:00",
      "Email": "sample string 15",
      "type": 0,
      "batikMilesNo": "sample string 16",
      "garudaFrequentFlyer": "sample string 17",
      "SSR": "sample string 18"
    },
    {
      "addOns": [
        {
          "aoOrigin": "sample string 1",
          "aoDestination": "sample string 2",
          "baggageString": "sample string 3",
          "meals": [
            "sample string 1",
            "sample string 2"
          ],
          "seat": "sample string 4",
          "compartment": "sample string 5",
          "medicalString": "sample string 6"
        },
        {
          "aoOrigin": "sample string 1",
          "aoDestination": "sample string 2",
          "baggageString": "sample string 3",
          "meals": [
            "sample string 1",
            "sample string 2"
          ],
          "seat": "sample string 4",
          "compartment": "sample string 5",
          "medicalString": "sample string 6"
        }
      ],
      "IDNumber": "sample string 1",
      "title": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "birthDate": "2025-01-22T23:52:57.3309494+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:52:57.3309494+07:00",
      "passportExpiredDate": "2025-01-22T23:52:57.3309494+07:00",
      "Email": "sample string 15",
      "type": 0,
      "batikMilesNo": "sample string 16",
      "garudaFrequentFlyer": "sample string 17",
      "SSR": "sample string 18"
    }
  ],
  "searchKey": "sample string 17",
  "insurance": true,
  "promoCode": "sample string 19",
  "userID": "sample string 20",
  "accessToken": "sample string 21"
}

application/xml, text/xml

Sample:
<AirlineBookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 21</accessToken>
  <userID>sample string 20</userID>
  <airlineID>sample string 1</airlineID>
  <contactAreaCodePhone>sample string 14</contactAreaCodePhone>
  <contactCountryCodePhone>sample string 13</contactCountryCodePhone>
  <contactEmail>sample string 16</contactEmail>
  <contactFirstName>sample string 10</contactFirstName>
  <contactLastName>sample string 11</contactLastName>
  <contactRemainingPhoneNo>sample string 15</contactRemainingPhoneNo>
  <contactTitle>sample string 12</contactTitle>
  <departDate>2025-01-22T23:52:57.3309494+07:00</departDate>
  <destination>sample string 3</destination>
  <insurance>true</insurance>
  <origin>sample string 2</origin>
  <paxAdult>7</paxAdult>
  <paxChild>8</paxChild>
  <paxDetails>
    <PaxModel>
      <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:52:57.3309494+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:52:57.3309494+07:00</passportExpiredDate>
      <passportIssuedCountry>sample string 12</passportIssuedCountry>
      <passportIssuedDate>2025-01-22T23:52:57.3309494+07:00</passportIssuedDate>
      <passportNumber>sample string 11</passportNumber>
      <title>sample string 2</title>
      <type>Adult</type>
      <addOns>
        <PaxAddOnModel>
          <aoDestination>sample string 2</aoDestination>
          <aoOrigin>sample string 1</aoOrigin>
          <baggageString>sample string 3</baggageString>
          <compartment>sample string 5</compartment>
          <meals xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </meals>
          <medicalString>sample string 6</medicalString>
          <seat>sample string 4</seat>
        </PaxAddOnModel>
        <PaxAddOnModel>
          <aoDestination>sample string 2</aoDestination>
          <aoOrigin>sample string 1</aoOrigin>
          <baggageString>sample string 3</baggageString>
          <compartment>sample string 5</compartment>
          <meals xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </meals>
          <medicalString>sample string 6</medicalString>
          <seat>sample string 4</seat>
        </PaxAddOnModel>
      </addOns>
    </PaxModel>
    <PaxModel>
      <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:52:57.3309494+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:52:57.3309494+07:00</passportExpiredDate>
      <passportIssuedCountry>sample string 12</passportIssuedCountry>
      <passportIssuedDate>2025-01-22T23:52:57.3309494+07:00</passportIssuedDate>
      <passportNumber>sample string 11</passportNumber>
      <title>sample string 2</title>
      <type>Adult</type>
      <addOns>
        <PaxAddOnModel>
          <aoDestination>sample string 2</aoDestination>
          <aoOrigin>sample string 1</aoOrigin>
          <baggageString>sample string 3</baggageString>
          <compartment>sample string 5</compartment>
          <meals xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </meals>
          <medicalString>sample string 6</medicalString>
          <seat>sample string 4</seat>
        </PaxAddOnModel>
        <PaxAddOnModel>
          <aoDestination>sample string 2</aoDestination>
          <aoOrigin>sample string 1</aoOrigin>
          <baggageString>sample string 3</baggageString>
          <compartment>sample string 5</compartment>
          <meals xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </meals>
          <medicalString>sample string 6</medicalString>
          <seat>sample string 4</seat>
        </PaxAddOnModel>
      </addOns>
    </PaxModel>
  </paxDetails>
  <paxInfant>9</paxInfant>
  <promoCode>sample string 19</promoCode>
  <returnDate>2025-01-22T23:52:57.3309494+07:00</returnDate>
  <schDeparts>
    <SelectedAirlineScheduleModel>
      <airlineCode>sample string 1</airlineCode>
      <detailSchedule>sample string 5</detailSchedule>
      <flightClass>sample string 8</flightClass>
      <flightNumber>sample string 2</flightNumber>
      <garudaAvailability>sample string 10</garudaAvailability>
      <garudaNumber>sample string 9</garudaNumber>
      <schArrivalTime>2025-01-22T23:52:57.3309494+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:52:57.3309494+07:00</schDepartTime>
      <schDestination>sample string 4</schDestination>
      <schOrigin>sample string 3</schOrigin>
    </SelectedAirlineScheduleModel>
    <SelectedAirlineScheduleModel>
      <airlineCode>sample string 1</airlineCode>
      <detailSchedule>sample string 5</detailSchedule>
      <flightClass>sample string 8</flightClass>
      <flightNumber>sample string 2</flightNumber>
      <garudaAvailability>sample string 10</garudaAvailability>
      <garudaNumber>sample string 9</garudaNumber>
      <schArrivalTime>2025-01-22T23:52:57.3309494+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:52:57.3309494+07:00</schDepartTime>
      <schDestination>sample string 4</schDestination>
      <schOrigin>sample string 3</schOrigin>
    </SelectedAirlineScheduleModel>
  </schDeparts>
  <schReturns>
    <SelectedAirlineScheduleModel>
      <airlineCode>sample string 1</airlineCode>
      <detailSchedule>sample string 5</detailSchedule>
      <flightClass>sample string 8</flightClass>
      <flightNumber>sample string 2</flightNumber>
      <garudaAvailability>sample string 10</garudaAvailability>
      <garudaNumber>sample string 9</garudaNumber>
      <schArrivalTime>2025-01-22T23:52:57.3309494+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:52:57.3309494+07:00</schDepartTime>
      <schDestination>sample string 4</schDestination>
      <schOrigin>sample string 3</schOrigin>
    </SelectedAirlineScheduleModel>
    <SelectedAirlineScheduleModel>
      <airlineCode>sample string 1</airlineCode>
      <detailSchedule>sample string 5</detailSchedule>
      <flightClass>sample string 8</flightClass>
      <flightNumber>sample string 2</flightNumber>
      <garudaAvailability>sample string 10</garudaAvailability>
      <garudaNumber>sample string 9</garudaNumber>
      <schArrivalTime>2025-01-22T23:52:57.3309494+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:52:57.3309494+07:00</schDepartTime>
      <schDestination>sample string 4</schDestination>
      <schOrigin>sample string 3</schOrigin>
    </SelectedAirlineScheduleModel>
  </schReturns>
  <searchKey>sample string 17</searchKey>
  <tripType>sample string 4</tripType>
</AirlineBookingRequest>

Response Information

Resource Description

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

paxAdult

amount of adult passanger

integer

None.

paxChild

amount of child passanger

integer

None.

paxInfant

amount of infant passanger

integer

None.

bookingDate

date for booking

date

None.

bookingCode

unique code in darmawisata system

string

None.

timeLimit

issued time limit get from airline system

date

None.

bookingCodeAirline

unique code get from airline system

string

None.

airlineAdminFee

administration fee

decimal number

None.

memberAdminFee

administration fee

decimal number

None.

memberDiscount

discount value

decimal number

None.

salesPrice

agent ticketprice

decimal number

None.

ticketPrice

decimal number

None.

currency

default IDR or currency from airline system

string

None.

detail

detail html that is summary froma airline system

string

None.

segment

count of segment

integer

None.

flightDeparts

Collection of FligthDetailModel

None.

flightReturns

Collection of FligthDetailModel

None.

airlineRemark

string

None.

referenceNo

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": "2025-01-22T23:52:57.3465766+07:00",
  "returnDate": "2025-01-22T23:52:57.3465766+07:00",
  "paxAdult": 7,
  "paxChild": 8,
  "paxInfant": 9,
  "bookingDate": "2025-01-22T23:52:57.3465766+07:00",
  "bookingCode": "sample string 11",
  "timeLimit": "2025-01-22T23:52:57.3465766+07:00",
  "bookingCodeAirline": "sample string 12",
  "airlineAdminFee": 13.0,
  "memberAdminFee": 14.0,
  "memberDiscount": 15.0,
  "salesPrice": 16.0,
  "ticketPrice": 17.0,
  "currency": "sample string 18",
  "detail": "sample string 19",
  "segment": 20,
  "flightDeparts": [
    {
      "flightNumber": "sample string 1",
      "fdDepartTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdArrivalTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdOrigin": "sample string 4",
      "fdDestination": "sample string 5",
      "fdFlightClass": "sample string 6"
    },
    {
      "flightNumber": "sample string 1",
      "fdDepartTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdArrivalTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdOrigin": "sample string 4",
      "fdDestination": "sample string 5",
      "fdFlightClass": "sample string 6"
    }
  ],
  "flightReturns": [
    {
      "flightNumber": "sample string 1",
      "fdDepartTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdArrivalTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdOrigin": "sample string 4",
      "fdDestination": "sample string 5",
      "fdFlightClass": "sample string 6"
    },
    {
      "flightNumber": "sample string 1",
      "fdDepartTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdArrivalTime": "2025-01-22T23:52:57.3465766+07:00",
      "fdOrigin": "sample string 4",
      "fdDestination": "sample string 5",
      "fdFlightClass": "sample string 6"
    }
  ],
  "airlineRemark": "sample string 21",
  "referenceNo": "sample string 22",
  "respTime": "2025-01-22T23:52:57.3465766+07:00",
  "userID": "sample string 24",
  "accessToken": "sample string 25",
  "status": "sample string 26",
  "respMessage": "sample string 27"
}

application/xml, text/xml

Sample:
<AirlineBookingResponse 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>
  <respMessage>sample string 27</respMessage>
  <respTime>2025-01-22T23:52:57.3465766+07:00</respTime>
  <status>sample string 26</status>
  <userID>sample string 24</userID>
  <airlineAdminFee>13</airlineAdminFee>
  <airlineID>sample string 1</airlineID>
  <airlineRemark>sample string 21</airlineRemark>
  <bookingCode>sample string 11</bookingCode>
  <bookingCodeAirline>sample string 12</bookingCodeAirline>
  <bookingDate>2025-01-22T23:52:57.3465766+07:00</bookingDate>
  <currency>sample string 18</currency>
  <departDate>2025-01-22T23:52:57.3465766+07:00</departDate>
  <destination>sample string 3</destination>
  <detail>sample string 19</detail>
  <flightDeparts>
    <FligthDetailModel>
      <fdArrivalTime>2025-01-22T23:52:57.3465766+07:00</fdArrivalTime>
      <fdDepartTime>2025-01-22T23:52:57.3465766+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:52:57.3465766+07:00</fdArrivalTime>
      <fdDepartTime>2025-01-22T23:52:57.3465766+07:00</fdDepartTime>
      <fdDestination>sample string 5</fdDestination>
      <fdFlightClass>sample string 6</fdFlightClass>
      <fdOrigin>sample string 4</fdOrigin>
      <flightNumber>sample string 1</flightNumber>
    </FligthDetailModel>
  </flightDeparts>
  <flightReturns>
    <FligthDetailModel>
      <fdArrivalTime>2025-01-22T23:52:57.3465766+07:00</fdArrivalTime>
      <fdDepartTime>2025-01-22T23:52:57.3465766+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:52:57.3465766+07:00</fdArrivalTime>
      <fdDepartTime>2025-01-22T23:52:57.3465766+07:00</fdDepartTime>
      <fdDestination>sample string 5</fdDestination>
      <fdFlightClass>sample string 6</fdFlightClass>
      <fdOrigin>sample string 4</fdOrigin>
      <flightNumber>sample string 1</flightNumber>
    </FligthDetailModel>
  </flightReturns>
  <memberAdminFee>14</memberAdminFee>
  <memberDiscount>15</memberDiscount>
  <origin>sample string 2</origin>
  <paxAdult>7</paxAdult>
  <paxChild>8</paxChild>
  <paxInfant>9</paxInfant>
  <referenceNo>sample string 22</referenceNo>
  <returnDate>2025-01-22T23:52:57.3465766+07:00</returnDate>
  <salesPrice>16</salesPrice>
  <segment>20</segment>
  <ticketPrice>17</ticketPrice>
  <timeLimit>2025-01-22T23:52:57.3465766+07:00</timeLimit>
  <tripType>sample string 4</tripType>
</AirlineBookingResponse>