Update a customer
Customers
Update Customer
Updates customer details such as name, phone, or addresses.
PUT
Update a customer
Overview
Update a customer’s profile information, contact details, or addresses. Use this endpoint to keep customer data current or to correct information after initial order creation.Common Use Cases
- Profile Updates: Customer changed their phone number or email
- Company Changes: Customer switched jobs or company renamed
- Address Updates: Customer moved to a new location
- Data Correction: Fix typos or errors from initial order entry
- CRM Sync: Update customer data from external systems
Updatable Fields
| Field | Description |
|---|---|
email | Customer email address |
firstName | First name |
lastName | Last name |
company | Company name |
phone | Phone number |
customerType | individual or business |
billingAddress | Billing address object |
shippingAddress | Shipping address object |
Partial Updates
Only include fields you want to change:Updating Addresses
Update billing or shipping addresses:| Field | Required | Description |
|---|---|---|
contactName | Yes | Contact person at this address |
streetAddress | Yes | Street name and number |
city | Yes | City name |
country | Yes | Country name |
company | No | Company name |
buildingInfo | No | Building, floor, suite |
locality | No | Neighborhood or district |
adminArea | No | State or province |
postalCode | No | ZIP or postal code |
Example: Update Contact Information
Example: Update for Company Merger
Changing Customer Type
Convert between individual and business:Changing customer type to
business enables features like billing groups for consolidated invoicing.Impact on Existing Data
| Change | Impact |
|---|---|
| Updates customer record; orders retain original email at time of order | |
| Address | Updates customer record; existing orders/subscriptions retain original addresses |
| Company | Updates display name; historical records unchanged |
Related Endpoints
- Get Customer - View current customer details
- Delete Customer - Deactivate customer
- List Orders - View customer’s orders
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Path Parameters
The customer ID
Body
application/json
Minimum string length:
1Minimum string length:
1Minimum string length:
1Available options:
individual, business Available options:
active, inactive