PT.Api

<back to all web services

QueryBookWithPaidTicket

The following routes are available for this service:
POST/api/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 .jsv suffix or ?format=jsv

HTTP + JSV

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

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

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

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