Update Pricing
Update an existing pricing record in Last Mile Intelligence.
Operation
Section titled “Operation”updatePricing
Resource
Section titled “Resource”pricing
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Pricing ID | string | Yes | - | The ID of the pricing to update |
| Pricing Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "price_abc123", "pricePerUnit": 3.399, "expirationDate": "2025-06-30", "updatedAt": "2024-06-21T10:30:00Z"}{ "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
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation