interface ProductVariantImportDraft {
    attributes?: Attribute[];
    id?: number;
    images?: Image[];
    prices?: PriceDraft[];
    sku?: string;
}

Properties

attributes?: Attribute[]

If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

id?: number

The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.

images?: Image[]

If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

prices?: PriceDraft[]

The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

sku?: string

The SKU of the existing variant.

Generated using TypeDoc