Skip to content

Magento - Update Customer

This module allows modifying information of existing customers, identifying them by ID or email.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
customer_idstringConditionalCustomer ID
emailstringConditionalEmail to search
new_emailstringNoNew email
firstnamestringNoNew first name
lastnamestringNoNew last name
group_idnumberNoNew group
genderstringNoNew gender
dobstringNoNew date of birth
taxvatstringNoNew Tax ID
billing_*stringNoBilling fields
shipping_*stringNoShipping fields

Either customer_id OR email is required.

FieldDescription
store_urlMagento store base URL (e.g.: https://mystore.com)
access_tokenIntegration access token with customer write permissions
{
"success": true,
"customer": {},
"customer_id": 123,
"fields_updated": ["firstname", "lastname", "billing_address"],
"message": "Customer 123 updated successfully"
}
{
"credentials_id": "magento_tienda",
"customer_id": "123",
"firstname": "Juan Carlos",
"lastname": "Garcia Lopez"
}
{
"credentials_id": "magento_tienda",
"customer_id": "123",
"group_id": 2
}
  • If you use email to search, the customer must exist
  • To change email, use new_email
  • Addresses are completely replaced
  • Only the specified fields are updated
  • MagentoGetCustomers - Get customers to update
  • MagentoCreateCustomer - Create new customers
  • MagentoGetOrders - Query customer orders