Shopware icon

Shopware

Shopware

Actions778

Customer → Update Customer

AI-generated

Overview

This node updates an existing customer in the Shopware system. It is useful for scenarios where customer information needs to be modified or corrected, such as updating contact details, addresses, payment methods, or other customer-related data. For example, it can be used to update a customer's email, billing address, or sales channel information.

Use Case Examples

  1. Updating a customer's email address and default billing address after receiving updated contact information.
  2. Changing the sales channel or group ID for a customer to reflect a change in their purchasing preferences or status.

Properties

Name Meaning
Id Identifier for the customer, used to specify which customer to update.
Group Id The group ID to which the customer belongs.
Sales Channel Id The sales channel ID associated with the customer.
Language Id The language ID for the customer's preferred language.
Last Payment Method Id The ID of the last payment method used by the customer.
Default Billing Address Id The ID of the customer's default billing address.
Default Shipping Address Id The ID of the customer's default shipping address.
Auto Increment Auto increment number for the customer.
Customer Number The unique customer number.
Salutation Id The salutation ID for the customer.
First Name The customer's first name.
Last Name The customer's last name.
Company The company name associated with the customer.
Email The customer's email address.
Title The title of the customer.
Vat Ids VAT identification numbers associated with the customer.
Affiliate Code Affiliate code related to the customer.
Campaign Code Campaign code related to the customer.
Active Indicates if the customer is active.
Double Opt In Registration Indicates if the customer has completed double opt-in registration.
Double Opt In Email Sent Date Date when the double opt-in email was sent.
Double Opt In Confirm Date Date when the double opt-in was confirmed.
Hash Hash value for the customer.
Guest Indicates if the customer is a guest.
First Login Date of the customer's first login.
Last Login Date of the customer's last login.
Birthday Customer's birthday.
Last Order Date Date of the customer's last order.
Order Count Number of orders placed by the customer.
Order Total Amount Total amount of all orders placed by the customer.
Review Count Number of reviews submitted by the customer.
Custom Fields Custom fields for additional customer data.
Remote Address Remote IP address of the customer.
Tag Ids IDs of tags associated with the customer.
Requested Group Id ID of the group requested by the customer.
Bound Sales Channel Id ID of the sales channel bound to the customer.
Account Type Type of the customer's account.
Created By Id ID of the user who created the customer record.
Updated By Id ID of the user who last updated the customer record.
Default Payment Method Id ID of the customer's default payment method.
Created At Timestamp when the customer record was created.
Updated At Timestamp when the customer record was last updated.
Group Detailed JSON object representing the customer's group information.
Sales Channel Detailed JSON object representing the customer's sales channel information.
Language Detailed JSON object representing the customer's language information.
Last Payment Method Detailed JSON object representing the customer's last payment method information.
Default Billing Address Detailed JSON object representing the customer's default billing address.
Default Shipping Address Detailed JSON object representing the customer's default shipping address.
Salutation Detailed JSON object representing the customer's salutation information.
Addresses Detailed JSON array representing the customer's addresses.
Order Customers Detailed JSON array representing the customer's order customers.
Tags Detailed JSON array representing the tags associated with the customer.
Promotions Detailed JSON array representing the promotions associated with the customer.
Product Reviews Detailed JSON array representing the product reviews by the customer.
Recovery Customer Detailed JSON object representing the recovery customer information.
Requested Group Detailed JSON object representing the requested group information.
Bound Sales Channel Detailed JSON object representing the bound sales channel information.
Wishlists Detailed JSON array representing the customer's wishlists.
Created By Detailed JSON object representing the user who created the customer record.
Updated By Detailed JSON object representing the user who last updated the customer record.
Default Payment Method Detailed JSON object representing the customer's default payment method information.

Output

JSON

  • id - Identifier of the updated customer
  • groupId - Group ID of the updated customer
  • salesChannelId - Sales channel ID associated with the updated customer
  • languageId - Language ID of the updated customer
  • lastPaymentMethodId - ID of the last payment method used by the customer
  • defaultBillingAddressId - ID of the default billing address
  • defaultShippingAddressId - ID of the default shipping address
  • autoIncrement - Auto increment number for the customer
  • customerNumber - Unique customer number
  • salutationId - Salutation ID of the customer
  • firstName - First name of the customer
  • lastName - Last name of the customer
  • company - Company name associated with the customer
  • email - Email address of the customer
  • title - Title of the customer
  • vatIds - VAT identification numbers associated with the customer
  • affiliateCode - Affiliate code related to the customer
  • campaignCode - Campaign code related to the customer
  • active - Indicates if the customer is active
  • doubleOptInRegistration - Indicates if double opt-in registration is completed
  • doubleOptInEmailSentDate - Date when double opt-in email was sent
  • doubleOptInConfirmDate - Date when double opt-in was confirmed
  • hash - Hash value for the customer
  • guest - Indicates if the customer is a guest
  • firstLogin - Date of the customer's first login
  • lastLogin - Date of the customer's last login
  • birthday - Customer's birthday
  • lastOrderDate - Date of the customer's last order
  • orderCount - Number of orders placed by the customer
  • orderTotalAmount - Total amount of all orders placed by the customer
  • reviewCount - Number of reviews submitted by the customer
  • customFields - Custom fields for additional customer data
  • remoteAddress - Remote IP address of the customer
  • tagIds - IDs of tags associated with the customer
  • requestedGroupId - ID of the group requested by the customer
  • boundSalesChannelId - ID of the sales channel bound to the customer
  • accountType - Type of the customer's account
  • createdById - ID of the user who created the customer record
  • updatedById - ID of the user who last updated the customer record
  • defaultPaymentMethodId - ID of the customer's default payment method
  • createdAt - Timestamp when the customer record was created
  • updatedAt - Timestamp when the customer record was last updated
  • group - Detailed JSON object representing the customer's group information
  • salesChannel - Detailed JSON object representing the customer's sales channel information
  • language - Detailed JSON object representing the customer's language information
  • lastPaymentMethod - Detailed JSON object representing the customer's last payment method information
  • defaultBillingAddress - Detailed JSON object representing the customer's default billing address
  • defaultShippingAddress - Detailed JSON object representing the customer's default shipping address
  • salutation - Detailed JSON object representing the customer's salutation information
  • addresses - Detailed JSON array representing the customer's addresses
  • orderCustomers - Detailed JSON array representing the customer's order customers
  • tags - Detailed JSON array representing the tags associated with the customer
  • promotions - Detailed JSON array representing the promotions associated with the customer
  • productReviews - Detailed JSON array representing the product reviews by the customer
  • recoveryCustomer - Detailed JSON object representing the recovery customer information
  • requestedGroup - Detailed JSON object representing the requested group information
  • boundSalesChannel - Detailed JSON object representing the bound sales channel information
  • wishlists - Detailed JSON array representing the customer's wishlists
  • createdBy - Detailed JSON object representing the user who created the customer record
  • updatedBy - Detailed JSON object representing the user who last updated the customer record
  • defaultPaymentMethod - Detailed JSON object representing the customer's default payment method information

Dependencies

  • an API key credential for Shopware

Troubleshooting

  • Ensure all required fields (marked as required) are provided to avoid validation errors.
  • Verify that the customer ID exists in the Shopware system before attempting to update.
  • Check the format of JSON fields to ensure they are valid JSON strings.
  • If the API returns authentication errors, verify that the API key credential is correctly configured and has the necessary permissions.

Discussion