Adds the given Price to the prices array of the ProductVariant. Either variantId or sku is required.

interface ProductAddPriceAction {
    action: "addPrice";
    price: PriceDraft;
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "addPrice"
price: PriceDraft

Embedded Price to add to the Product Variant.

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

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

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc