GET api/orders/pointOfSales/{branchId}
Gets all point of sales for a specific branch
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| branchId | integer |
Required |
Body Parameters
None.
Remarks
Use api/orders/pointOfSales/{branchId} to get all point of sales for a branch.
Example
//Gets all point of sales on branch with id 10
http://localhost/api/orders/pointOfSales/10
Response Information
Resource Description
Returns all point of sales
Collection of PointOfSaleResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| BranchId | integer |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"BranchId": 2,
"Name": "sample string 3"
},
{
"Id": 1,
"BranchId": 2,
"Name": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfPointOfSaleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Order">
<PointOfSaleResponse>
<BranchId>2</BranchId>
<Id>1</Id>
<Name>sample string 3</Name>
</PointOfSaleResponse>
<PointOfSaleResponse>
<BranchId>2</BranchId>
<Id>1</Id>
<Name>sample string 3</Name>
</PointOfSaleResponse>
</ArrayOfPointOfSaleResponse>