Get Weigment
Get weighment data for transaction in Gate pass or Purchase
URL
weighing/get_trnsweight
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 | UnsSmXudSDPx0BrCQkPbC6S5QvPs0vuF | Key obtained from authentiaction. |
| vcode | Integer | M | 1255 | Vehicle Code | ||
| isExternal | Boolean | M | false | true for external vehicle else false |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| vcode | Integer | M | 1255 | Vehicle code | ||
| isExternal | Boolean | M | true | True if external vehicle else false | ||
| TareWeight | Decimal | M | 5422.02 | Tare Weight | ||
| GrossWeight | Decimal | M | 15422.00 | Gross Weight | ||
| TareTime | String | M | 2023-07-03 11:53 | Tare weighment Time | ||
| GrossTime | String | M | 2023-07-03 13:10 | Gross Weighment time | ||
| ImageIds | String | M | Comma separated Image file Ids | |||
| Products | String | M | Comma separated product list |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"vcode": "1255",
"isExternal": "false"
}
Sample Success Response
{
"vcode": "1255",
"isExternal": "true",
"TareWeight": "5422.02",
"GrossWeight": "15422.00",
"TareTime": "2023-07-03 11:53",
"GrossTime": "2023-07-03 13:10",
"ImageIds": "",
"Products": "",
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}