Search product variations

Get all variations of a specific product in an Ecwid store.

Request and response example

Request:

curl --location 'https://app.ecwid.com/api/v3/1003/products/692730761/combinations' \
--header 'Authorization: Bearer secret_ab***cd'

Response:

[
    {
        "id": 422488527,
        "combinationNumber": 3,
        "options": [
            {
                "name": "Mark",
                "nameTranslated": {
                    "cs": "",
                    "en": "Mark"
                },
                "value": "III",
                "valueTranslated": {
                    "cs": "",
                    "en": "III"
                }
            }
        ],
        "inStock": true,
        "unlimited": true,
        "attributes": [],
        "defaultDisplayedPrice": 27.5,
        "defaultDisplayedPriceFormatted": "€27,50",
        "dimensions": {
            "length": 0,
            "width": 0,
            "height": 0
        },
        "volume": 0,
        "outOfStockVisibilityBehaviour": "SHOW",
        "lowestPrice": 10,
        "defaultDisplayedLowestPrice": 11,
        "defaultDisplayedLowestPriceFormatted": "€11,00",
        "lowestPriceSettings": {
            "lowestPriceEnabled": true
        },
        "alt": {
            "translated": {}
        }
    },
    {
        "id": 422488528,
        "combinationNumber": 2,
        "options": [
            {
                "name": "Mark",
                "nameTranslated": {
                    "cs": "",
                    "en": "Mark"
                },
                "value": "II",
                "valueTranslated": {
                    "cs": "",
                    "en": "II"
                }
            }
        ],
        "inStock": true,
        "unlimited": true,
        "attributes": [],
        "defaultDisplayedPrice": 27.5,
        "defaultDisplayedPriceFormatted": "€27,50",
        "dimensions": {
            "length": 0,
            "width": 0,
            "height": 0
        },
        "volume": 0,
        "outOfStockVisibilityBehaviour": "SHOW",
        "lowestPrice": 10,
        "defaultDisplayedLowestPrice": 11,
        "defaultDisplayedLowestPriceFormatted": "€11,00",
        "lowestPriceSettings": {
            "lowestPriceEnabled": true
        },
        "alt": {
            "translated": {}
        }
    },
    {
        "id": 422488529,
        "combinationNumber": 1,
        "options": [
            {
                "name": "Mark",
                "nameTranslated": {
                    "cs": "",
                    "en": "Mark"
                },
                "value": "I",
                "valueTranslated": {
                    "cs": "",
                    "en": "I"
                }
            }
        ],
        "inStock": true,
        "unlimited": true,
        "attributes": [],
        "defaultDisplayedPrice": 27.5,
        "defaultDisplayedPriceFormatted": "€27,50",
        "dimensions": {
            "length": 0,
            "width": 0,
            "height": 0
        },
        "volume": 0,
        "outOfStockVisibilityBehaviour": "SHOW",
        "lowestPrice": 10,
        "defaultDisplayedLowestPrice": 11,
        "defaultDisplayedLowestPriceFormatted": "€11,00",
        "lowestPriceSettings": {
            "lowestPriceEnabled": true
        },
        "alt": {
            "translated": {}
        }
    }
]

Access scopes

Requires the following access scope: read_catalog

Path params

ParamTypeDescription
storeIdnumberEcwid store ID.
productIdnumberProduct ID.

Query params

All query params are optional.

ParamTypeDescription
langstringLanguage ISO code for translations in JSON response, e.g. en, fr. If a certain field does not have the translation available for the set language, the default language text will be used for that field
responseFieldsstringLimit JSON response by specific fields. If specified, all missing fields will be removed from the response body.
Example: ?responseFields=id,inStock

Example of using responseFields param:

curl --location 'https://app.ecwid.com/api/v3/1003/products/692730761/combinations?responseFields=id,inStock' \
--header 'Authorization: Bearer secret_ab***cd'
[
    {
        "id": 422488527,
        "inStock": true
    },
    {
        "id": 422488528,
        "inStock": true
    },
    {
        "id": 422488529,
        "inStock": true
    }
]

Headers

The Authorization header with a secret access token is required.

HeaderFormatDescription
AuthorizationBearer secret_ab***cdAccess token of the application.

Response

An array of JSON objects with the following fields:

