PT.Api

<back to all web services

GetBookingHistory

Requires Authentication
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 .soap11 suffix or ?format=soap11

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: api2.futabus.vn 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: GetBookingHistory

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<GetBookingHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel">
  <Version xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Version>
  <Locale xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">vi-VN</Locale>
  <NumRowPerPage xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</NumRowPerPage>
  <Page xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Page>
  <CustEmail>String</CustEmail>
  <DepartureDate>String</DepartureDate>
  <Keyword>String</Keyword>
  <RouteId>0</RouteId>
  <Status>String</Status>
</GetBookingHistory>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<GetBookingHistoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types">
  <Message xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">String</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Status>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</TotalRecord>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types.Bookings">
    <d2p1:Ticket>
      <d2p1:BankCode>String</d2p1:BankCode>
      <d2p1:BookingNo>String</d2p1:BookingNo>
      <d2p1:ClientApp>String</d2p1:ClientApp>
      <d2p1:ClientIP>String</d2p1:ClientIP>
      <d2p1:Commission>0</d2p1:Commission>
      <d2p1:ConfirmCode>String</d2p1:ConfirmCode>
      <d2p1:CurDate>0001-01-01T00:00:00</d2p1:CurDate>
      <d2p1:CustAddress>String</d2p1:CustAddress>
      <d2p1:CustCMND>String</d2p1:CustCMND>
      <d2p1:CustCode>String</d2p1:CustCode>
      <d2p1:CustEmail>String</d2p1:CustEmail>
      <d2p1:CustId>0</d2p1:CustId>
      <d2p1:CustMobile>String</d2p1:CustMobile>
      <d2p1:CustMobile2>String</d2p1:CustMobile2>
      <d2p1:CustName>String</d2p1:CustName>
      <d2p1:CustPickup>String</d2p1:CustPickup>
      <d2p1:CustPickupOfficeId>0</d2p1:CustPickupOfficeId>
      <d2p1:Discount>0</d2p1:Discount>
      <d2p1:DropoffTime>0001-01-01T00:00:00</d2p1:DropoffTime>
      <d2p1:EnglishTicket>0</d2p1:EnglishTicket>
      <d2p1:ExpiredTime>0001-01-01T00:00:00</d2p1:ExpiredTime>
      <d2p1:GioDi>String</d2p1:GioDi>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:NgayDi>0001-01-01T00:00:00</d2p1:NgayDi>
      <d2p1:NumberOfTicket>0</d2p1:NumberOfTicket>
      <d2p1:PayStatus>String</d2p1:PayStatus>
      <d2p1:PaymentType>String</d2p1:PaymentType>
      <d2p1:PromoCode>String</d2p1:PromoCode>
      <d2p1:RealTotalMoney>0</d2p1:RealTotalMoney>
      <d2p1:SessionId>String</d2p1:SessionId>
      <d2p1:Status>String</d2p1:Status>
      <d2p1:Surcharge>0</d2p1:Surcharge>
      <d2p1:TicketDetails>
        <d2p1:TicketDetail>
          <d2p1:CustCMND>String</d2p1:CustCMND>
          <d2p1:CustMobile>String</d2p1:CustMobile>
          <d2p1:CustName>String</d2p1:CustName>
          <d2p1:Discount>0</d2p1:Discount>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:IsCanPay>false</d2p1:IsCanPay>
          <d2p1:IsSubmited>false</d2p1:IsSubmited>
          <d2p1:OnlineSessionId>0</d2p1:OnlineSessionId>
          <d2p1:ReplaceId>0</d2p1:ReplaceId>
          <d2p1:TicketId>0</d2p1:TicketId>
          <d2p1:TicketName>String</d2p1:TicketName>
          <d2p1:carBookingId>0</d2p1:carBookingId>
          <d2p1:idStrib>0</d2p1:idStrib>
          <d2p1:price>0</d2p1:price>
        </d2p1:TicketDetail>
      </d2p1:TicketDetails>
      <d2p1:Total>0</d2p1:Total>
      <d2p1:TotalMoney>0</d2p1:TotalMoney>
      <d2p1:TuyenDuongId>String</d2p1:TuyenDuongId>
      <d2p1:TuyenDuongName>String</d2p1:TuyenDuongName>
      <d2p1:city>String</d2p1:city>
      <d2p1:country>String</d2p1:country>
      <d2p1:state>String</d2p1:state>
    </d2p1:Ticket>
  </Data>
</GetBookingHistoryResponse>

    </soap:Body>
</soap:Envelope>