POS365.VN APIs

<back to all web services

UpdateCurrentRetailer

Requires Authentication
The following routes are available for this service:
POST/api/vendors/current
UpdateCurrentRetailer Parameters:
NameParameterData TypeRequiredDescription
VendorbodyRetailerNo
Retailer Parameters:
NameParameterData TypeRequiredDescription
IsExpiredformboolNo
ExpireInformdoubleNo
IdformintNo
NameformstringNo
AddressformstringNo
ProvinceformstringNo
WebsiteformstringNo
PhoneformstringNo
FaxformstringNo
CodeformstringNo
LogoformstringNo
CreatedDateformDateTimeNo
ModifiedDateformDateTime?No
ExpiryDateformDateTime?No
CreatedByformlongNo
ModifiedByformlong?No
MaximumProductsformintNo
MaximumBranchsformintNo
LatestClearDataformDateTime?No
ReferrerByformstringNo
FieldIdformint?No
StatusformbyteNo
MaximumOrdersformintNo
MaximumSmsformintNo
SmsBrandNameformstringNo
MaximumSmsBrandNameformintNo
UsingCustomLogoformboolNo
TelephoneOfShopkeepersformstringNo
SoldByIdformlong?No
SoldByNameformstringNo
DescriptionformstringNo
TotalAmountformdecimalNo
TaxNumberformstringNo
EmailformstringNo
ApprovalDateformDateTime?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/vendors/current HTTP/1.1 
Host: api.pos365.vn 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Vendor":{"IsExpired":true,"ExpireIn":-739428.5295130223,"Id":0,"Name":"String","Address":"String","Province":"String","Website":"String","Phone":"String","Fax":"String","Code":"String","Logo":"String","CreatedDate":"0001-01-01T00:00:00.0000000Z","ModifiedDate":"0001-01-01T00:00:00.0000000Z","ExpiryDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedBy":0,"MaximumProducts":0,"MaximumBranchs":0,"LatestClearData":"0001-01-01T00:00:00.0000000Z","ReferrerBy":"String","FieldId":0,"Status":0,"MaximumOrders":0,"MaximumSms":0,"SmsBrandName":"String","MaximumSmsBrandName":0,"UsingCustomLogo":false,"TelephoneOfShopkeepers":"String","SoldById":0,"SoldByName":"String","Description":"String","TotalAmount":0,"TaxNumber":"String","Email":"String","ApprovalDate":"0001-01-01T00:00:00.0000000Z"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}