POST Bus/SeatMap

Request Information

URI Parameters

None.

Body Parameters

BusSeatMapRequest
NameDescriptionTypeAdditional information
bus

string

None.

originTerminal

string

None.

destinationTerminal

string

None.

directCode

string

None.

departDate

date

None.

paxAdult

integer

None.

paxChild

integer

None.

paxInfant

integer

None.

subClassFare

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "bus": "sample string 1",
  "originTerminal": "sample string 2",
  "destinationTerminal": "sample string 3",
  "directCode": "sample string 4",
  "departDate": "2021-11-27T11:45:04.9080884+07:00",
  "paxAdult": 6,
  "paxChild": 7,
  "paxInfant": 8,
  "subClassFare": "sample string 9",
  "userID": "sample string 10",
  "accessToken": "sample string 11"
}

application/xml, text/xml

Sample:
<BusSeatMapRequest 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>
  <bus>sample string 1</bus>
  <departDate>2021-11-27T11:45:04.9080884+07:00</departDate>
  <destinationTerminal>sample string 3</destinationTerminal>
  <directCode>sample string 4</directCode>
  <originTerminal>sample string 2</originTerminal>
  <paxAdult>6</paxAdult>
  <paxChild>7</paxChild>
  <paxInfant>8</paxInfant>
  <subClassFare>sample string 9</subClassFare>
</BusSeatMapRequest>

Response Information

Resource Description

BusSeatMapResponse
NameDescriptionTypeAdditional information
rowCount

integer

None.

columnCount

integer

None.

seats

Collection of BusSeatModel

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.

isNoPriceDifferent

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "isNoPriceDifferent": true,
  "rowCount": 1,
  "columnCount": 2,
  "seats": [
    {
      "row": 1,
      "column": 2,
      "isAvailaible": true,
      "seatNumber": "sample string 4",
      "isNoPriceDifferent": true,
      "seatAdultFare": 6.0,
      "seatChildFare": 7.0
    },
    {
      "row": 1,
      "column": 2,
      "isAvailaible": true,
      "seatNumber": "sample string 4",
      "isNoPriceDifferent": true,
      "seatAdultFare": 6.0,
      "seatChildFare": 7.0
    }
  ],
  "respTime": "2021-11-27T11:45:04.9080884+07:00",
  "userID": "sample string 4",
  "accessToken": "sample string 5",
  "status": "sample string 6",
  "respMessage": "sample string 7"
}

application/xml, text/xml

Sample:
<BusSeatMapResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 5</accessToken>
  <respMessage>sample string 7</respMessage>
  <respTime>2021-11-27T11:45:04.9080884+07:00</respTime>
  <status>sample string 6</status>
  <userID>sample string 4</userID>
  <columnCount>2</columnCount>
  <isNoPriceDifferent>true</isNoPriceDifferent>
  <rowCount>1</rowCount>
  <seats>
    <BusSeatModel>
      <column>2</column>
      <isAvailaible>true</isAvailaible>
      <isNoPriceDifferent>true</isNoPriceDifferent>
      <row>1</row>
      <seatAdultFare>6</seatAdultFare>
      <seatChildFare>7</seatChildFare>
      <seatNumber>sample string 4</seatNumber>
    </BusSeatModel>
    <BusSeatModel>
      <column>2</column>
      <isAvailaible>true</isAvailaible>
      <isNoPriceDifferent>true</isNoPriceDifferent>
      <row>1</row>
      <seatAdultFare>6</seatAdultFare>
      <seatChildFare>7</seatChildFare>
      <seatNumber>sample string 4</seatNumber>
    </BusSeatModel>
  </seats>
</BusSeatMapResponse>