Get Product
Retrieve a single product by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getProduct
Resource
Section titled “Resource”product
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Product ID | string | Yes | - | The ID of the product to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "prod_abc123", "name": "Ultra Low Sulfur Diesel", "code": "ULSD", "category": "fuel", "unitOfMeasure": "gallon", "defaultPrice": 3.459, "taxable": true, "isActive": true}{ "success": false, "error": "Product not found", "productId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Product Not Found: Product with specified ID does not exist
- Permission Denied: API token lacks permission for this operation