Magento - Create Customer
Description
Section titled “Description”This module allows creating customers in Magento 2 with personal information and billing/shipping addresses.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Credentials ID |
email | string | Yes | Customer email |
firstname | string | Yes | First name |
lastname | string | Yes | Last name |
password | string | No | Password |
group_id | number | No | Group ID (default: 1) |
website_id | number | No | Website ID (default: 1) |
store_id | number | No | Store ID (default: 1) |
gender | string | No | 1=Male, 2=Female |
dob | string | No | Date of birth |
taxvat | string | No | Tax ID |
billing_* | string | No | Billing fields |
shipping_* | string | No | Shipping fields |
Credentials
Section titled “Credentials”| Field | Description |
|---|---|
store_url | Magento store base URL (e.g.: https://mystore.com) |
access_token | Integration access token with customer write permissions |
Output
Section titled “Output”{ "success": true, "customer": {}, "customer_id": 123, "email": "cliente@ejemplo.com", "message": "Customer \"cliente@ejemplo.com\" created successfully with ID 123"}Usage Example
Section titled “Usage Example”Basic customer
Section titled “Basic customer”{ "credentials_id": "magento_tienda", "email": "nuevo@cliente.com", "firstname": "Juan", "lastname": "Garcia"}Customer with address
Section titled “Customer with address”{ "credentials_id": "magento_tienda", "email": "cliente@ejemplo.com", "firstname": "Pedro", "lastname": "Martinez", "billing_street": "Calle Mayor 123", "billing_city": "Madrid", "billing_region": "Madrid", "billing_postcode": "28001", "billing_country": "ES", "billing_telephone": "+34600123456"}Wholesale customer
Section titled “Wholesale customer”{ "credentials_id": "magento_tienda", "email": "empresa@mayorista.com", "firstname": "Carlos", "lastname": "Empresa S.L.", "group_id": 2, "taxvat": "B12345678"}- The email must be unique
- If no password is specified, the customer will not be able to log in
- Country codes are ISO 2-letter (ES, MX, US, etc.)
- Regions must match those configured in Magento
Related Nodes
Section titled “Related Nodes”- MagentoGetCustomers - Get existing customers
- MagentoUpdateCustomer - Update customer information
- MagentoGetOrders - Get customer orders