Magento - Update Customer
Description
Section titled “Description”This module allows modifying information of existing customers, identifying them by ID or email.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Credentials ID |
customer_id | string | Conditional | Customer ID |
email | string | Conditional | Email to search |
new_email | string | No | New email |
firstname | string | No | New first name |
lastname | string | No | New last name |
group_id | number | No | New group |
gender | string | No | New gender |
dob | string | No | New date of birth |
taxvat | string | No | New Tax ID |
billing_* | string | No | Billing fields |
shipping_* | string | No | Shipping fields |
Either customer_id OR email is required.
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, "fields_updated": ["firstname", "lastname", "billing_address"], "message": "Customer 123 updated successfully"}Usage Example
Section titled “Usage Example”Update by ID
Section titled “Update by ID”{ "credentials_id": "magento_tienda", "customer_id": "123", "firstname": "Juan Carlos", "lastname": "Garcia Lopez"}Change group
Section titled “Change group”{ "credentials_id": "magento_tienda", "customer_id": "123", "group_id": 2}- If you use
emailto search, the customer must exist - To change email, use
new_email - Addresses are completely replaced
- Only the specified fields are updated
Related Nodes
Section titled “Related Nodes”- MagentoGetCustomers - Get customers to update
- MagentoCreateCustomer - Create new customers
- MagentoGetOrders - Query customer orders