Get Tanks
Retrieve all tanks from Last Mile Intelligence.
Operation
Section titled “Operation”getTank
Resource
Section titled “Resource”tank
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Tank ID | string | No | - | Leave empty to retrieve all tanks |
Response
Section titled “Response”Success
Section titled “Success”[ { "id": "tank_abc123", "shipToId": "ship_xyz789", "name": "Main Storage Tank", "capacity": 10000, "currentLevel": 4500, "isActive": true }, { "id": "tank_def456", "shipToId": "ship_xyz789", "name": "Backup Tank", "capacity": 5000, "currentLevel": 2200, "isActive": true }]{ "success": false, "error": "Failed to retrieve tanks"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Permission Denied: API token lacks permission for this operation