12. TrakIT API‎ > ‎Work Order‎ > ‎

Get WO Header Values

The below API is used to get work order.


Request: POST

Signature: api/mobile/GetWOHeaderValues?Token={Login_Token}&Code=CR&Search={Search_Text}&SkipCount={Skip_Count}


Sample CASE 1: api/mobile/GetWOHeaderValues?Token=VomYEMiECFFyAQ3==&Code=CA&Search=2&SkipCount=0


Response:

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 1,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "EntID": 2292,
            "EntCode": "CODE12",
            "EntName": "Ent12",
            "CountryCode": "ID"
        }
    ]
}


Sample CASE 2: api/mobile/GetWOHeaderValues?Token=VomYEMiECFFyAQ3==&Code=CT&Search=U&SkipCount=0


Response:

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 9,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "TypeCode": "22BU"
        },
        {
            "TypeCode": "42BU"
        },
        {
            "TypeCode": "22U1"
        },
        {
            "TypeCode": "22U2"
        },
        {
            "TypeCode": "42U1"
        },
        {
            "TypeCode": "42U2"
        },
        {
            "TypeCode": "L5BU"
        },
        {
            "TypeCode": "L5U2"
        },
        {
            "TypeCode": "L5UT"
        }
    ]
}


Things to know about this API:

  1. Token - You can use Login API to get token displayed under Info

  2. SearchText (You can search with UserID, First Name and Last Name.)

  3. Skip Count (It is an integer which decides the number of rows returned. For example: If you send 0, then it will display 0 to 20 rows. If you send 13, then it will display 13 to 33 rows.)

  4. Below are the Header Fields and their Code:

     Header Field  Code
    Contractual Customer CC
    Shipper SR
    Receiver RC
    Bond Agent BA
    Clearing Agent CA
    Transporter TR
    Return Transporter RT
    Container Type CT
Comments