Streamline for Shopify icon

Streamline for Shopify

Call Streamline APIs

Product → Create a Variant

AI-generated

Overview

This node operation allows users to add new variants to an existing product in a Shopify store. It is useful for store owners or managers who want to expand their product offerings by adding different versions of a product, such as different sizes, colors, or other options. For example, a clothing store can add size and color variants to a shirt product.

Use Case Examples

  1. Adding multiple size and color variants to a T-shirt product with specific prices and inventory settings.
  2. Creating a new variant with a unique SKU, barcode, and price for an existing product.

Properties

Name Meaning
Shop ID The Shopify shop the product belongs to, required to identify the store.
Product ID Shopify product GID or numeric ID to which the variants will be added.
Variant Fields Collection of variant details including barcode, price, SKU, inventory policy, media URLs, option values (e.g., Size, Color), quantity adjustments per location, and taxable status.
Strategy How to handle the product’s existing single variant when adding new variants. Options include removing only the standard 'Default Title' variant or removing any single variant so new variants replace it.

Output

JSON

  • variantId - The ID of the newly created variant.
  • productId - The ID of the product to which the variant was added.
  • status - Status of the variant creation operation.

Dependencies

  • Requires an API key credential for authentication with the Streamline for Shopify API.

Troubleshooting

  • Ensure the Shop ID and Product ID are correctly provided and valid to avoid errors related to resource identification.
  • Verify that the variant fields, especially required fields like price, are correctly filled to prevent validation errors.
  • If the strategy option is set to remove standalone variants, be cautious as it will delete existing single variants which might affect product availability.

Discussion