Update WO Header

The below API is used to update work order header fields.

Request: POST

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

Body:

{
"WoNum":"WORK_ORDER_ID",
"Header":
[
    {
    "Code":"HEADER_CODE",
    "Value":"FIELD_VALUE",
    "ApplyToAll":BOOLEAN_VALUE,

"Validate":BOOLEAN_VALUE

    }
]
}

Sample CASE 1: /api/mobile/UpdateWOHeader?Token=VomYEMiECFFyAQ3==

{
"WoNum":"111",
"Header":
[
    {
    "Code":"CC",
    "Value":"Logistic Pvt. Ltd."
    },

{

    "Code":"CN",
    "Value":"CSIU200082",
    "Validate":false
    },

{

"Code":"CO",

"Value":"Coffee",

"ApplyToAll":true

}

]
}

Response:

{
"Code": 1,
"Info": "WO Header updated successfully",
"RowsAffected": 0,
"Scalar": null,
"Identity": 0,
"RetInfo": null
}

Sample CASE 2: /api/mobile/UpdateWOHeader?Token=VomYEMiECFFyAQ3==

{

"WoNum":"18457",

"Header":

[

{

"Code":"DL",

"Value":["TBi6d779ptmQXVSEjxQ=","TBi6d779efYbTBmdr7I=","TBi6d779wFsPW_alCas="],

"Operation":"Add"

}

]

}

Response:

{
"Code": 1,
"Info": "WO Header updated successfully",
"RowsAffected": 0,
"Scalar": null,
"Identity": 0,
"RetInfo": null
}

Things to know about this API:

    1. Token - You can use Login API to get token displayed under Info
    2. These fields are mandatory while sending request body:
        • Code
        • Value
    3. Below are the Header Fields and their Code:
    1. ApplyToAll determine whether the value is applicable to single work order or complete shipment. It's default value will be true.This attribute will be applied on:
      • Carrier
      • Commodity
      • Vertical
      • Country of Origin
      • Final Destination
      • Container Type
      • Weight
      • Volume
      • Shipper Container
      • Bond Agent
      • Clearing Agent
      • Transporter
      • Return Transporter
  1. Validate(only in case of updating Container Number) will be by default true.
    1. Depot List is accepting array. ["Origin Depot","Destination Depot 1","Destination Depot 2"].
    2. First depot in the list will be considered as Origin Depot and the last will be Destination Depot. If you send only 1 depot in the array, it will update Origin and Destination depot with the same depot.
  2. Operation (only in case of updating Depot List). These are the below options:
  1. References: