Sales Summary- Firm wise ProductCategory wise
Firm wise Category wise Sales summary
URL
misdashboard/salessummary_firm_productcateg
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 | 5uaJu08Z4E7vfQLrw6zHzSWMm5CN9Qj9 | Key obtained from authentiaction. |
| fromdate | String | M | ||||
| todate | String | M | ||||
| 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 | ||||
| productcateg | String | M | ||||
| quantity | Decimal | M | ||||
| discount | Decimal | M | ||||
| taxablevalue | Decimal | M | ||||
| taxamount | Decimal | M | ||||
| totalamount | Decimal | M | ||||
| averagerate | Decimal | M | ||||
| productcategid | Integer | M | ||||
| firmid | Integer | M | ||||
| firmname | String | M | ||||
| firmshortname | String | M | ||||
| displaycolor | String | M | ||||
| amount | Decimal | M | ||||
| roundoff | Decimal | M | ||||
| netamount | Decimal | M | ||||
| productsale | Decimal | M | ||||
| lorryrent | Decimal | M | ||||
| firmtypecode | String | M | ||||
| firmtype | String | M |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"fromdate": "",
"todate": "",
"firmids": "1,2",
"firmtypecodes": "CU,Y"
}
Sample Success Response
{
"productsummaryfetchdata": [
{
"productcateg": "",
"quantity": "",
"discount": "",
"taxablevalue": "",
"taxamount": "",
"totalamount": "",
"averagerate": "",
"productcategid": "",
"firmid": "",
"firmname": "",
"firmshortname": "",
"displaycolor": "",
"amount": "",
"roundoff": "",
"netamount": "",
"productsale": "",
"lorryrent": "",
"firmtypecode": "",
"firmtype": ""
}
],
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}