Shopware icon

Shopware

Shopware

Actions778

Customer → Create Customer

AI-generated

Overview

This node operation allows creating a new Customer in the Shopware system. It supports detailed input properties to specify all relevant customer information such as IDs, names, contact details, addresses, payment methods, and related entities like groups, sales channels, and custom fields. This operation is beneficial for automating customer creation workflows, integrating external systems with Shopware, or bulk importing customer data.

Use Case Examples

  1. Creating a new customer with basic details like first name, last name, email, and default addresses.
  2. Automating customer registration from an external CRM system by mapping CRM fields to Shopware customer properties.
  3. Bulk importing customers with detailed information including tags, promotions, and custom fields for marketing segmentation.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the customer.
Group Id Identifier for the customer group.
Sales Channel Id Identifier for the sales channel.
Language Id Identifier for the language.
Last Payment Method Id Identifier for the last payment method used by the customer.
Default Billing Address Id Identifier for the default billing address.
Default Shipping Address Id Identifier for the default shipping address.
Auto Increment Auto increment number for the customer.
Customer Number Customer number.
Salutation Id Identifier for the salutation.
First Name Customer's first name.
Last Name Customer's last name.
Company Company name of the customer.
Email Customer's email address.
Title Title of the customer.
Vat Ids VAT identification numbers.
Affiliate Code Affiliate code associated with the customer.
Campaign Code Campaign code associated with the customer.
Active Whether the customer is active.
Double Opt In Registration Whether double opt-in registration is enabled.
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 Whether the customer is a guest.
First Login Date of the first login.
Last Login Date of the last login.
Birthday Customer's birthday.
Last Order Date Date of the last order.
Order Count Number of orders placed by the customer.
Order Total Amount Total amount of all orders.
Review Count Number of reviews made by the customer.
Custom Fields Custom fields for the customer.
Remote Address Remote IP address of the customer.
Tag Ids Identifiers for tags associated with the customer.
Requested Group Id Identifier for the requested group.
Bound Sales Channel Id Identifier for the bound sales channel.
Account Type Type of the customer account.
Created By Id Identifier for the user who created the customer.
Updated By Id Identifier for the user who last updated the customer.
Default Payment Method Id Identifier for the default payment method.
Created At Creation timestamp.
Updated At Last update timestamp.
Group Group object with detailed nested information.
Sales Channel Sales channel object with detailed nested information.
Language Language object with detailed nested information.
Last Payment Method Last payment method object with detailed nested information.
Default Billing Address Default billing address object with detailed nested information.
Default Shipping Address Default shipping address object with detailed nested information.
Salutation Salutation object with detailed nested information.
Addresses Array of address objects with detailed nested information.
Order Customers Array of order customer objects with detailed nested information.
Tags Array of tag objects with detailed nested information.
Promotions Array of promotion objects with detailed nested information.
Product Reviews Array of product review objects with detailed nested information.
Recovery Customer Recovery customer object with detailed nested information.
Requested Group Requested group object with detailed nested information.
Bound Sales Channel Bound sales channel object with detailed nested information.
Wishlists Array of wishlist objects with detailed nested information.
Created By User object who created the customer with detailed nested information.
Updated By User object who last updated the customer with detailed nested information.
Default Payment Method Default payment method object with detailed nested information.

Output

JSON

  • id - Unique identifier of the created customer.
  • customerNumber - Customer number.
  • email - Email address of the customer.
  • firstName - First name of the customer.
  • lastName - Last name of the customer.
  • active - Indicates if the customer is active.
  • createdAt - Timestamp when the customer was created.
  • updatedAt - Timestamp when the customer was last updated.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (marked as required) are provided to avoid validation errors.
  • Check the format of JSON fields like customFields, vatIds, tagIds, etc., to ensure they are valid JSON.
  • If the API returns authentication errors, verify the API key credential and base URL configuration.
  • Timeouts can occur if the server is slow; adjust the timeout setting in request options accordingly.

Discussion