Get Pricing
Retrieve a single pricing record by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getPricing
Resource
Section titled “Resource”pricing
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Pricing ID | string | Yes | - | The ID of the pricing to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "price_abc123", "customerId": "cust_xyz789", "productId": "prod_fuel001", "pricePerUnit": 3.459, "effectiveDate": "2024-06-01", "expirationDate": "2024-12-31", "pricingType": "contract", "isActive": true}{ "success": false, "error": "Pricing not found", "pricingId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Pricing Not Found: Pricing with specified ID does not exist
- Permission Denied: API token lacks permission for this operation