POST Bus/Issued

request API for bus issued

Request Information

URI Parameters

None.

Body Parameters

BusIssuedRequest
NameDescriptionTypeAdditional information
bookingCode

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-22T23:50:32.9924908+07:00",
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<BusIssuedRequest 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-22T23:50:32.9924908+07:00</bookingDate>
</BusIssuedRequest>

Response Information

Resource Description

BusIssuedResponse
NameDescriptionTypeAdditional information
bus

po bus name

string

None.

originTerminal

string

None.

destinationTerminal

string

None.

departTime

depart time detail

date

None.

departPlace

depart from

string

None.

bookingCode

string

None.

bookingDate

booking date

date

None.

reffNumber

ticket number, important to be showed to bus officer in terminal

string

None.

bookingStatus

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:
{
  "bus": "sample string 1",
  "originTerminal": "sample string 2",
  "destinationTerminal": "sample string 3",
  "departTime": "2025-01-22T23:50:32.9924908+07:00",
  "departPlace": "sample string 5",
  "bookingCode": "sample string 6",
  "bookingDate": "2025-01-22T23:50:32.9924908+07:00",
  "reffNumber": "sample string 8",
  "bookingStatus": "sample string 9",
  "respTime": "2025-01-22T23:50:32.9924908+07:00",
  "userID": "sample string 11",
  "accessToken": "sample string 12",
  "status": "sample string 13",
  "respMessage": "sample string 14"
}

application/xml, text/xml

Sample:
<BusIssuedResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 12</accessToken>
  <respMessage>sample string 14</respMessage>
  <respTime>2025-01-22T23:50:32.9924908+07:00</respTime>
  <status>sample string 13</status>
  <userID>sample string 11</userID>
  <bookingCode>sample string 6</bookingCode>
  <bookingDate>2025-01-22T23:50:32.9924908+07:00</bookingDate>
  <bookingStatus>sample string 9</bookingStatus>
  <bus>sample string 1</bus>
  <departPlace>sample string 5</departPlace>
  <departTime>2025-01-22T23:50:32.9924908+07:00</departTime>
  <destinationTerminal>sample string 3</destinationTerminal>
  <originTerminal>sample string 2</originTerminal>
  <reffNumber>sample string 8</reffNumber>
</BusIssuedResponse>