Shopware icon

Shopware

Shopware

Actions778

Product Visibility → Create Product Visibility

AI-generated

Overview

This node operation creates a new Product Visibility entry in the Shopware system. It is useful for managing the visibility of products across different sales channels, allowing users to specify which products are visible in which sales channels and under what conditions. For example, an e-commerce manager can use this node to set visibility rules for products in various regional sales channels or promotional campaigns.

Use Case Examples

  1. Create a product visibility entry to make a specific product visible in a particular sales channel with defined visibility settings.
  2. Set up product visibility for a new product version across multiple sales channels to control its availability.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id The unique identifier for the product visibility entry.
Product Id The identifier of the product for which visibility is being set.
Product Version Id The version identifier of the product, if applicable.
Sales Channel Id The identifier of the sales channel where the product visibility applies.
Visibility The visibility level or status for the product in the specified sales channel.
Created At The creation timestamp of the product visibility entry.
Updated At The last update timestamp of the product visibility entry.
Sales Channel A JSON object representing detailed information about the sales channel associated with the product visibility.
Product A JSON object representing detailed information about the product associated with the visibility entry.

Output

JSON

  • id - The unique identifier of the created product visibility entry.
  • productId - The identifier of the product for which visibility was created.
  • productVersionId - The version identifier of the product.
  • salesChannelId - The identifier of the sales channel where the visibility applies.
  • visibility - The visibility level set for the product in the sales channel.
  • createdAt - Timestamp when the product visibility entry was created.
  • updatedAt - Timestamp when the product visibility entry was last updated.
  • salesChannel - Detailed information about the sales channel in JSON format.
  • product - Detailed information about the product in JSON format.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Product Id, Sales Channel Id, Visibility) are provided to avoid validation errors.
  • Check the API credentials and base URL configuration if authentication errors occur.
  • If the response is empty or incomplete, verify the '_response' property setting to request the appropriate response detail level.

Discussion