POST Airline/Price

airline price request

Request Information

URI Parameters

None.

Body Parameters

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

searchKey

searching key, filled in Sriwijaya

string

None.

promoCode

promo code, filled in Sriwijaya

string

None.

schDeparts

list selected of departure schedule

Collection of SelectedAirlineScheduleModel

None.

schReturns

list selected of return schedule

Collection of SelectedAirlineScheduleModel

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:56:50.4973802+07:00",
  "returnDate": "2025-01-22T23:56:50.4973802+07:00",
  "paxAdult": 7,
  "paxChild": 8,
  "paxInfant": 9,
  "searchKey": "sample string 10",
  "promoCode": "sample string 11",
  "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:56:50.4973802+07:00",
      "schArrivalTime": "2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00",
      "schArrivalTime": "2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00",
      "schArrivalTime": "2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00",
      "schArrivalTime": "2025-01-22T23:56:50.4973802+07:00",
      "flightClass": "sample string 8",
      "garudaNumber": "sample string 9",
      "garudaAvailability": "sample string 10"
    }
  ],
  "userID": "sample string 12",
  "accessToken": "sample string 13"
}

application/xml, text/xml

Sample:
<AirlinePriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 13</accessToken>
  <userID>sample string 12</userID>
  <airlineID>sample string 1</airlineID>
  <departDate>2025-01-22T23:56:50.4973802+07:00</departDate>
  <destination>sample string 3</destination>
  <origin>sample string 2</origin>
  <paxAdult>7</paxAdult>
  <paxChild>8</paxChild>
  <paxInfant>9</paxInfant>
  <promoCode>sample string 11</promoCode>
  <returnDate>2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:56:50.4973802+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:56:50.4973802+07:00</schArrivalTime>
      <schDepartTime>2025-01-22T23:56:50.4973802+07:00</schDepartTime>
      <schDestination>sample string 4</schDestination>
      <schOrigin>sample string 3</schOrigin>
    </SelectedAirlineScheduleModel>
  </schReturns>
  <searchKey>sample string 10</searchKey>
  <tripType>sample string 4</tripType>
</AirlinePriceRequest>

Response Information

Resource Description

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

searchKey

searching key, filled in Sriwijaya

string

None.

promoCode

promo code, filled in Sriwijaya

string

None.

priceDepart

Collection of AirlinePriceSegmentModel

None.

priceReturn

Collection of AirlinePriceSegmentModel

None.

sumFare

total value of list totalfare

