POST Bus/BookingDetail

request API for bus booking detail for each booking list

Request Information

URI Parameters

None.

Body Parameters

BusBookingDetailRequest
NameDescriptionTypeAdditional information
bookingCode

booking code / trans ID

string

None.

bookingDate

booking date

date

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "bookingCode": "sample string 1",
  "bookingDate": "2025-01-23T00:07:43.9367938+07:00",
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<BusBookingDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 4</accessToken>
  <userID>sample string 3</userID>
  <bookingCode>sample string 1</bookingCode>
  <bookingDate>2025-01-23T00:07:43.9367938+07:00</bookingDate>
</BusBookingDetailRequest>

Response Information

Resource Description

BusBookingDetailResponse
NameDescriptionTypeAdditional information
bookingCode

booking code

string

None.

bookingDate

booking date

date

None.

bus

po bus name

string

None.

operatorName

string

None.

originTerminal

string

None.

destinationTerminal

string

None.

referenceNumber

ticket number

string

None.

departTime

date

None.

departPlace

depart from

string

None.

totalTicket

integer

None.

ticketStatus

ticket status

string

None.

issuedDate

issued date

date

None.

issuedTimeLimit

issued time limit

date

None.

seatNumber

seat number choosed

string

None.

salesPrice

total amount has beed paid

decimal number

None.

directCode

direct code

string

None.

locationID

location ID

string

None.

ticketPrice

decimal number

None.

passengers

list of passengers

Collection of BusPassengerModel

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:
{
  "bookingCode": "sample string 1",
  "bookingDate": "2025-01-23T00:07:43.9367938+07:00",
  "bus": "sample string 3",
  "operatorName": "sample string 4",
  "originTerminal": "sample string 5",
  "destinationTerminal": "sample string 6",
  "referenceNumber": "sample string 7",
  "departTime": "2025-01-23T00:07:43.9367938+07:00",
  "departPlace": "sample string 9",
  "totalTicket": 10,
  "ticketStatus": "sample string 11",
  "issuedDate": "2025-01-23T00:07:43.9367938+07:00",
  "issuedTimeLimit": "2025-01-23T00:07:43.9367938+07:00",
  "seatNumber": "sample string 13",
  "salesPrice": 14.0,
  "directCode": "sample string 15",
  "locationID": "sample string 16",
  "ticketPrice": 17.0,
  "passengers": [
    {
      "title": "sample string 1",
      "firstName": "sample string 2",
      "lastName": "sample string 3",
      "identity": "sample string 4",
      "phone": "sample string 5",
      "identityType": "sample string 6",
      "address": "sample string 7",
      "email": "sample string 8",
      "birthDate": "2025-01-23T00:07:43.9367938+07:00",
      "parent": 1,
      "paxType": "sample string 10",
      "paxTicketNo": "sample string 11"
    },
    {
      "title": "sample string 1",
      "firstName": "sample string 2",
      "lastName": "sample string 3",
      "identity": "sample string 4",
      "phone": "sample string 5",
      "identityType": "sample string 6",
      "address": "sample string 7",
      "email": "sample string 8",
      "birthDate": "2025-01-23T00:07:43.9367938+07:00",
      "parent": 1,
      "paxType": "sample string 10",
      "paxTicketNo": "sample string 11"
    }
  ],
  "respTime": "2025-01-23T00:07:43.9367938+07:00",
  "userID": "sample string 19",
  "accessToken": "sample string 20",
  "status": "sample string 21",
  "respMessage": "sample string 22"
}

application/xml, text/xml

Sample:
<BusBookingDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 20</accessToken>
  <respMessage>sample string 22</respMessage>
  <respTime>2025-01-23T00:07:43.9367938+07:00</respTime>
  <status>sample string 21</status>
  <userID>sample string 19</userID>
  <bookingCode>sample string 1</bookingCode>
  <bookingDate>2025-01-23T00:07:43.9367938+07:00</bookingDate>
  <bus>sample string 3</bus>
  <departPlace>sample string 9</departPlace>
  <departTime>2025-01-23T00:07:43.9367938+07:00</departTime>
  <destinationTerminal>sample string 6</destinationTerminal>
  <directCode>sample string 15</directCode>
  <issuedDate>2025-01-23T00:07:43.9367938+07:00</issuedDate>
  <issuedTimeLimit>2025-01-23T00:07:43.9367938+07:00</issuedTimeLimit>
  <locationID>sample string 16</locationID>
  <operatorName>sample string 4</operatorName>
  <originTerminal>sample string 5</originTerminal>
  <passengers>
    <BusPassengerModel>
      <address>sample string 7</address>
      <birthDate>2025-01-23T00:07:43.9367938+07:00</birthDate>
      <email>sample string 8</email>
      <firstName>sample string 2</firstName>
      <identity>sample string 4</identity>
      <identityType>sample string 6</identityType>
      <lastName>sample string 3</lastName>
      <parent>1</parent>
      <paxTicketNo>sample string 11</paxTicketNo>
      <paxType>sample string 10</paxType>
      <phone>sample string 5</phone>
      <title>sample string 1</title>
    </BusPassengerModel>
    <BusPassengerModel>
      <address>sample string 7</address>
      <birthDate>2025-01-23T00:07:43.9367938+07:00</birthDate>
      <email>sample string 8</email>
      <firstName>sample string 2</firstName>
      <identity>sample string 4</identity>
      <identityType>sample string 6</identityType>
      <lastName>sample string 3</lastName>
      <parent>1</parent>
      <paxTicketNo>sample string 11</paxTicketNo>
      <paxType>sample string 10</paxType>
      <phone>sample string 5</phone>
      <title>sample string 1</title>
    </BusPassengerModel>
  </passengers>
  <referenceNumber>sample string 7</referenceNumber>
  <salesPrice>14</salesPrice>
  <seatNumber>sample string 13</seatNumber>
  <ticketPrice>17</ticketPrice>
  <ticketStatus>sample string 11</ticketStatus>
  <totalTicket>10</totalTicket>
</BusBookingDetailResponse>