LogoLogo
Build appsContact API support
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
  • REST API
    • REST API overview
    • Store Profile
      • Get store profile
      • Update store profile
      • Upload store logo image
      • Delete store logo image
      • Store reports
        • Get store reports
        • Get latest store update stats
        • Get deleted items history
    • Orders
      • Search orders
      • Get order
      • Get last order
      • Calculate order details
      • Update order
      • Create order
      • Delete order
      • Get repeat order URL
      • Order invoices
        • Get order receipt PDF
        • Get tax invoices for order
        • Generate tax invoice for order
      • Order statuses
        • Search order statuses
        • Get order status
        • Update custom order status
      • Order extra fields
        • Search order extra fields
        • Update order extra field
        • Add extra fields to order
        • Delete order extra field
      • Abandonned carts
        • Search abandoned carts
        • Get abandoned cart
        • Update abandoned cart
        • Convert abandoned cart to order
      • Recurring subscriptions
        • Search recurring subscriptions
        • Get recurring subscription
        • Update recurring subscription
    • Products
      • Search products
      • Get product
      • Update product
      • Create product
      • Delete product
      • Delete all products
      • Adjust product stock
      • Get product filters
      • Get recently used product swatches
      • Search product brands
      • Product images and videos
        • Upload main product image
        • Upload main product image (async)
        • Upload gallery product image
        • Upload gallery product image (async)
        • Delete main product image
        • Delete gallery product image
        • Delete all gallery product images
        • Upload main product video
        • Upload gallery product video
        • Upload cover for gallery video
        • Delete main product video
        • Delete gallery product video
        • Download gallery product video
        • Bulk update product images and videos
      • Product files
        • Upload product file
        • Download product file
        • Delete product file
        • Delete all product files
        • Change product file description
      • Product variations
        • Search product variations
        • Get product variation
        • Update product variation
        • Create product variation
        • Delete product variation
        • Delete all product variations
        • Adjust product variation stock
        • Upload product variation image
        • Upload product variation image (async)
        • Delete product variation image
      • Product types and attributes
        • Search product types
        • Get product type
        • Update product type and attributes
        • Create product type
        • Delete product type
      • Product reviews
        • Search product reviews
        • Get product reviews stats
        • Update product review status
        • Bulk update/delete product reviews
        • Delete product review
    • Categories
      • Search categories
      • Search categories by path
      • Get category
      • Update category
      • Create category
      • Delete category
      • Category images
        • Upload category image
        • Upload category image (async)
        • Delete category image
      • Manage order of categories in the store
        • Get order of categories
        • Update order of categories
      • Manage order of products in the category
        • Get order of products
        • Update order of products
        • Assign products to the category
        • Unassign products from the category
    • Customers
      • Search customers
      • Get customer
      • Update customer
      • Create customer
      • Delete customer
      • Customer groups
        • Search customer groups
        • Get customer group
        • Update customer group name
        • Create customer group
        • Delete customer group
      • Customer contacts
        • Search customer contacts
        • Get customer contact
        • Update customer contact
        • Create customer contact
        • Delete customer contact
      • Customer extra fields
        • Search customer extra fields
        • Get customer extra field
        • Update customer extra field
        • Create customer extra field
        • Delete customer extra field
    • Discounts
      • Promotions
        • Search promotions
        • Update promotion
        • Create promotion
        • Delete promotion
      • Discount coupons
        • Search discount coupons
        • Get discount coupon
        • Update discount coupon
        • Create discount coupon
        • Delete discount coupon
    • Domains
      • Search store domains
      • Update store domains
      • Search domains for purchase
      • Purchase domain
      • Send domain verification email
      • Reset domain password
    • Dictionaries
      • Country codes
      • Currency codes
      • Currency codes by country
      • State codes by country
      • Tax classes by country
    • Staff accounts
      • Search staff accounts
      • Get staff account
      • Get staff account scopes
      • Update staff account
      • Create staff account
      • Delete staff account
      • Resend staff account invite
      • Cancel staff account invite
    • Application
      • Get app subscription status
      • Cancel app subscription
      • Get all app storage data
      • Get specific app storage data
      • Update specific app storage data
      • Delete specific app storage data
      • Add app storage data
      • Custom charge with Ecwid billing
    • Batch requests
      • Create batch request
      • Get batch status
      • Search batch requests by status
      • Stop batch request
      • Stop and delete batch request
    • Shipping options
      • Search shipping options
      • Update shipping option
      • Create shipping option
      • Delete shipping option
    • Payment options
      • Search payment options
      • Get payment option
      • Update payment option
      • Create payment option
      • Delete payment option
    • Checkout extra fields
      • Add checkout extra fields with JavaScript
      • Manage checkout extra fields with REST API
        • Search checkout extra fields
        • Get checkout extra field
        • Update checkout extra field
        • Create checkout extra field
        • Delete checkout extra field
    • Storefront widget details
      • Get page slug and static code
      • Set base URL for storefront widgets
      • Optimize custom website SEO with better URLs
        • Enable Clean Store URLs on a custom website
        • Set Custom Page Slugs on a custom website
      • Dynamic loading for storefront widget
      • SSO (Single-Sign-On) for websites
        • Add SSO to the website
        • Customize SSO on the website
        • SSO code examples
      • Static store pages
        • Static code for home page
        • Static code for category page
        • Static code for product page

Lightspeed® 2025

On this page
  • Required access scopes
  • Path params
  • Headers
  • Request JSON

Was this helpful?

  1. REST API
  2. Products
  3. Product variations

Create product variation

POST https://app.ecwid.com/api/v3/{storeId}/products/{productId}/combinations/{combinationId}

