Close WO V1

The below API is used to Close the Work Order.

Request: POST

Signature: /api/mobile/CloseWO?Token={Login_Token}

Body:

{

"WONum":WORK_ORDER_ID,

"ApplyToAll":BOOLEAN_VALUE

}

Sample: /api/mobile/CloseWO?Token=VomYEMiECFFyAQ3==

Body:

{

"WONum":1235,

"ApplyToAll":true

}

Response:

{
    "Code": 1,
    "Info": "Workorder(s) closed successfully.",
    "RowsAffected": 2,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": null
}

Things to know about this API:

    1. These fields are mandatory while sending request body:
        • Token - You can use Login API to get token displayed under Info
        • WONum
  1. ApplyToAll determine whether the value is applicable to single work order or complete shipment. It's default value will be true.
    1. RowsAffected is 2 which means we have closed 2 work orders