GET api/Sale/GetMonthalySale?outletId={outletId}&year={year}&month={month}
Get the given month sale by outlet
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
outletId | globally unique identifier |
Required |
|
year | integer |
Required |
|
month | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
MonthlyCategorySaleName | Description | Type | Additional information |
---|---|---|---|
Description | string |
None. |
|
GrandTotal | decimal number |
None. |
|
NetTotal | decimal number |
None. |
|
Categories | Collection of SaleDetail |
None. |
|
DailySales | Collection of SaleDetail |
None. |
|
HourlySales | Collection of SaleDetail |
None. |
|
OutletSales | Collection of OutletSale |
None. |
Response Formats
application/json, text/json
Sample:
{ "Description": "sample string 1", "GrandTotal": 2.0, "NetTotal": 3.0, "Categories": [ { "$id": "2", "GroupName": "sample string 1", "GrossTotal": 2.0, "NetTotal": 3.0, "CreationDate": "2024-05-17T15:16:29.6718922+02:00", "SaleDay": "2024-05-17T15:16:29.6718922+02:00", "SaleHour": 6, "DataType": "sample string 7", "OutletId": "629a7982-a7c2-4b73-9e11-68d57f9c3abd" }, { "$ref": "2" } ], "DailySales": [ { "$ref": "2" }, { "$ref": "2" } ], "HourlySales": [ { "$ref": "2" }, { "$ref": "2" } ], "OutletSales": [ { "$id": "3", "OutletId": "19435fbb-b9b2-4f00-a82a-90544609a97f", "SaleDate": "2024-05-17T15:16:29.6718922+02:00", "OutletName": "sample string 3", "GrossTotal": 4.0, "NetTotal": 5.0 }, { "$ref": "3" } ] }