Locate Saved Weighment
Locate Saved weigments
URL
weighing/locate_weigment
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 | CWK4WF5xyJnReBC3a2S7l4EDC78dyhXp | Key obtained from authentiaction. |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| WeighbridgeData | Array | M | List of Weighbridge Data | |||
| SlNo | Integer | M | 43 | Slno for the transaction | ||
| Purpose | Integer | M | 1 | Enum value 1 for Sale, 2 for Purchase | ||
| WbName | String | M | WB1 | Weighbridge Name | ||
| wType | Integer | M | 1 | Enum 1 for TARE Weight, 2 for GROSS Weight | ||
| Weight | Decimal | M | 647388 | Weight of this Transaction | ||
| WeighingTime | String | M | 2023-07-01 13:15:09 | Weighing Time | ||
| Remarks | String | M | Weighing | Remarks of the transaction | ||
| ProductCode | Integer | M | 2 | Product selected | ||
| imageIds | String | M | AJSND, SKK998 | Comma separated image ids | ||
| vehicle | String | M | KL01AA1234 | Vehicle Number | ||
| vcode | Integer | M | 1255 | Vehicle Code | ||
| vtype | Character | M | O | O - Own Vehicle, X - External Vehicle | ||
| Cancelled | Boolean | M | false | Is record is cancelled | ||
| UsedinTransaction | Boolean | M | true | Is the record used in transaction |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq"
}
Sample Success Response
{
"WeighbridgeData": [
{
"SlNo": "43",
"Purpose": "1",
"WbName": "WB1",
"wType": "1",
"Weight": "647388",
"WeighingTime": "2023-07-01 13:15:09",
"Remarks": "Weighing",
"ProductCode": "2",
"imageIds": "AJSND, SKK998",
"vehicle": "KL01AA1234",
"vcode": "1255",
"vtype": "O",
"Cancelled": "false",
"UsedinTransaction": "true"
}
],
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}