GET api/Sale/GetSaleByMonthYear?month={month}&year={year}

Get sale by Month and year

Request Information

URI Parameters

NameDescriptionTypeAdditional information
month

integer

Required

year

integer

Required

Body Parameters

None.

Response Information

Resource Description

ReportViewModel
NameDescriptionTypeAdditional 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": "ece0af9f-7f4c-4f07-8200-e778d122c8d0",
        "SaleDate": "2024-05-16T06:09:51.845951+02: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"
      }
    ]
  }
}