Shopware icon

Shopware

Shopware

Actions778

Customer Wishlist → Create Customer Wishlist

AI-generated

Overview

This node operation creates a new Customer Wishlist in the Shopware system. It is useful for scenarios where you want to programmatically add a wishlist for a customer, including details such as the customer ID, sales channel ID, products, and custom fields. For example, an e-commerce platform could use this node to add a wishlist for a customer based on their preferences or actions on the website.

Use Case Examples

  1. Creating a wishlist for a customer with specific products and sales channel information.
  2. Adding custom fields and timestamps to a customer's wishlist for detailed tracking.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id The unique identifier for the wishlist to be created.
Customer Id The identifier of the customer for whom the wishlist is being created.
Sales Channel Id The identifier of the sales channel associated with the wishlist.
Custom Fields Custom JSON fields to include additional data in the wishlist.
Created At Timestamp indicating when the wishlist was created.
Updated At Timestamp indicating when the wishlist was last updated.
Products JSON array representing the products included in the wishlist.
Customer JSON object containing detailed customer information related to the wishlist.
Sales Channel JSON object containing detailed sales channel information related to the wishlist.
Request Options Settings for request behavior such as batching, SSL issues, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created customer wishlist.
  • customerId - The identifier of the customer associated with the wishlist.
  • salesChannelId - The identifier of the sales channel associated with the wishlist.
  • products - The list of products included in the wishlist.
  • customFields - Custom fields included in the wishlist.
  • createdAt - Timestamp when the wishlist was created.
  • updatedAt - Timestamp when the wishlist was last updated.
  • customer - Detailed customer information related to the wishlist.
  • salesChannel - Detailed sales channel information related to the wishlist.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Customer Id, Sales Channel Id) are provided to avoid validation errors.
  • If the API returns authentication errors, verify that the Shopware Admin API credentials are correctly configured.
  • For JSON fields like Products, Customer, and Sales Channel, ensure the JSON is well-formed to prevent parsing errors.
  • Timeouts can occur if the server is slow; adjust the timeout setting in Request Options accordingly.

Discussion