Either variantId or sku is required.

interface ProductSetPricesAction {
    action: "setPrices";
    prices: PriceDraft[];
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "setPrices"
prices: PriceDraft[]

The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel, validFrom and validUntil).

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

If true, only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc