POS365.VN APIs

<back to all web services

RetailerCreateByTocken

The following routes are available for this service:
POST/api/agency/createbyaccesscode
RetailerCreateByTocken Parameters:
NameParameterData TypeRequiredDescription
ShopCodebodystringNo
ShopNamebodystringNo
PhonebodystringNo
PasswordbodystringNo
EmailbodystringNo
AddressbodystringNo
ReferredBybodystringNo
AccessCodebodystringNo
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
AppTypeformstringNo

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

HTTP + XML

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

POST /api/agency/createbyaccesscode HTTP/1.1 
Host: api.pos365.vn 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RetailerCreateByTocken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
  <AccessCode>String</AccessCode>
  <Address>String</Address>
  <Email>String</Email>
  <Password>String</Password>
  <Phone>String</Phone>
  <ReferredBy>String</ReferredBy>
  <ShopCode>String</ShopCode>
  <ShopName>String</ShopName>
</RetailerCreateByTocken>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Retailer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Data">
  <Address>String</Address>
  <AppType>String</AppType>
  <ApprovalDate>0001-01-01T00:00:00</ApprovalDate>
  <CdKeys i:nil="true" />
  <Code>String</Code>
  <CreatedBy>0</CreatedBy>
  <CreatedDate>0001-01-01T00:00:00</CreatedDate>
  <Description>String</Description>
  <Email>String</Email>
  <ExpiryDate>0001-01-01T00:00:00</ExpiryDate>
  <Fax>String</Fax>
  <FieldId>0</FieldId>
  <Id>0</Id>
  <LatestClearData>0001-01-01T00:00:00</LatestClearData>
  <Logo>String</Logo>
  <MaximumBranchs>0</MaximumBranchs>
  <MaximumOrders>0</MaximumOrders>
  <MaximumProducts>0</MaximumProducts>
  <MaximumSms>0</MaximumSms>
  <MaximumSmsBrandName>0</MaximumSmsBrandName>
  <ModifiedBy>0</ModifiedBy>
  <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
  <Name>String</Name>
  <Phone>String</Phone>
  <Province>String</Province>
  <ReferrerBy>String</ReferrerBy>
  <SmsBrandName>String</SmsBrandName>
  <SoldById>0</SoldById>
  <SoldByName>String</SoldByName>
  <Status>0</Status>
  <TaxNumber>String</TaxNumber>
  <TelephoneOfShopkeepers>String</TelephoneOfShopkeepers>
  <TotalAmount>0</TotalAmount>
  <UsingCustomLogo>false</UsingCustomLogo>
  <Website>String</Website>
</Retailer>