File Format - Variant

Variant File Format

The first line of a Variant CSV file must be the header row.

A variant instance is a group of rows in the CSV file that are sequential and include the same required fields. Data relating to fields specified under Base Headers and Multi-Column Headers must be specified in the first row of a variant instance. Additional rows of a variant instance may only include fields specified under Multi-Row Headers.

Required Headers

To successfully import a variant CSV file, the following columns must be included in the header row:

Column NameDescriptionType
Variant ID(Required)Identification string for a variant.
Must be unique for each product, otherwise overwritten.
string
Product IDID of the product this is a variant ofstring
UPCUPC of the variantstring
Status (Required)Status of the variant. 0 = active, 1 = disabled, 2 = unavailableinteger
Sort OrderSort order of the variantinteger
GroupsMay Be RequiredSee below

Groups

A group is a class of headers that relate to one another, and may allow for multiple pieces of information to be presented. For example, a customer can have multiple emails, addresses, phone numbers, and more.

Variant groups include:

There are two ways that images can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.

Multi-Row Approach

In this approach, one column header is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.

Multi-Column Approach

In this approach, one column header may be used many times alongside one row (the first row) of a variant instance. To use this column multiple times, an identifying number must exist for N and be unique for each new column.

Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Images group.

The following columns may be included:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
ImageImage NURL to images of the variant.string

Where N is some positive integer.

Localized Data (Required)

There are two ways that localized data can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.

Multi-Row Approach

In this approach, one set of column headers is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.

Multi-Column Approach

In this approach, multiple sets of column headers may be used alongside one row (the first row) of a variant instance. To use these columns multiple times, an identifying number must exist for N and be unique for every new set of columns.

Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Localized Data group.

The following columns may be included:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Localized Description(Required)*Localized Description NDescription of the variant localized to the specified languagestring
Localized Language ID(Required)*Localized Language ID NID of the language in which the record appears.
Integers will be resolved to internal identifiers
integer, string
Localized Name(Required)*Localized Name NName of the variant localized to the specified languagestring

Where N is some positive integer.

Note: (Required)* means these fields are required when sending

Option Values (Required)

There are two ways that option values can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.

Multi-Row Approach

In this approach, one column header is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.

Multi-Column Approach

In this approach, one column header may be used many times alongside one row (the first row) of a variant instance. To use this column multiple times, an identifying number must exist for N and be unique for each new column.

Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Option Values group.

The following columns may be included:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Option Value ID (Required)Option Value N IDID of an Option Value associated with the variantstring

Where N is some positive integer.

Identifiers (Optional)

There are two ways that variant identifiers can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.

Multi-Row Approach

In this approach, one set of column headers is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.

Multi-Column Approach

In this approach, multiple sets of column headers may be used alongside one row (the first row) of a variant instance. To use these columns multiple times, an identifying number must exist for N and be unique for every new set of columns.

Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Related Variants group.

The following columns may be included:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Identifiers IdentifierIdentifiers N IdentifierThe code for the additional identifier of the variantstring
Identifiers TypeIdentifiers N TypeVariant identifier type, e.g. upcstring

Where N is some positive integer.

The valid identifier types are:

  • upc
  • ean
  • code93
  • gs1
  • code128
  • other

Where “other” is the default type.

There are two ways that related variants can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.

Multi-Row Approach

In this approach, one set of column headers is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.

Multi-Column Approach

In this approach, multiple sets of column headers may be used alongside one row (the first row) of a variant instance. To use these columns multiple times, an identifying number must exist for N and be unique for every new set of columns.

Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Related Variants group.

The following columns may be included:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Related Variant IDRelated Variant N IDID of the related variantstring
Related Variant Sort OrderRelated Variant N Sort OrderSort order of the related variant within its set of related variantsinteger

Where N is some positive integer.

Custom Attributes

There are two ways that custom attributes can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.

Multi-Row Approach

In this approach, one set of column headers is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.

Multi-Column Approach

In this approach, multiple sets of column headers may be used alongside one row (the first row) of a variant instance. To use these columns multiple times, an identifying number must exist for N and be unique for every new set of columns.

Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Custom Attributes group.

The following columns may be included:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Custom Attribute IDCustom Attribute N IDIdentifier of the custom attributestring
Custom Attribute ValueCustom Attribute N ValueValue of the attributestring
Custom Attribute Language IDCustom Attribute N Language IDLanguage of the attribute. Supported languages and their ids can be found here
Integers will be resolved to internal identifiers
integer, string

Where N is some positive integer.

Variant CSV Example

See the following Variant CSV sample file.

Variant Sample 1