PT.Api

<back to all web services

QueryBookWithPaidTicket

QueryBookWithPaidTicket Parameters:
NameParameterData TypeRequiredDescription
CustIdbodyintNo
CustCodebodystringNo
CustNamebodystringNo
CustEmailbodystringYes
CustMobilebodystringYes
CustMobile2bodystringNo
CustSNbodystringNo
CustAddressbodystringNo
CustCitybodystringNo
CustCountrybodystringNo
CustStatebodystringNo
CustBirthDaybodyDateTimeNoyyyy-MM-ddT00:00:00.000
RouteIdbodyintYes
RouteNamebodystringNo
DepartureDatebodystringYesdd-MM-yyyy
DepartureTimebodystringYeshh:mm
NumOfTicketbodyintYes
CarBookingIdbodystringYes
SeatIdsbodyint[]Yes
SeatNamesbodystring[]Yes
OfficePickupIdbodyintNo
PickUpStreetbodystringNo
SeatDiscountsbodyint[]No
PaymentTypebodystringNo
NotebodystringNo
CanBoCapNhatbodystringNo
PassengersbodyList<Passenger>No
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 .soap12 suffix or ?format=soap12

HTTP + SOAP12

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

POST /soap12 HTTP/1.1 
Host: api4.futabus.vn 
Content-Type: text/xml; charset=utf-8
Content-Length: length

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

<QueryBookWithPaidTicket 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>
  <CanBoCapNhat>String</CanBoCapNhat>
  <CarBookingId>String</CarBookingId>
  <CustAddress>String</CustAddress>
  <CustBirthDay>0001-01-01T00:00:00</CustBirthDay>
  <CustCity>String</CustCity>
  <CustCode>String</CustCode>
  <CustCountry>String</CustCountry>
  <CustEmail>String</CustEmail>
  <CustId>0</CustId>
  <CustMobile>String</CustMobile>
  <CustMobile2>String</CustMobile2>
  <CustName>String</CustName>
  <CustSN>String</CustSN>
  <CustState>String</CustState>
  <DepartureDate>String</DepartureDate>
  <DepartureTime>String</DepartureTime>
  <Note>String</Note>
  <NumOfTicket>0</NumOfTicket>
  <OfficePickupId>0</OfficePickupId>
  <Passengers xmlns:d2p1="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types.Bookings">
    <d2p1:Passenger>
      <d2p1:CustMobile>String</d2p1:CustMobile>
      <d2p1:CustName>String</d2p1:CustName>
      <d2p1:CustSN>String</d2p1:CustSN>
    </d2p1:Passenger>
  </Passengers>
  <PaymentType>String</PaymentType>
  <PickUpStreet>String</PickUpStreet>
  <RouteId>0</RouteId>
  <RouteName>String</RouteName>
  <SeatDiscounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </SeatDiscounts>
  <SeatIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </SeatIds>
  <SeatNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </SeatNames>
</QueryBookWithPaidTicket>

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

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

<QueryBookTicketResponse 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>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types.Bookings">
    <d2p1:Code>String</d2p1:Code>
    <d2p1:ConfirmCode>String</d2p1:ConfirmCode>
  </Data>
</QueryBookTicketResponse>

    </soap12:Body>
</soap12:Envelope>