Sales Summary Product wise
Product wise summary
URL
misdashboard/salessummary_product
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | cpwGe0emPWuq8JFqsMbZebB6Fggs4cSS | Key obtained from authentiaction. |
| fromdate | String | M | 2023-04-01 | |||
| todate | String | M | 2023-04-30 | |||
| firmids | Integer | M | 1,2 | |||
| firmtypecodes | String | M | CU,Y | One or more firmtype Ids can be given as comma separated value; eg: CU,Y (Crusher and Yard) If no input given then it treated as include all firm Types. (If firmids value is provided then firmtype will not be considered) |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| productsummaryfetchdata | Array | M | ||||
| productcode | Integer | M | ||||
| quantity | Decimal | M | ||||
| discount | Decimal | M | ||||
| taxablevalue | Decimal | M | ||||
| taxamount | Decimal | M | ||||
| totalamount | Decimal | M | ||||
| productname | String | M | ||||
| amount | Decimal | M | ||||
| roundoff | Decimal | M | ||||
| grandtotal | Decimal | M | ||||
| productsale | Decimal | M | ||||
| lorryrent | Decimal | M | ||||
| firmtypecode | String | M | ||||
| firmtype | String | M |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"fromdate": "2023-04-01",
"todate": "2023-04-30",
"firmids": "1,2",
"firmtypecodes": "CU,Y"
}
Sample Success Response
{
"productsummaryfetchdata": [
{
"productcode": "",
"quantity": "",
"discount": "",
"taxablevalue": "",
"taxamount": "",
"totalamount": "",
"productname": "",
"amount": "",
"roundoff": "",
"grandtotal": "",
"productsale": "",
"lorryrent": "",
"firmtypecode": "",
"firmtype": ""
}
],
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}