TrakIT API‎ > ‎Asset‎ > ‎

Add Asset

The below API is used to add an asset in Asset Management.


Request: POST 

Signature:
 trakit.XXX.com/api/mobile/AddAsset?Token={Login_Token}

Body: 

{
"Name":"ASSET_NAME",
"Serial":"ASSET_SERIAL",
"Category":"ASSET_CATEGORY",
"Value":ASSET_VALUE,
"BelongsTo":"ENTITY_TYPE",
"OwnerName":"ENTITY_NAME",
"Remarks":"ASSET_REMARKS"
}


Sample: xyz.trakit.com/api/mobile/AddAsset?Token=MuP0LGIvS4kMDco= 

Body: 


"Name":"Truck001", 
"Serial":"001X", 
"Category":"Big_Trucks", 
"Value":999, 
"BelongsTo":"Transporter", 
"OwnerName":"Ailx Transporters Ltd.", 
"Remarks":"Added on 20th Nov 2018" 

Response: 

{
"Code": 1,
"Info": "Asset created successfully",
"RowsAffected": 1,
"Scalar": null,
"Identity": 999,
"RetInfo": null
}


Things to know about this API:

1. These fields are mandatory while sending request body:
  • Name 
  • Serial 
  • Category 

2. Possible Values for BelongsTo:
  • Carrier 
  • Customer 
  • Transporter 
  • BA
  • CA 
  • Bank 
  • Authority 
  • Other Vendor

3. OwnerName: Entity Name

4. Identity in Response is newly created AssetID.
Comments