Create Customer Profile
Create a new customer billing profile in Last Mile Intelligence.
Operation
Section titled “Operation”createCustomerProfile
Resource
Section titled “Resource”customerProfile
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Profile Data | JSON | Yes | - | Profile object with required fields |
Profile Data Fields
Section titled “Profile Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | Associated customer ID |
| name | string | Yes | Profile name |
| billingAddress | object | No | Billing address |
| paymentTerms | string | No | Payment terms (e.g., “Net 30”) |
| creditLimit | number | No | Credit limit amount |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "prof_new123", "customerId": "cust_xyz789", "name": "New Billing Profile", "paymentTerms": "Net 30", "isDefault": false, "createdAt": "2024-06-21T09:00:00Z"}{ "success": false, "error": "Validation failed", "details": { "customerId": "Customer not found" }}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Customer Not Found: Associated customer does not exist
- Validation Error: Required fields missing or invalid
- Permission Denied: API token lacks permission for this operation