The below API is used to Close multiple Work Orders.
Request: POST
Signature: /api/mobile/CloseWOV2?Token={Login_Token}
Body:
{
"WONum":"WORK_ORDER_ID1;WORK_ORDER_ID2;WORK_ORDER_ID3;WORK_ORDER_ID4",
"ApplyToAll":BOOLEAN_VALUE
}
Sample: /api/mobile/CloseWOV2?Token=VomYEMiECFFyAQ3==
Body:
{
"WONum":"12235;12356;12235;12365;12135",
"ApplyToAll":true
}
Response:
{
"Code": 1,
"Info": "Workorder(s) closed successfully.",
"RowsAffected": 2,
"Scalar": null,
"Identity": 0,
"RetInfo": null
}
Things to know about this API:
These fields are mandatory while sending request body:
Token - You can use Login API to get token displayed under Info
WONum
ApplyToAll determine whether the value is applicable to single work order or complete shipment. It's default value will be true.
RowsAffected is 2 which means we have closed 2 work orders