Edit Weighment
Edit Weighment
URL
weighing/edit_weighment
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 | GIOU9bwxHd1Ic5Ov4Zvtpe6SpcsoZSVa | Key obtained from authentiaction. |
| SlNo | Integer | M | 23072500001 | Slno for the transaction | ||
| 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 | v | 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 |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| SerialNumber | Integer | M | 23072500001 | Serial Number |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"SlNo": "23072500001",
"WbName": "WB1",
"wType": "1",
"Weight": "647388",
"WeighingTime": "2023-07-01 13:15:09",
"Remarks": "Weighing",
"ProductCode": "v",
"imageIds": "AJSND, SKK998",
"vehicle": "KL01AA1234",
"vcode": "1255",
"vtype": "O",
"Cancelled": "false",
"UsedinTransaction": "true"
}
Sample Success Response
{
"SerialNumber": "23072500001",
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 499,
"msg": "Invalid Session"
}