PT.Api

<back to all web services

GetCharge

Requires Authentication
The following routes are available for this service:
POST/api/getcharge
GetCharge Parameters:
NameParameterData TypeRequiredDescription
CodebodystringNo
LocaleRequest Parameters:
NameParameterData TypeRequiredDescription
LocaleformstringNoLocale. Ex: vi-VN, en-US
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintNoVersion. Ex: 1,2,3,...
GetChargeResponse Parameters:
NameParameterData TypeRequiredDescription
Dataformlyt_PT_Customer_Charge_View_001No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusformintNoResponse status. Ex: 1 - Success; 0 - Error
MessageformstringNoResponse message
lyt_PT_Customer_Charge_View_001 Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CustomerIdformintNo
TypeformintNo
CodeformstringNo
NameformstringNo
ChargeMoneyformintNo
NoteformstringNo
StatusformintNo
IsPrgCreatedDateformDateTimeNo
IsPrgUpdatedDateformDateTimeNo
IsPrgUpdatedChargeDateformDateTimeNo
IsPrgUpdatedChargeUserIdformintNo
CustomerNameformstringNo
CustomerEmailformstringNo
CustomerPhoneformstringNo
CustomerAddressformstringNo
CustomerProvinceNameformstringNo
CustomerCityNameformstringNo
CustomerProvinceIdformintNo
CustomerCityIdformintNo
SearchKeyformstringNo

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

{
	Code: String,
	Locale: vi-VN,
	Version: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Data: 
	{
		Id: 0,
		CustomerId: 0,
		Type: 0,
		Code: String,
		Name: String,
		ChargeMoney: 0,
		Note: String,
		Status: 0,
		IsPrgUpdatedChargeUserId: 0,
		CustomerName: String,
		CustomerEmail: String,
		CustomerPhone: String,
		CustomerAddress: String,
		CustomerProvinceName: String,
		CustomerCityName: String,
		CustomerProvinceId: 0,
		CustomerCityId: 0,
		SearchKey: String
	},
	Status: 0,
	Message: String
}