POST Shuttle/BookingDetail
Request Information
URI Parameters
None.
Body Parameters
ShuttleBookingDetailRequestName | 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:10:09.3637099+07:00", "userID": "sample string 3", "accessToken": "sample string 4" }
application/xml, text/xml
Sample:
<ShuttleBookingDetailRequest 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:10:09.3637099+07:00</bookingDate> </ShuttleBookingDetailRequest>
Response Information
Resource Description
ShuttleBookingDetailResponseName | Description | Type | Additional information |
---|---|---|---|
shuttleID | string |
None. |
|
origin | string |
None. |
|
originAddress | string |
None. |
|
destination | string |
None. |
|
destinationAddress | string |
None. |
|
bookingCode | string |
None. |
|
bookingDate | date |
None. |
|
departTime | date |
None. |
|
totalTicket | integer |
None. |
|
ticketStatus | string |
None. |
|
issuedDate | date |
None. |
|
issuedTimeLimit | date |
None. |
|
ticketPrice | decimal number |
None. |
|
memberCommision | decimal number |
None. |
|
salesPrice | decimal number |
None. |
|
OTPCode | string |
None. |
|
passengerInfos | Collection of ShuttlePassengerModel |
None. |
|
contactName | string |
None. |
|
contactPhone | string |
None. |
|
contactAddress | 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:
{ "shuttleID": "sample string 1", "origin": "sample string 2", "originAddress": "sample string 3", "destination": "sample string 4", "destinationAddress": "sample string 5", "bookingCode": "sample string 6", "bookingDate": "2025-01-23T00:10:09.3637099+07:00", "departTime": "2025-01-23T00:10:09.3637099+07:00", "totalTicket": 9, "ticketStatus": "sample string 10", "issuedDate": "2025-01-23T00:10:09.3637099+07:00", "issuedTimeLimit": "2025-01-23T00:10:09.3637099+07:00", "ticketPrice": 1.0, "memberCommision": 1.0, "salesPrice": 1.0, "OTPCode": "sample string 12", "passengerInfos": [ { "name": "sample string 1", "seatNo": "sample string 2", "ticketNo": "sample string 3" }, { "name": "sample string 1", "seatNo": "sample string 2", "ticketNo": "sample string 3" } ], "contactName": "sample string 13", "contactPhone": "sample string 14", "contactAddress": "sample string 15", "respTime": "2025-01-23T00:10:09.3637099+07:00", "userID": "sample string 17", "accessToken": "sample string 18", "status": "sample string 19", "respMessage": "sample string 20" }
application/xml, text/xml
Sample:
<ShuttleBookingDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 18</accessToken> <respMessage>sample string 20</respMessage> <respTime>2025-01-23T00:10:09.3637099+07:00</respTime> <status>sample string 19</status> <userID>sample string 17</userID> <OTPCode>sample string 12</OTPCode> <bookingCode>sample string 6</bookingCode> <bookingDate>2025-01-23T00:10:09.3637099+07:00</bookingDate> <contactAddress>sample string 15</contactAddress> <contactName>sample string 13</contactName> <contactPhone>sample string 14</contactPhone> <departTime>2025-01-23T00:10:09.3637099+07:00</departTime> <destination>sample string 4</destination> <destinationAddress>sample string 5</destinationAddress> <issuedDate>2025-01-23T00:10:09.3637099+07:00</issuedDate> <issuedTimeLimit>2025-01-23T00:10:09.3637099+07:00</issuedTimeLimit> <memberCommision>1</memberCommision> <origin>sample string 2</origin> <originAddress>sample string 3</originAddress> <passengerInfos> <ShuttlePassengerModel> <name>sample string 1</name> <seatNo>sample string 2</seatNo> <ticketNo>sample string 3</ticketNo> </ShuttlePassengerModel> <ShuttlePassengerModel> <name>sample string 1</name> <seatNo>sample string 2</seatNo> <ticketNo>sample string 3</ticketNo> </ShuttlePassengerModel> </passengerInfos> <salesPrice>1</salesPrice> <shuttleID>sample string 1</shuttleID> <ticketPrice>1</ticketPrice> <ticketStatus>sample string 10</ticketStatus> <totalTicket>9</totalTicket> </ShuttleBookingDetailResponse>