Skip to content

Create Tank

Create a new tank in Last Mile Intelligence.

createTank

tank

ParameterTypeRequiredDefaultDescription
Tank DataJSONYes-Tank object with required fields
FieldTypeRequiredDescription
shipToIdstringYesAssociated ship-to ID
namestringYesTank name
productIdstringYesProduct stored in tank
capacitynumberYesTank capacity
unitstringNoUnit of measure (gallon, liter)
reorderPointnumberNoLevel to trigger reorder
{
"id": "tank_new123",
"shipToId": "ship_xyz789",
"name": "New Tank",
"productId": "prod_fuel001",
"capacity": 8000,
"currentLevel": 0,
"createdAt": "2024-06-21T09:00:00Z"
}
{
"success": false,
"error": "Validation failed",
"details": {
"shipToId": "Ship-to not found"
}
}
  • Missing API Token: LMI credential is missing API token
  • Ship-To Not Found: Ship-to ID does not exist
  • Product Not Found: Product ID does not exist
  • Validation Error: Required fields missing or invalid
  • Permission Denied: API token lacks permission for this operation