GET api/BranchDailySales?from={from}&to={to}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| from | date |
Required |
|
| to | date |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DailySales| Name | Description | Type | Additional information |
|---|---|---|---|
| BranchId | integer |
None. |
|
| Branch | string |
None. |
|
| Subtotal | decimal number |
None. |
|
| Redemption | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| Total | decimal number |
None. |
|
| Day | date |
None. |
|
| Payments | Collection of Payment |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"BranchId": 1,
"Branch": "sample string 2",
"Subtotal": 3.0,
"Redemption": 4.0,
"Discount": 5.0,
"Total": 6.0,
"Day": "2025-11-18T00:20:55.396808+08:00",
"Payments": [
{
"PaymentMode": "sample string 1",
"Amount": 2.0,
"PaymentId": 3
},
{
"PaymentMode": "sample string 1",
"Amount": 2.0,
"PaymentId": 3
}
]
},
{
"BranchId": 1,
"Branch": "sample string 2",
"Subtotal": 3.0,
"Redemption": 4.0,
"Discount": 5.0,
"Total": 6.0,
"Day": "2025-11-18T00:20:55.396808+08:00",
"Payments": [
{
"PaymentMode": "sample string 1",
"Amount": 2.0,
"PaymentId": 3
},
{
"PaymentMode": "sample string 1",
"Amount": 2.0,
"PaymentId": 3
}
]
}
]
text/xml
Sample:
<ArrayOfDailySales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CloudSysPOSWeb.Models">
<DailySales>
<Branch>sample string 2</Branch>
<BranchId>1</BranchId>
<Day>2025-11-18T00:20:55.396808+08:00</Day>
<Discount>5</Discount>
<Payments>
<Payment>
<Amount>2</Amount>
<PaymentId>3</PaymentId>
<PaymentMode>sample string 1</PaymentMode>
</Payment>
<Payment>
<Amount>2</Amount>
<PaymentId>3</PaymentId>
<PaymentMode>sample string 1</PaymentMode>
</Payment>
</Payments>
<Redemption>4</Redemption>
<Subtotal>3</Subtotal>
<Total>6</Total>
</DailySales>
<DailySales>
<Branch>sample string 2</Branch>
<BranchId>1</BranchId>
<Day>2025-11-18T00:20:55.396808+08:00</Day>
<Discount>5</Discount>
<Payments>
<Payment>
<Amount>2</Amount>
<PaymentId>3</PaymentId>
<PaymentMode>sample string 1</PaymentMode>
</Payment>
<Payment>
<Amount>2</Amount>
<PaymentId>3</PaymentId>
<PaymentMode>sample string 1</PaymentMode>
</Payment>
</Payments>
<Redemption>4</Redemption>
<Subtotal>3</Subtotal>
<Total>6</Total>
</DailySales>
</ArrayOfDailySales>