TrakIT API‎ > ‎Shipment‎ > ‎

Update WO Header

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


Request: POST

Signature: trakit.XXX.com/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: xyz.trakit.com/api/mobile/UpdateWOHeader?token=VomYEMiECF_FyAQ3

{
"WoNum":"111",
"Header":
[
    {
    "Code":"CC",
    "Value":""
    },
    {
    "Code":"CN",
    "Value":"",
    "Validate":false
    },
    {
    "Code":"CO",
    "Value":"Coffee",
    "ApplyToAll":true
    }
]
}

Response:

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


Things to know about this API:

  1. These fields are mandatory while sending request body:

    • Code
    • Value

  2. Below are the Header Fields and their code:

     Header Field  Code
    Contractual Customer  CC
    Shipper SR
    Receiver RC
    Carrier CR
    Bond Agent BA
    Clearing Agent CA
    Transporter  TR
    Return Transporter  RT
    Origin Depot  OD
    Destination Depot DD
    Country of Origin CY
    Final Destination FD
    Cargo Type CG
    Shipment Type ST
    Shipper Container SC
    Commodity CO
    Container Number CN
    Manifest LD
    Container Type CT
    Weight CW
    Volume VL
    Seal Number SN
    Vertical VE

  3. 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:

    • Origin Depot
    • Destination Depot
    • Carrier
    • Commodity
    • Vertical
    • Country of Origin
    • Final Destination
    • Container Type
    • Weight
    • Volume
    • Shipper Container
    • Bond Agent
    • Clearing Agent
    • Transporter
    • Return Transporter

  4. Validate(only in case of updating Container Number) will be by default true.
Comments