POST Train/BookingDetail
Request Information
URI Parameters
None.
Body Parameters
TrainBookingDetailRequestName | Description | Type | Additional 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:04:41.0941143+07:00", "userID": "sample string 3", "accessToken": "sample string 4" }
application/xml, text/xml
Sample:
<TrainBookingDetailRequest 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:04:41.0941143+07:00</bookingDate> </TrainBookingDetailRequest>
Response Information
Resource Description
TrainBookingDetailResponseName | Description | Type | Additional information |
---|---|---|---|
trainID | string |
None. |
|
trainName | string |
None. |
|
trainNumber | string |
None. |
|
origin | string |
None. |
|
destination | string |
None. |
|
originFull | string |
None. |
|
destinationFull | string |
None. |
|
bookingCode | string |
None. |
|
bookingDate | date |
None. |
|
departTime | date |
None. |
|
arrivalTime | date |
None. |
|
ticketStatus | string |
None. |
|
issuedDate | date |
None. |
|
issuedTimeLimit | date |
None. |
|
ticketPrice | decimal number |
None. |
|
adminFee | decimal number |
None. |
|
markupFee | decimal number |
None. |
|
salesPrice | decimal number |
None. |
|
discount | decimal number |
None. |
|
trainClass | string |
None. |
|
subClass | string |
None. |
|
contactName | string |
None. |
|
contactPhone | string |
None. |
|
passengers | Collection of TrainPassengerModel |
None. |
|
paxAdult | integer |
None. |
|
paxChild | integer |
None. |
|
paxInfant | integer |
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:
{ "trainID": "sample string 1", "trainName": "sample string 2", "trainNumber": "sample string 3", "origin": "sample string 4", "destination": "sample string 5", "originFull": "sample string 6", "destinationFull": "sample string 7", "bookingCode": "sample string 8", "bookingDate": "2025-01-23T00:04:41.0941143+07:00", "departTime": "2025-01-23T00:04:41.0941143+07:00", "arrivalTime": "2025-01-23T00:04:41.0941143+07:00", "ticketStatus": "sample string 12", "issuedDate": "2025-01-23T00:04:41.0941143+07:00", "issuedTimeLimit": "2025-01-23T00:04:41.0941143+07:00", "ticketPrice": 14.0, "adminFee": 1.0, "markupFee": 1.0, "salesPrice": 1.0, "discount": 1.0, "trainClass": "sample string 15", "subClass": "sample string 16", "contactName": "sample string 17", "contactPhone": "sample string 18", "passengers": [ { "name": "sample string 1", "ID": "sample string 2", "birthDate": "2025-01-23T00:04:41.0941143+07:00", "seat": "sample string 4", "wagonNumber": "sample string 5", "wagonCode": "sample string 6", "type": "sample string 7", "phone": "sample string 8", "docType": "sample string 9" }, { "name": "sample string 1", "ID": "sample string 2", "birthDate": "2025-01-23T00:04:41.0941143+07:00", "seat": "sample string 4", "wagonNumber": "sample string 5", "wagonCode": "sample string 6", "type": "sample string 7", "phone": "sample string 8", "docType": "sample string 9" } ], "paxAdult": 19, "paxChild": 20, "paxInfant": 21, "respTime": "2025-01-23T00:04:41.0941143+07:00", "userID": "sample string 23", "accessToken": "sample string 24", "status": "sample string 25", "respMessage": "sample string 26" }
application/xml, text/xml
Sample:
<TrainBookingDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 24</accessToken> <respMessage>sample string 26</respMessage> <respTime>2025-01-23T00:04:41.0941143+07:00</respTime> <status>sample string 25</status> <userID>sample string 23</userID> <adminFee>1</adminFee> <arrivalTime>2025-01-23T00:04:41.0941143+07:00</arrivalTime> <bookingCode>sample string 8</bookingCode> <bookingDate>2025-01-23T00:04:41.0941143+07:00</bookingDate> <contactName>sample string 17</contactName> <contactPhone>sample string 18</contactPhone> <departTime>2025-01-23T00:04:41.0941143+07:00</departTime> <destination>sample string 5</destination> <destinationFull>sample string 7</destinationFull> <discount>1</discount> <issuedDate>2025-01-23T00:04:41.0941143+07:00</issuedDate> <issuedTimeLimit>2025-01-23T00:04:41.0941143+07:00</issuedTimeLimit> <markupFee>1</markupFee> <origin>sample string 4</origin> <originFull>sample string 6</originFull> <passengers> <TrainPassengerModel> <ID>sample string 2</ID> <birthDate>2025-01-23T00:04:41.0941143+07:00</birthDate> <docType>sample string 9</docType> <name>sample string 1</name> <phone>sample string 8</phone> <seat>sample string 4</seat> <type>sample string 7</type> <wagonCode>sample string 6</wagonCode> <wagonNumber>sample string 5</wagonNumber> </TrainPassengerModel> <TrainPassengerModel> <ID>sample string 2</ID> <birthDate>2025-01-23T00:04:41.0941143+07:00</birthDate> <docType>sample string 9</docType> <name>sample string 1</name> <phone>sample string 8</phone> <seat>sample string 4</seat> <type>sample string 7</type> <wagonCode>sample string 6</wagonCode> <wagonNumber>sample string 5</wagonNumber> </TrainPassengerModel> </passengers> <paxAdult>19</paxAdult> <paxChild>20</paxChild> <paxInfant>21</paxInfant> <salesPrice>1</salesPrice> <subClass>sample string 16</subClass> <ticketPrice>14</ticketPrice> <ticketStatus>sample string 12</ticketStatus> <trainClass>sample string 15</trainClass> <trainID>sample string 1</trainID> <trainName>sample string 2</trainName> <trainNumber>sample string 3</trainNumber> </TrainBookingDetailResponse>