POST Shuttle/Schedule

Request Information

URI Parameters

None.

Body Parameters

ShuttleScheduleRequest
NameDescriptionTypeAdditional information
shuttleID

string

None.

totalTicket

integer

None.

departDate

date

None.

directionID

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",
  "totalTicket": 2,
  "departDate": "2025-01-23T00:06:42.8504146+07:00",
  "directionID": "sample string 4",
  "userID": "sample string 5",
  "accessToken": "sample string 6"
}

application/xml, text/xml

Sample:
<ShuttleScheduleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 6</accessToken>
  <userID>sample string 5</userID>
  <departDate>2025-01-23T00:06:42.8504146+07:00</departDate>
  <directionID>sample string 4</directionID>
  <shuttleID>sample string 1</shuttleID>
  <totalTicket>2</totalTicket>
</ShuttleScheduleRequest>

Response Information

Resource Description

ShuttleScheduleResponse
NameDescriptionTypeAdditional information
shuttleID

string

None.

totalTicket

integer

None.

departDate

date

None.

directionID

string

None.

origin

string

None.

destination

string

None.

originCity

string

None.

destinationCity

string

None.

schedules

Collection of ShuttleScheduleModel

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",
  "totalTicket": 2,
  "departDate": "2025-01-23T00:06:42.8504146+07:00",
  "directionID": "sample string 4",
  "origin": "sample string 5",
  "destination": "sample string 6",
  "originCity": "sample string 7",
  "destinationCity": "sample string 8",
  "schedules": [
    {
      "scheduleCode": "sample string 1",
      "departTime": "2025-01-23T00:06:42.8504146+07:00",
      "seatCapacity": 3,
      "pricePerSeat": 4.0,
      "seatLayoutID": "sample string 5",
      "specialLayoutID": "sample string 6"
    },
    {
      "scheduleCode": "sample string 1",
      "departTime": "2025-01-23T00:06:42.8504146+07:00",
      "seatCapacity": 3,
      "pricePerSeat": 4.0,
      "seatLayoutID": "sample string 5",
      "specialLayoutID": "sample string 6"
    }
  ],
  "respTime": "2025-01-23T00:06:42.8504146+07:00",
  "userID": "sample string 10",
  "accessToken": "sample string 11",
  "status": "sample string 12",
  "respMessage": "sample string 13"
}

application/xml, text/xml

Sample:
<ShuttleScheduleResponse 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>
  <respMessage>sample string 13</respMessage>
  <respTime>2025-01-23T00:06:42.8504146+07:00</respTime>
  <status>sample string 12</status>
  <userID>sample string 10</userID>
  <departDate>2025-01-23T00:06:42.8504146+07:00</departDate>
  <destination>sample string 6</destination>
  <destinationCity>sample string 8</destinationCity>
  <directionID>sample string 4</directionID>
  <origin>sample string 5</origin>
  <originCity>sample string 7</originCity>
  <schedules>
    <ShuttleScheduleModel>
      <departTime>2025-01-23T00:06:42.8504146+07:00</departTime>
      <pricePerSeat>4</pricePerSeat>
      <scheduleCode>sample string 1</scheduleCode>
      <seatCapacity>3</seatCapacity>
      <seatLayoutID>sample string 5</seatLayoutID>
      <specialLayoutID>sample string 6</specialLayoutID>
    </ShuttleScheduleModel>
    <ShuttleScheduleModel>
      <departTime>2025-01-23T00:06:42.8504146+07:00</departTime>
      <pricePerSeat>4</pricePerSeat>
      <scheduleCode>sample string 1</scheduleCode>
      <seatCapacity>3</seatCapacity>
      <seatLayoutID>sample string 5</seatLayoutID>
      <specialLayoutID>sample string 6</specialLayoutID>
    </ShuttleScheduleModel>
  </schedules>
  <shuttleID>sample string 1</shuttleID>
  <totalTicket>2</totalTicket>
</ShuttleScheduleResponse>