Skip to content

Get Pricing

Retrieve a single pricing record by its ID from Last Mile Intelligence.

getPricing

pricing

ParameterTypeRequiredDefaultDescription
Pricing IDstringYes-The ID of the pricing to retrieve
{
"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"
}
  • 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