post
https://{store}/api/rest/customers2/customer
Required
| Name | Description | Type |
|---|---|---|
customerData | The data for the customer being created. | customerDataType |
Required customerDataType
customerDataTypeThis data is required when creating a new customer. All other customer data is either optional/required based on the attribute values.
| Name | Description | Type |
|---|---|---|
email | The customers email address. | string |
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 8 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 |
Other customerDataType Data
customerDataType DataThis is non-attribute data or actions that are associated with creating the customer.
| Name | Description | Type |
|---|---|---|
disable_auto_group_change | Defines whether the automatic group change for the customer will be disabled. | int |
zoey_customer_confirmation | Confirmation Login --- 1 = Bypass Confirmation, 2 = Send Confirmation Email ( Confirmation or Welcome email will be sent depending on store settings ) | string |
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 |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
