Updating the validFrom and validUntil values generates the StandalonePriceValidFromAndUntilSet Message.

As the validity dates are part of the price scope and are not allowed to overlap, this update might return the [DuplicateStandalonePriceScope](ctp:api:type:DuplicateStandalonePriceScopeError) and [OverlappingStandalonePriceValidity](ctp:api:type:OverlappingStandalonePriceValidityError) errors, respectively. A Price without validity period does not conflict with a Price defined for a time period.
interface StandalonePriceSetValidFromAndUntilAction {
    action: "setValidFromAndUntil";
    validFrom?: string;
    validUntil?: string;
}

Properties

action: "setValidFromAndUntil"
validFrom?: string

Value to set. If empty, any existing value is removed.

validUntil?: string

Value to set. If empty, any existing value is removed.