Interface StandalonePriceSetDiscountedPriceAction

Discounts a Standalone Price of a Product Variant on a published Product. If the Product Variant does not exist or if it exists only in the staged representation of a Product, an InvalidOperationError error is returned.

Produces the [StandalonePriceExternalDiscountSet](ctp:api:type:StandalonePriceExternalDiscountSetMessage) Message.
interface StandalonePriceSetDiscountedPriceAction {
    action: "setDiscountedPrice";
    discounted?: DiscountedPriceDraft;
}

Properties

Properties

action: "setDiscountedPrice"

Value to set. If empty, any existing value will be removed.

The referenced [ProductDiscount](ctp:api:type:ProductDiscount) must be of type external, active, and its predicate must match the referenced Price.