Create Depot
The below API is used to create Depot.
Request: POST
Signature: /api/mobile/CreateDepot?Token={Login_Token}
Body:
{
"Code":"DEPOT_CODE",
"Name":"DEPOT_NAME",
"BelongsTo":"DEPOT_PARENT_CODE",
"Latitude":
DEPOT_LATITUDE,
"Longitude":DEPOT_LONGITUDE
}
Sample : /api/mobile/CreateDepot?Token=VomYEMiECFFyAQ3==
Body:
{
"Code":"NBO02",
"Name":"Nairobi - ICD",
"BelongsTo":"NBO",
"Latitude":
0.347600,
"Longitude":32.582516
}
Response:
{
"Code": 1,
"Info": "Depot created successfully",
"RowsAffected": 1,
"Scalar": null,
"Identity": 0,
"RetInfo":
null
}
Things to know about this API:
- Token - You can use Login API to get token displayed under Info
- BelongsTo - Enter immediate parent code
- Valid Latitude range is -90 to +90 and Longitude range is -180 to +180