POS365.VN APIs

<back to all web services

BranchGet

Requires Authentication
Required permission:Branch_Read
The following routes are available for this service:
GET/api/branchs/{Id}
BranchGet Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
Includesquerystring[]No
Branch Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
EmailformstringNo
PhoneformstringNo
AddressformstringNo
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedByformlong?No
ExpiryDateformDateTimeNo
ModifiedDateformDateTime?No
IsOnlineformboolNo
PreOrderCodeformstringNo
FieldIdformint?No
PreProductCodeformstringNo

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.

GET /api/branchs/{Id} HTTP/1.1 
Host: api.pos365.vn 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Branch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Data">
  <Address>String</Address>
  <CreatedBy>0</CreatedBy>
  <CreatedDate>0001-01-01T00:00:00</CreatedDate>
  <Email>String</Email>
  <ExpiryDate>0001-01-01T00:00:00</ExpiryDate>
  <FieldId>0</FieldId>
  <Id>0</Id>
  <IsOnline>false</IsOnline>
  <ModifiedBy>0</ModifiedBy>
  <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
  <Name>String</Name>
  <ObjectAccesses i:nil="true" />
  <Phone>String</Phone>
  <PreOrderCode>String</PreOrderCode>
  <PreProductCode>String</PreProductCode>
  <PrintTemplates i:nil="true" />
  <RetailerId>0</RetailerId>
  <TransferFromBranches i:nil="true" />
  <TransferToBranches i:nil="true" />
</Branch>