12. TrakIT API‎ > ‎Depots‎ > ‎

Get Depot

The below API is used to get Depot.


Request: GET

Signature: /api/mobile/GetDepot?Token={Login_Token}&DepotCode={Depot_Code}


Sample: /api/mobile/GetDepot?Token=VomYEMiECFFyAQ3==&DepotCode=NBO001

Response: 

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 0,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "Type": "Field",
            "Name": "Code",
            "Value": "NBO00-1",
            "Active": true,
            "IsEditable": true,
            "Code": "CODE",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Name",
            "Value": "NBO - Direct Trucking",
            "Active": true,
            "IsEditable": true,
            "Code": "NAME",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Country Name",
            "Value": "Kenya",
            "Active": true,
            "IsEditable": false,
            "Code": "COUNTRY",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Belongs To",
            "Value": "Nairobi",
            "Active": true,
            "IsEditable": false,
            "Code": "BELONGSTO",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Latitude",
            "Value": "-1.2920666666666666666666666667",
            "Active": true,
            "IsEditable": false,
            "Code": "LATITUDE",
            "DataType": "Number",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Longitude",
            "Value": "36.82195",
            "Active": true,
            "IsEditable": false,
            "Code": "LONGITUDE",
            "DataType": "Number",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Coordinates",
            "Value": "01°17.52' S 036°49.32' E",
            "Active": true,
            "IsEditable": false,
            "Code": "COORDINATES",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Field",
            "Name": "Geofence",
            "Value": "0",
            "Active": true,
            "IsEditable": true,
            "Code": "GEOFENCE",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Data",
            "Name": "Nearest Warehouse",
            "Value": "Tes Location name",
            "Active": true,
            "IsEditable": true,
            "Code": "WR",
            "DataType": "Text",
            "Remarks": "New location",
            "MultiSelect": null,
            "ListValues": "Mombasa;Kenya;Nairobi"
        },
        {
            "Type": "Data",
            "Name": "Manager",
            "Value": "",
            "Active": true,
            "IsEditable": true,
            "Code": "MNG",
            "DataType": "Text",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        },
        {
            "Type": "Data",
            "Name": "No. of Employes",
            "Value": "",
            "Active": true,
            "IsEditable": true,
            "Code": "EMP",
            "DataType": "Number",
            "Remarks": null,
            "MultiSelect": null,
            "ListValues": null
        }
    ]
}


Things to know about this API:
    • Token - You can use Login API to get token displayed under Info

    • DepotCode - You can use Get Depot List API to get codes displayed under DepotCode

    • Definition of each attribute for Field:

    • Attribute  Description
      Name Name of the field
      Value Current value stored in it
      Active It is a Boolean field. All the fields will be default True
      IsEditable It is a Boolean field. It will be True if the user has access to Update action. It will be by default False  where code is COUNTRY, BELONGSTO, LATITUDE and LONGITUDE
      Code Unique code assigned to the Field
      DataType It will be by Text or Number
      Remarks It will be by default null
      MultiSelect It will be by default null
      ListValues If ListValues has some values, then it is single select list

    • Definition of each attribute for Data:

    • Attribute  Description
      Name Name of the field
      Value Current value stored in it
      Active It is a Boolean field.
      IsEditable It is a Boolean field. It will be True if the user has access to Update Depot Data action.
      Code Unique code assigned to the Data
      DataType Possible values will be Text, Date, Number, Currency and HyperLink
      Remarks Current remarks store in it.
      MultiSelect Possible values are null or greater than 0.

      • When MultiSelect is Null and ListValues is also Null, then it can be a Text or Numeric Field
      • When MultiSelect is Null and ListValues has some list in it, then it is Single Select
      • When MultiSelect is greater than 0 and ListValues has some list in it, then it is Multi Select

      ListValues It will have a list in case of Single Select Or Multi Select
    Comments