PT.Api

<back to all web services

UpdateBookTicket

The following routes are available for this service:
POST/api/updatebookticket
UpdateBookTicket Parameters:
NameParameterData TypeRequiredDescription
BookingNobodystringNo
CustIdbodyintNo
CustCodebodystringNo
CustCMNDbodystringNo
CustNamebodystringNo
CustEmailbodystringYes
CustMobilebodystringYes
CustMobile2bodystringNo
CustSNbodystringNo
CustAddressbodystringNo
CustCitybodystringNo
CustCountrybodystringNo
CustStatebodystringNo
CustBirthDaybodystringNo
RouteIdbodyintYes
RouteNamebodystringNo
DepartureDatebodystringYesdd-MM-yyyy
DepartureTimebodystringYeshh:mm
NumOfTicketbodyintYes
CarBookingIdbodystringYes
SeatIdsbodyint[]Yes
SeatNamesbodystring[]Yes
OfficePickupIdbodyintNo
PickUpStreetbodystringNo
SeatDiscountsbodyint[]No
PassengersbodyList<Passenger>No
EnglishTicketbodyintNo
LocaleRequest Parameters:
NameParameterData TypeRequiredDescription
LocaleformstringNoLocale. Ex: vi-VN, en-US
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintNoVersion. Ex: 1,2,3,...
Passenger Parameters:
NameParameterData TypeRequiredDescription
CustNameformstringNo
CustMobileformstringNo
CustSNformstringNo
QueryBookTicketResponse Parameters:
NameParameterData TypeRequiredDescription
DataformBookTicketResponseNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusformintNoResponse status. Ex: 1 - Success; 0 - Error
MessageformstringNoResponse message
BookTicketResponse Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
ConfirmCodeformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/UpdateBookTicket HTTP/1.1 
Host: api.futabus.vn 
Content-Type: text/csv
Content-Length: length

{"BookingNo":"String","CustId":0,"CustCode":"String","CustCMND":"String","CustName":"String","CustEmail":"String","CustMobile":"String","CustMobile2":"String","CustSN":"String","CustAddress":"String","CustCity":"String","CustCountry":"String","CustState":"String","CustBirthDay":"String","RouteId":0,"RouteName":"String","DepartureDate":"String","DepartureTime":"String","NumOfTicket":0,"CarBookingId":"String","SeatIds":[0],"SeatNames":["String"],"OfficePickupId":0,"PickUpStreet":"String","SeatDiscounts":[0],"Passengers":[{"CustName":"String","CustMobile":"String","CustSN":"String"}],"EnglishTicket":0,"Locale":"vi-VN","Version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Data":{"Code":"String","ConfirmCode":"String"},"Status":0,"Message":"String"}