Update Customer
Update an existing customer record in Last Mile Intelligence.
Operation
Section titled “Operation”updateCustomer
Resource
Section titled “Resource”customer
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Customer ID | string | Yes | - | The ID of the customer to update |
| Customer Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "cust_abc123", "name": "Acme Corporation Updated", "accountNumber": "ACME-001", "email": "newemail@acme.com", "status": "active", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Customer not found", "customerId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Customer Not Found: Customer with specified ID does not exist
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation