POST Train/Issued

Request Information

URI Parameters

None.

Body Parameters

TrainIssuedRequest
NameDescriptionTypeAdditional information
bookingCode

string

None.

bookingDate

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:05:33.4146103+07:00",
  "userID": "sample string 3",
  "accessToken": "sample string 4"
}

application/xml, text/xml

Sample:
<TrainIssuedRequest 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:05:33.4146103+07:00</bookingDate>
</TrainIssuedRequest>

Response Information

Resource Description

TrainIssuedResponse
NameDescriptionTypeAdditional information
bookingCode

string

None.

bookingDate

date

None.

origin

string

None.

destination

string

None.

departTime

date

None.

trainID

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:
{
  "bookingCode": "sample string 1",
  "bookingDate": "2025-01-23T00:05:33.4146103+07:00",
  "origin": "sample string 3",
  "destination": "sample string 4",
  "departTime": "2025-01-23T00:05:33.4146103+07:00",
  "trainID": "sample string 6",
  "bookingStatus": "sample string 7",
  "respTime": "2025-01-23T00:05:33.4146103+07:00",
  "userID": "sample string 9",
  "accessToken": "sample string 10",
  "status": "sample string 11",
  "respMessage": "sample string 12"
}

application/xml, text/xml

Sample:
<TrainIssuedResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 10</accessToken>
  <respMessage>sample string 12</respMessage>
  <respTime>2025-01-23T00:05:33.4146103+07:00</respTime>
  <status>sample string 11</status>
  <userID>sample string 9</userID>
  <bookingCode>sample string 1</bookingCode>
  <bookingDate>2025-01-23T00:05:33.4146103+07:00</bookingDate>
  <bookingStatus>sample string 7</bookingStatus>
  <departTime>2025-01-23T00:05:33.4146103+07:00</departTime>
  <destination>sample string 4</destination>
  <origin>sample string 3</origin>
  <trainID>sample string 6</trainID>
</TrainIssuedResponse>