Get Tank
Retrieve a single tank by its ID 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 | Yes | - | The ID of the tank to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "tank_abc123", "shipToId": "ship_xyz789", "name": "Main Storage Tank", "productId": "prod_fuel001", "capacity": 10000, "currentLevel": 4500, "unit": "gallon", "lastReadingDate": "2024-06-20T08:00:00Z", "reorderPoint": 2000, "isActive": true}{ "success": false, "error": "Tank not found", "tankId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Tank Not Found: Tank with specified ID does not exist
- Permission Denied: API token lacks permission for this operation