Route Report
Sales Report entered from Route Save.
URL
sales/route_report
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 | lJxkvwWuu3VBMrSPqhgoQyRohDTGyWQB | Key obtained from authentiaction. |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| details | Array | M | Sale Details from Route Save | |||
| custname | String | 1 | 150 | M | AMAL -DAILY BAKERY SALES SNACKES | Customer Name |
| salemode | String | 1 | 6 | M | Cash | Mode of Sale |
| paymentmode | String | 1 | 10 | M | Cash | Mode of Payment |
| cashreceived | Decimal | 99999 | M | 200.00 | Cash Received | |
| netamount | Decimal | 99999 | M | 2000.00 | Sales Total | |
| specialdisc | Decimal | M | 0.0 |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq"
}
Sample Success Response
{
"details": [
{
"custname": "AMAL -DAILY BAKERY SALES SNACKES",
"salemode": "Cash",
"paymentmode": "Cash",
"cashreceived": "200.00",
"netamount": "2000.00",
"specialdisc": "0.0"
}
],
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}
{
"e": 401,
"msg": "Invalid authentication credentials."
}