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:
  • Definition of each attribute for Data: