TrakIT API‎ > ‎Pending API‎ > ‎

Get Depot list

The below API is used to get Depot List from Geography & Structure.


Request: GET

Signature:
 /api/mobile/GetDepotList?Token={Login_Token}&CountryCode={Country_Code}&Search={Search_Keywords}&SkipCount={Skip_Count}



Sample: /api/mobile/GetDepotList?Token=VomYEMiECFFyAQ3==&CountryCode=KE&Search=&SkipCount=0

Response: 

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 6,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "DepotID": "SnV7blpbsSq8p3s78H4=",
            "DepotName": "Mombasa - Direct Trucking"
        },
        {
            "DepotID": "SnV7blpb_dNQLAeqH58=",
            "DepotName": "Mombasa - Makupa CFS"
        },
        {
            "DepotID": "SnV7blpbCFCFGENGIVw=",
            "DepotName": "Mombasa - Mombasa ICD"
        },
        {
            "DepotID": "SnV7blpbQO-2EghJ6QA=",
            "DepotName": "Mombasa - Port of Mombasa"
        },
        {
            "DepotID": "SnV7blpb9PWVxMnzy1c=",
            "DepotName": "Nairobi - Direct Trucking"
        },
        {
            "DepotID": "SnV7blpbbfAT_ht8zSw=",
            "DepotName": "Nairobi - Nairobi ICD"
        }
    ]
}


Things to know about this API:
  1. Login_Token - You can use Login API to get token under Info

  2. Country_Code - As defined under Geography & Structure in TrakIT

  3. Search - (You can search with City Name and Depot Name)

  4. 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.

  5. RowsAffected - Displays the total number of depots found.
Comments