FieldTypeDescription
idnumberUnique product variation ID.
combinationNumbernumberSorting number of the product variation starting with 1.
optionsArray optionsSet of options and their choices that identify the variation.
skustringVariation SKU.
imageUrlstringURL of the product variation image resized to fit 1500x1500px.
hdThumbnailUrlstringURL of the product variation thumbnail resized to fit 800x800px.
thumbnailUrlstringURL of the product variation thumbnail resized to fit 400x400px.
smallThumbnailUrlstringURL of the product variation thumbnail resized to fit 160x160px.
originalImageUrlstringURL of the original not resized product variation image. Omitted if the variation inherits the base product's image from the originalImageUrl field.
imageExternalIdstringImage ID for Lightspeed R-Series/X-Series image sync. Read-only
quantitynumberIn-stock amount of the product variation. If sku is omitted, uses base product stock.
unlimitedbooleantrue if the variation has unlimited stock.
pricenumberProduct variation price.
isShippingRequiredbooleantrue if variation requires shipping, false otherwise
wholesalePricesArray wholesalePricesSorted array of the variation's wholesale price tiers (quantity limit and price). Omitted if the variation inherits the base product's tiered price settings
weightnumberVariation weight in the units defined in store settings. Omitted if the variation inherits the base product's weight.
warningLimitnumberThe minimum 'warning' amount of the product items in stock for this variation, if set. When the variation in stock amount reaches this level, the store administrator gets an email notification. Omitted if the variation inherits the base product's settings
attributesArray attributesVariation's UPC attribute and its value
defaultDisplayedPricenumberProduct price displayed in a storefront for logged out customer for default location (store location). May differ from the price value when the product has options and variations and the default variation's price is different from the base product price. It also includes taxes
defaultDisplayedPriceFormattedstringFormatted displayed price
costPricenumberPurchase price (the price at which the seller bought the product from the supplier). A positive number, 0 by default. The field is not shown in the UI and can be used for reports and profit calculations
dimensionsObject dimensionsVariation dimensions info
compareToPricenumberVariation's sale price displayed strike-out in the customer frontend Omitted if empty
minPurchaseQuantitynumberSets minimum product variation purchase quantity. Default value is taken from a base product. Not visible if the value is not assigned.
maxPurchaseQuantitynumberSets maximum product variation purchase quantity. Default value is taken from a base product. Not visible if the value is not assigned.
lowestPricenumberValue of the product's "Lowest price" used for promotions. This value matches with the one displayed in Ecwid admin.
defaultDisplayedLowestPricenumberValue of the lowest product price with applied taxes (lowestPrice + tax). Matches with the lowest product price displayed on the storefront.
defaultDisplayedLowestPriceFormattedstringFormatted lowest price displayed on the storefront (defaultDisplayedLowestPrice). Uses store formatting settings.

Example: "defaultDisplayedLowestPrice": 45 => "defaultDisplayedLowestPriceFormatted": "45.00".
outOfStockVisibilityBehaviourstringIndicates whether an out of stock product should visible or not. One of: SHOW, HIDE, ALLOW_PREORDER.

options

FieldTypeDescription
namestringOption name
nameTranslatedObject translationsAvailable translations for product option name
valuestringOption value
valueTranslatedObject translationsAvailable translations for product option value

translations

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

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

Translations for each available language. If no other translations are provided, the default language translations is returned. See available languages in store language settings.

wholesalePrices

FieldTypeDescription
quantitynumberNumber of product items on this wholesale tier
pricenumberProduct price on the tier

attributes

FieldTypeDescription
idnumberUnique attribute ID. See Product Classes for the information on attribute IDs
namestringAttribute displayed name
valuestringAttribute value
typestringAttribute type. There are user-defined attributes, general attributes and special 'price per unit’ attributes. The 'type’ field contains one of the following: CUSTOM, UPC, BRAND, GENDER, AGE_GROUP, COLOR, SIZE, PRICE_PER_UNIT, UNITS_IN_PRODUCT
showstringDefines where to display the product attribute value:. Supported values: NOTSHOW, DESCR, PRICE

dimensions

FieldTypeDescription
lengthnumberLength of a variation
widthnumberWidth of a variation
heightnumberHeight of a variation
Language
Click Try It! to start a request and see the response here!