Skip to content

Get Customer

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

getCustomer

customer

ParameterTypeRequiredDefaultDescription
Customer IDstringYes-The ID of the customer to retrieve
{
"id": "cust_abc123",
"name": "Acme Corporation",
"accountNumber": "ACME-001",
"email": "billing@acme.com",
"phone": "(555) 123-4567",
"address": {
"street": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701"
},
"status": "active",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-06-20T14:45:00Z"
}
{
"success": false,
"error": "Customer not found",
"customerId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Customer Not Found: Customer with specified ID does not exist
  • Permission Denied: API token lacks permission for this operation