POST Shuttle/Booking

Request Information

URI Parameters

None.

Body Parameters

ShuttleBookingRequest
NameDescriptionTypeAdditional information
shuttleID

string

None.

directionID

string

None.

departDate

date

None.

scheduleCode

string

None.

seats

Collection of string

None.

totalTicket

integer

None.

contactName

string

None.

contactPhone

string

None.

contactAddress

string

None.

contactEmail

string

None.

paxNames

Collection of string

None.

specialLayoutID

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "shuttleID": "sample string 1",
  "directionID": "sample string 2",
  "departDate": "2025-01-22T23:49:14.4098831+07:00",
  "scheduleCode": "sample string 4",
  "seats": [
    "sample string 1",
    "sample string 2"
  ],
  "totalTicket": 5,
  "contactName": "sample string 6",
  "contactPhone": "sample string 7",
  "contactAddress": "sample string 8",
  "contactEmail": "sample string 9",
  "paxNames": [
    "sample string 1",
    "sample string 2"
  ],
  "specialLayoutID": "sample string 10",
  "userID": "sample string 11",
  "accessToken": "sample string 12"
}

application/xml, text/xml

Sample:
<ShuttleBookingRequest 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>
  <userID>sample string 11</userID>
  <contactAddress>sample string 8</contactAddress>
  <contactEmail>sample string 9</contactEmail>
  <contactName>sample string 6</contactName>
  <contactPhone>sample string 7</contactPhone>
  <departDate>2025-01-22T23:49:14.4098831+07:00</departDate>
  <directionID>sample string 2</directionID>
  <paxNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </paxNames>
  <scheduleCode>sample string 4</scheduleCode>
  <seats xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </seats>
  <shuttleID>sample string 1</shuttleID>
  <specialLayoutID>sample string 10</specialLayoutID>
  <totalTicket>5</totalTicket>
</ShuttleBookingRequest>

Response Information

Resource Description

ShuttleBookingResponse
NameDescriptionTypeAdditional information
shuttleID

string

None.

bookingCode

string

None.

salesPrice

decimal number

None.

memberCommission

decimal number

None.

ticketPrice

decimal number

None.

ticketStatus

string

None.

departTime

date

None.

bookingDate

date

None.

issuedTimeLimit

date

None.

origin

string

None.

destination

string

None.

originCity

string

None.

destinationCity

string

None.

passengers

Collection of ShuttlePassangerModel

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:
{
  "shuttleID": "sample string 1",
  "bookingCode": "sample string 2",
  "salesPrice": 3.0,
  "memberCommission": 4.0,
  "ticketPrice": 5.0,
  "ticketStatus": "sample string 6",
  "departTime": "2025-01-22T23:49:14.4255163+07:00",
  "bookingDate": "2025-01-22T23:49:14.4255163+07:00",
  "issuedTimeLimit": "2025-01-22T23:49:14.4255163+07:00",
  "origin": "sample string 10",
  "destination": "sample string 11",
  "originCity": "sample string 12",
  "destinationCity": "sample string 13",
  "passengers": [
    {
      "Name": "sample string 1",
      "SeatNo": "sample string 2",
      "TicketNo": "sample string 3"
    },
    {
      "Name": "sample string 1",
      "SeatNo": "sample string 2",
      "TicketNo": "sample string 3"
    }
  ],
  "respTime": "2025-01-22T23:49:14.4255163+07:00",
  "userID": "sample string 15",
  "accessToken": "sample string 16",
  "status": "sample string 17",
  "respMessage": "sample string 18"
}

application/xml, text/xml

Sample:
<ShuttleBookingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 16</accessToken>
  <respMessage>sample string 18</respMessage>
  <respTime>2025-01-22T23:49:14.4255163+07:00</respTime>
  <status>sample string 17</status>
  <userID>sample string 15</userID>
  <bookingCode>sample string 2</bookingCode>
  <bookingDate>2025-01-22T23:49:14.4255163+07:00</bookingDate>
  <departTime>2025-01-22T23:49:14.4255163+07:00</departTime>
  <destination>sample string 11</destination>
  <destinationCity>sample string 13</destinationCity>
  <issuedTimeLimit>2025-01-22T23:49:14.4255163+07:00</issuedTimeLimit>
  <memberCommission>4</memberCommission>
  <origin>sample string 10</origin>
  <originCity>sample string 12</originCity>
  <passengers>
    <ShuttlePassangerModel>
      <Name>sample string 1</Name>
      <SeatNo>sample string 2</SeatNo>
      <TicketNo>sample string 3</TicketNo>
    </ShuttlePassangerModel>
    <ShuttlePassangerModel>
      <Name>sample string 1</Name>
      <SeatNo>sample string 2</SeatNo>
      <TicketNo>sample string 3</TicketNo>
    </ShuttlePassangerModel>
  </passengers>
  <salesPrice>3</salesPrice>
  <shuttleID>sample string 1</shuttleID>
  <ticketPrice>5</ticketPrice>
  <ticketStatus>sample string 6</ticketStatus>
</ShuttleBookingResponse>