PT.Api

<back to all web services

GetBookingHistory

Requires Authentication
The following routes are available for this service:
POST/api/getbookinghistory
GetBookingHistory Parameters:
NameParameterData TypeRequiredDescription
DepartureDatebodystringNodd-MM-yyyy
StatusbodystringNoWait, Success,...
RouteIdbodyintNo
KeywordbodystringNoBookingNo
CustEmailbodystringNo
LocalePaginationRequest Parameters:
NameParameterData TypeRequiredDescription
PageformintYes
NumRowPerPageformintYes
LocaleRequest Parameters:
NameParameterData TypeRequiredDescription
LocaleformstringNoLocale. Ex: vi-VN, en-US
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintNoVersion. Ex: 1,2,3,...
GetBookingHistoryResponse Parameters:
NameParameterData TypeRequiredDescription
DataformList<Ticket>No
PaginationResponse Parameters:
NameParameterData TypeRequiredDescription
TotalRecordformintNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusformintNoResponse status. Ex: 1 - Success; 0 - Error
MessageformstringNoResponse message
Ticket Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CustNameformstringNo
CustMobileformstringNo
CustMobile2formstringNo
CustEmailformstringNo
CustAddressformstringNo
CustPickupformstringNo
CustPickupOfficeIdformintNo
CustCMNDformstringNo
BookingNoformstringNo
NumberOfTicketformintNo
TuyenDuongIdformstringNo
TuyenDuongNameformstringNo
NgayDiformDateTimeNo
GioDiformstringNo
SessionIdformstringNo
TotalformfloatNo
CurDateformDateTimeNo
StatusformstringNo
PayStatusformstringNo
PaymentTypeformstringNo
ClientIPformstringNo
ClientAppformstringNo
ConfirmCodeformstringNo
PromoCodeformstringNo
DiscountformintNo
SurchargeformintNo
CommissionformintNo
TotalMoneyformintNo
RealTotalMoneyformintNo
BankCodeformstringNo
countryformstringNo
stateformstringNo
cityformstringNo
CustCodeformstringNo
ExpiredTimeformDateTimeNo
CustIdformintNo
DropoffTimeformDateTimeNo
EnglishTicketformintNo
TicketDetailsformList<TicketDetail>No
TicketDetail Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
OnlineSessionIdformintNo
TicketIdformintNo
TicketNameformstringNo
carBookingIdformintNo
priceformintNo
IsSubmitedformboolNo
IsCanPayformboolNo
ReplaceIdformintNo
idStribformintNo
CustNameformstringNo
CustMobileformstringNo
CustCMNDformstringNo
DiscountformintNo

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/GetBookingHistory HTTP/1.1 
Host: api4.futabus.vn 
Content-Type: text/csv
Content-Length: length

{"DepartureDate":"String","Status":"String","RouteId":0,"Keyword":"String","CustEmail":"String","Page":0,"NumRowPerPage":0,"Locale":"vi-VN","Version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Data":[{"Id":0,"CustName":"String","CustMobile":"String","CustMobile2":"String","CustEmail":"String","CustAddress":"String","CustPickup":"String","CustPickupOfficeId":0,"CustCMND":"String","BookingNo":"String","NumberOfTicket":0,"TuyenDuongId":"String","TuyenDuongName":"String","GioDi":"String","SessionId":"String","Total":0,"Status":"String","PayStatus":"String","PaymentType":"String","ClientIP":"String","ClientApp":"String","ConfirmCode":"String","PromoCode":"String","Discount":0,"Surcharge":0,"Commission":0,"TotalMoney":0,"RealTotalMoney":0,"BankCode":"String","country":"String","state":"String","city":"String","CustCode":"String","CustId":0,"EnglishTicket":0,"TicketDetails":[{"Id":0,"OnlineSessionId":0,"TicketId":0,"TicketName":"String","carBookingId":0,"price":0,"IsSubmited":false,"IsCanPay":false,"ReplaceId":0,"idStrib":0,"CustName":"String","CustMobile":"String","CustCMND":"String","Discount":0}]}],"TotalRecord":0,"Status":0,"Message":"String"}