avanta icon

avanta

Consume avanta API

Actions57

Product → Create or Update

AI-generated

Overview

This node allows users to create or update product records in a system, typically an e-commerce platform like Magento. It supports detailed product data input including SKU, name, price, status, visibility, attribute sets, product types, and various additional fields such as custom attributes, media entries, stock information, product links, and download items. The node can handle both single and bulk product operations, with options to override dataflow IDs and control hashing checks. It is useful for automating product management workflows, syncing product catalogs, or integrating product data from external sources.

Use Case Examples

  1. Creating a new product with SKU, name, price, and custom attributes.
  2. Updating existing products in bulk with stock and media information.
  3. Linking products with related items and managing downloadable content for products.

Properties

Name Meaning
Request Options Options to control API request behavior such as debug mode, SSL certificate validation, and request timeout.
Return to Webhook Whether to return the response to a webhook (only for create operation).
Use Bulk API Whether to use the bulk API for processing multiple items (for create and related operations).
Dataflow ID Optional override for the dataflow ID, otherwise read from webhook input data (for bulk operations).
Ignore Hashing Skip product hashing checks in the backend to force save or update.
SKU Stock-keeping unit of the product, required for create operation.
Name Name of the product.
Attribute Set Name or ID Select or specify the attribute set for the product.
Status Product status, enabled or disabled.
Type Name or ID Select or specify the product type.
Price Price of the product.
Visibility Product visibility in catalog and search.
Additional Fields Additional optional product details such as custom attributes, weight, website IDs, product symbols, media gallery entries, download items, product links, external category links, and stock information.

Output

JSON

  • id - Unique identifier of the created or updated product.
  • sku - SKU of the product.
  • name - Name of the product.
  • status - Status of the product (enabled or disabled).
  • price - Price of the product.
  • visibility - Visibility setting of the product.
  • additionalFields - Additional product details including custom attributes, media, stock, and links.

Dependencies

  • An API key credential for authenticating with the backend system's API.

Troubleshooting

  • Ensure the SKU is provided and unique when creating a product to avoid errors.
  • If using bulk API, verify the dataflow ID is correctly set or provided in the webhook input.
  • Check SSL settings if connection issues occur, especially if ignoring SSL issues is disabled.
  • Timeout errors may occur if the server is slow; increase the timeout setting if needed.
  • When providing JSON for complex fields (e.g., custom attributes, media entries), ensure the JSON format is correct to avoid parsing errors.

Discussion