Skip to content

Create Customer Profile

Create a new customer billing profile in Last Mile Intelligence.

createCustomerProfile

customerProfile

ParameterTypeRequiredDefaultDescription
Profile DataJSONYes-Profile object with required fields
FieldTypeRequiredDescription
customerIdstringYesAssociated customer ID
namestringYesProfile name
billingAddressobjectNoBilling address
paymentTermsstringNoPayment terms (e.g., “Net 30”)
creditLimitnumberNoCredit limit amount
{
"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"
}
}
  • 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