New integrations

As of May 2021, all new integrations are required to use [API based catalog feed management](🔗) to send data and perform index updates.

Some products have **variants**, such as different colors and sizes. These variants have their own SKU and appear in the variants array of API responses.

Each variant of a product has a different SKU from the encompassing product's SKU. The product has its own ID, and each of its SKUs has its own ID.

For example, a particular scarf is sold in three different colors. The scarf itself has its own product ID. Each version of the scarf shares the product ID plus has its own SKU ID. The specific product IDs and SKU IDs are derived according to your own organization's best practices.

ProductProduct IDVariantSKU ID
Striped scarf33757blackblk-3-3757
Striped scarf33757redred-3-3757
Striped scarf33757blueblu-3-3757

## Add SKU variants to your product feed

Let's walk through how to set up SKUs in your product feed, then examine how this information is represented in API responses.

### Scenario is a retail site that sells products for outdoor recreation, including hiking equipment. Lydia is modifying's product feed. She needs to add three SKUs to an existing product. The product is a tent called The Only Tent. She's adding three different sizes and prices.


Product ID: H-993051-00

SKU IDSizePrice

## Enter the SKUs in the feed's product feed is a TSV-formatted file.

She enters a row for each SKU ID in's product feed. All of the information for each SKU is associated with the product ID — notice how the pid field remains constant, but the skuid field value is unique for each SKU.

Here's a snippet of Lydia's entry for The Only Tent:


## How does SKU data appear in API responses?

SKU data appears in your API responses in the variants array, which is nested inside each product. Here's The Only Tent in one of Lydia's search API responses:

## Adding variants to a XML feed

If your product feed is in XML, then you need to create a <variants> array within the <product> field. The <variants> array contains a <variant> field with SKU data for each variant.

You can declare values for all variants by declaring values at the product level. Each product should have a unique <pid>.

Values declared at the variant level will be only apply to that specific variant. You should declare <skuid> and <availability> at the variant level.

If a value is declared at the product level, it should always be done so for all records. If a value is declared at the variant level, it should always be done so for all records.

Here's a snippet from a XML feed. You can view more details in the [variant feed template files](🔗).