put
https://{store}/api/rest/customers2/customer
Required
| Name | Description | Type |
|---|---|---|
customerId | The ID of the customer being updated. | string |
customerData | The customer data being updated. | customerDataType |
Common customerDataType Attributes
customerDataType AttributesThese are common attributes that are typically assigned to customers. This list may change depending on the attributes settings in Customers > Attributes > Manage Customer Attributes page in Admin Panel. For example, a required status of the middlename attribute (Middle Name/Initial) may be changed to 'YES".
| Attribute Code | Description | Type |
|---|---|---|
firstname | The customers first name. | string |
lastname | The customers last name. | string |
password | The customers password. The password must contain minimum 7 characters. | string |
group_id | Customer Group ID. | int |
prefix | Customer prefix. | string |
middlename | Customer middlename. | string |
suffix | Customer suffix. | string |
taxvat | Customer Tax or VAT number. | string |
tax_class_id | Customer Tax Class ID. Use null to set the same as the Customer Group. | int |
Other customerDataType Data
customerDataType DataThis is non-attribute data or actions that are associated with creating the customer.
| Name | Description | Type |
|---|---|---|
storecredit | Will add a store credit balance to the customer. | storeCreditConfig (defined below) |
storeCreditConfig
storeCreditConfig| Attribute Code | Description | Type |
|---|---|---|
balance | The amount of credit given to the customer. | number |
comment | A comment added to the store credit balance history. | string |
send_email | A flag to send an email to the customer letting them know the balance has been updated. | string (1,0) |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK
