GET api/Sale/GetSaleByMonthYear?month={month}&year={year}
Get sale by Month and year
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| month | integer |
Required |
|
| year | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ReportViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DailySale | DailySale |
None. |
|
| MonthlySale | MonthlySale |
None. |
Response Formats
application/json, text/json
Sample:
{
"DailySale": {
"$id": "2",
"Description": "sample string 1",
"GrandTotal": 2.0,
"NetTotal": 3.0,
"OutletSale": [
{
"$id": "3",
"OutletId": "4c67f6cc-d612-466e-b4b2-6b7d0edac7bd",
"SaleDate": "2026-02-04T04:15:02.8086511+01:00",
"OutletName": "sample string 3",
"GrossTotal": 4.0,
"NetTotal": 5.0
},
{
"$ref": "3"
}
]
},
"MonthlySale": {
"$id": "4",
"Description": "sample string 1",
"SaleMonth": "sample string 2",
"GrandTotal": 3.0,
"NetTotal": 4.0,
"OutletSale": [
{
"$ref": "3"
},
{
"$ref": "3"
}
]
}
}