decimal number

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:56:50.4973802+07:00",
  "returnDate": "2025-01-22T23:56:50.4973802+07:00",
  "paxAdult": 7,
  "paxChild": 8,
  "paxInfant": 9,
  "searchKey": "sample string 10",
  "promoCode": "sample string 11",
  "priceDepart": [
    {
      "flightNumber": "sample string 1",
      "classFare": "sample string 2",
      "psOrigin": "sample string 3",
      "psDestination": "sample string 4",
      "psDate": "2025-01-22T23:56:50.4973802+07:00",
      "currency": "sample string 6",
      "priceDetail": [
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "garudaNumber": "sample string 7",
      "garudaAvailability": "sample string 8",
      "airlineSegmentCode": "sample string 9",
      "classId": "sample string 10",
      "passportRequired": false
    },
    {
      "flightNumber": "sample string 1",
      "classFare": "sample string 2",
      "psOrigin": "sample string 3",
      "psDestination": "sample string 4",
      "psDate": "2025-01-22T23:56:50.4973802+07:00",
      "currency": "sample string 6",
      "priceDetail": [
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "garudaNumber": "sample string 7",
      "garudaAvailability": "sample string 8",
      "airlineSegmentCode": "sample string 9",
      "classId": "sample string 10",
      "passportRequired": false
    }
  ],
  "priceReturn": [
    {
      "flightNumber": "sample string 1",
      "classFare": "sample string 2",
      "psOrigin": "sample string 3",
      "psDestination": "sample string 4",
      "psDate": "2025-01-22T23:56:50.4973802+07:00",
      "currency": "sample string 6",
      "priceDetail": [
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "garudaNumber": "sample string 7",
      "garudaAvailability": "sample string 8",
      "airlineSegmentCode": "sample string 9",
      "classId": "sample string 10",
      "passportRequired": false
    },
    {
      "flightNumber": "sample string 1",
      "classFare": "sample string 2",
      "psOrigin": "sample string 3",
      "psDestination": "sample string 4",
      "psDate": "2025-01-22T23:56:50.4973802+07:00",
      "currency": "sample string 6",
      "priceDetail": [
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "paxType": "sample string 1",
          "baseFare": 2.0,
          "tax": 3.0,
          "totalFare": 4.0,
          "bagInfo": [
            "sample string 1",
            "sample string 2"
          ],
          "priceInfo": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "garudaNumber": "sample string 7",
      "garudaAvailability": "sample string 8",
      "airlineSegmentCode": "sample string 9",
      "classId": "sample string 10",
      "passportRequired": false
    }
  ],
  "sumFare": 12.0,
  "respTime": "2025-01-22T23:56:50.4973802+07:00",
  "userID": "sample string 14",
  "accessToken": "sample string 15",
  "status": "sample string 16",
  "respMessage": "sample string 17"
}

application/xml, text/xml

Sample:
<AirlinePriceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 15</accessToken>
  <respMessage>sample string 17</respMessage>
  <respTime>2025-01-22T23:56:50.4973802+07:00</respTime>
  <status>sample string 16</status>
  <userID>sample string 14</userID>
  <airlineID>sample string 1</airlineID>
  <departDate>2025-01-22T23:56:50.4973802+07:00</departDate>
  <destination>sample string 3</destination>
  <origin>sample string 2</origin>
  <paxAdult>7</paxAdult>
  <paxChild>8</paxChild>
  <paxInfant>9</paxInfant>
  <priceDepart>
    <AirlinePriceSegmentModel>
      <airlineSegmentCode>sample string 9</airlineSegmentCode>
      <classFare>sample string 2</classFare>
      <classId>sample string 10</classId>
      <currency>sample string 6</currency>
      <flightNumber>sample string 1</flightNumber>
      <garudaAvailability>sample string 8</garudaAvailability>
      <garudaNumber>sample string 7</garudaNumber>
      <priceDetail>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
      </priceDetail>
      <psDate>2025-01-22T23:56:50.4973802+07:00</psDate>
      <psDestination>sample string 4</psDestination>
      <psOrigin>sample string 3</psOrigin>
    </AirlinePriceSegmentModel>
    <AirlinePriceSegmentModel>
      <airlineSegmentCode>sample string 9</airlineSegmentCode>
      <classFare>sample string 2</classFare>
      <classId>sample string 10</classId>
      <currency>sample string 6</currency>
      <flightNumber>sample string 1</flightNumber>
      <garudaAvailability>sample string 8</garudaAvailability>
      <garudaNumber>sample string 7</garudaNumber>
      <priceDetail>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
      </priceDetail>
      <psDate>2025-01-22T23:56:50.4973802+07:00</psDate>
      <psDestination>sample string 4</psDestination>
      <psOrigin>sample string 3</psOrigin>
    </AirlinePriceSegmentModel>
  </priceDepart>
  <priceReturn>
    <AirlinePriceSegmentModel>
      <airlineSegmentCode>sample string 9</airlineSegmentCode>
      <classFare>sample string 2</classFare>
      <classId>sample string 10</classId>
      <currency>sample string 6</currency>
      <flightNumber>sample string 1</flightNumber>
      <garudaAvailability>sample string 8</garudaAvailability>
      <garudaNumber>sample string 7</garudaNumber>
      <priceDetail>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
      </priceDetail>
      <psDate>2025-01-22T23:56:50.4973802+07:00</psDate>
      <psDestination>sample string 4</psDestination>
      <psOrigin>sample string 3</psOrigin>
    </AirlinePriceSegmentModel>
    <AirlinePriceSegmentModel>
      <airlineSegmentCode>sample string 9</airlineSegmentCode>
      <classFare>sample string 2</classFare>
      <classId>sample string 10</classId>
      <currency>sample string 6</currency>
      <flightNumber>sample string 1</flightNumber>
      <garudaAvailability>sample string 8</garudaAvailability>
      <garudaNumber>sample string 7</garudaNumber>
      <priceDetail>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
        <AirlinePriceDetailModel>
          <bagInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </bagInfo>
          <baseFare>2</baseFare>
          <paxType>sample string 1</paxType>
          <priceInfo xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </priceInfo>
          <tax>3</tax>
          <totalFare>4</totalFare>
        </AirlinePriceDetailModel>
      </priceDetail>
      <psDate>2025-01-22T23:56:50.4973802+07:00</psDate>
      <psDestination>sample string 4</psDestination>
      <psOrigin>sample string 3</psOrigin>
    </AirlinePriceSegmentModel>
  </priceReturn>
  <promoCode>sample string 11</promoCode>
  <returnDate>2025-01-22T23:56:50.4973802+07:00</returnDate>
  <searchKey>sample string 10</searchKey>
  <sumFare>12</sumFare>
  <tripType>sample string 4</tripType>
</AirlinePriceResponse>