Create Customer
magento.create_customer
ActionBusiness appsconnection required
Calls the Magento API with the connection's credentials.
Create a customer account. No password is sent, so Magento emails the customer a link to set their own.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- Magento
- Secret shape
- the integration access token, or {"access_token": "…"}
- Config it needs
- base_url, store_code
- Resolved by
- config.connection_id, else node.connection_id
Configuration
6 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
email The new account's email address, which must be unique on the website. | string | Yes | — | email format | — |
firstname The customer's first name. | string | Yes | — | — | — |
lastname The customer's last name. | string | Yes | — | — | — |
website_id The website to create the account on; the store's default is used when this is left empty. | number | No | — | 0–1000000 | — |
group_id The customer group to place the account in; the store's default group is used when this is left empty. | number | No | — | 0–1000000 | — |
customer Any further customer attributes to merge in, for example 'addresses' or 'custom_attributes'. | object | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The customer's entity id. | number | — |
email The customer's email address. | string | — |
firstname The customer's first name. | string | — |
lastname The customer's last name. | string | — |
group_id The customer group the account belongs to. | number | — |
website_id The website the account was created on. | number | — |
store_id The store view the account was created on. | number | — |
created_at When the account was created, in the store's timezone. | string | — |
addresses The customer's saved addresses. | array | — |
custom_attributes Any EAV attributes the store added to customers. | array | — |
{
"addresses": [],
"created_at": "",
"custom_attributes": [],
"email": "",
"firstname": "",
"group_id": 0,
"id": 0,
"lastname": "",
"store_id": 0,
"website_id": 0
}See Create Customer run in a workflow.
In a technical demo we add the Magento connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.