If specified options do not yet exist, they will be created automatically as a dropdown list (SELECT option type).

Required access scopes

Your app must have the following access scopes to make this request: create_catalog

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

productId

number

Internal product ID.

Headers

The Authorization header is required.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Request JSON

A JSON object with the following fields:

Field
Type
Description

options

Set of selected product option values that identify this variation.

sku

string

Variation SKU. If empty, variation inherits the base product's SKU.

thumbnailUrl

string

Link to the variation image resized to fit 400x400px container.

imageUrl

string

Link to the variation image resized to fit 1200x1200px container.

smallThumbnailUrl

string

Link to the variation image resized to fit 160x160px container.

hdThumbnailUrl

string

Link to the variation image resized to fit 800x800px container.

originalImageUrl

string

Link to the full-sized variation image.

instock

boolean

Defines if the variation is in stock (quantity is more than 0).

quantity

number

Number of variation items in stock.

If the variation has unlimited stock (unlimited is true), this field is not returned.

unlimited

boolean

Defines if the variation has unlimited stock.

price

number

Base variation price without any modifiers.

defaultDisplayedPrice

number

Variation price as it's shown on the storefront for logged out customers with default location (store location).

Pre-selected product options or variations modify the price.

Includes taxes

defaultDisplayedPriceFormatted

string

Formatted variant (curency symbol and delimeter settings) of defaultDisplayedPrice based on the store's format settings. For example, €11,00

lowestPrice

number

Variation's lowest price for EU store.

lowestPriceSettings

Variation's lowest price settings contain only one field: lowestPriceEnabled It defines if the lowest price is enabled for the variation.

defaultDisplayedLowestPrice

number

Variation lowest price as it's shown on the storefront for logged out customers with default location (store location). Includes taxes

defaultDisplayedLowestPriceFormatted

string

Formatted variant (curency symbol and delimeter settings) of defaultDisplayedLowestPrice based on the store's format settings. For example, €11,00

dimensions

Variation's dimensions.

wholesalePrices

Sorted list of wholesale price tiers specific to the variation: "minimum quantity = price" pairs.

weight

number

Variation's weight for calculating shipping costs.

volume

number

Variation volume for calculations shipping costs, fractional number, 0 by default.

warningLimit

number

Minimum amount of variation in stock to trigger an automated "low stock" email notification for the store owner.

attributes

List of variation attributes and their values.

compareToPrice

number

Pre-sale price for the variation.

minPurchaseQuantity

number

Sets minimum product purchase quantity. Default value is null.

maxPurchaseQuantity

number

Sets maximum product purchase quantity. Default value is null.

outOfStockVisibilityBehaviour

boolean

Defines if a variation is visible and/or can be pre-ordered when out-of-stock. Requires enabled pre-orders on the store level: allowPreordersForOutOfStockProducts setting in /profile endpoint. Supported values: SHOW - Show out-of-stock variation, but adding it to the cart is disabled. ALLOW_PREORDER - Show out-of-stock variation and allow adding it to the cart.

alt

Image description for the "alt" HTML attribute and its translations.

options

Field
Type
Description

name

string

Name of the selected option.

nameTranslated

Available translations for the product option name.

value

string

Value of the selected option.

valueTranslated

Available translations for the product option value.

dimensions

Field
Type
Description

length

number

Length of a product for calculating shipping costs.

width

number

Width of a product for calculating shipping costs.

height

number

Height of a product for calculating shipping costs.

lowestPriceSettings

Field
Type
Description

lowestPriceEnabled

boolean

Defines if the lowest price is enabled for the product and shown on the storefront.

manualLowestPrice

number

Manually entered lowest price for the last 30 days before any discounts or taxes applied.

defaultDisplayedManualLowestPrice

number

manualLowestPrice with taxes applied.

defaultDisplayedManualLowestPriceFormatted

string

Formatted display of defaultDisplayedManualLowestPrice using store format settings.

automaticLowestPrice

number

Automatically calculated lowest price for the last 30 days before any discounts or taxes applied. Read-only

defaultDisplayedAutomaticLowestPrice

number

automaticLowestPrice with taxes applied. Read-only

defaultDisplayedAutomaticLowestPriceFormatted

string

Formatted display of defaultDisplayedAutomaticLowestPrice using store format settings. Read-only

attributes

Field
Type
Description

id

number

Internal attribute ID.

name

string

Attribute name visible on the storefront.

nameTranslated

Available translations for the attribute name.

value

string

Value of the attribute for this product.

valueTranslated

Available translations for the attribute value.

type

string

Attribute type. There are user-defined attributes, general attributes and attributes pre-defined by Ecwid, for example, "price per unit". One of: CUSTOM UPC BRAND GENDER AGE_GROUP COLOR SIZE PRICE_PER_UNIT UNITS_IN_PRODUCT

show

string

Defines if an attribute is visible on a product page. One of: NOTSHOW - Not visible. DESCR - Visible under the product description. PRICE - Visible under the product price

alt

Field
Type
Description

main

string

Image description for the "alt" HTML attribute of the image.

translations

Available translations for the "alt" text.

translations

Object with text field translations in the "lang": "text" format, where the "lang" is an ISO 639-1 language code. For example:

{
    "en": "Sample text",
    "nl": "Voorbeeldtekst"
}

Translations are available for all active store languages. Only the default language translations are returned if no other translations are provided for the field. Find active store languages with GET /profile request > languages > enabledLanguages.

PreviousUpdate product variationNextDelete product variation

Last updated 3 months ago

Was this helpful?

array of objects

object

object

array of objects

array of objects

object

object

object

object

object

object

options
lowestPriceSettings
dimensions
wholesalePrices
attributes
alt
translations
translations
translations
translations
translations