The data representation for a price to be imported that is persisted as a Price in the Project.

interface PriceImport {
    channel?: ChannelKeyReference;
    country?: string;
    custom?: Custom;
    customerGroup?: CustomerGroupKeyReference;
    discounted?: DiscountedPrice;
    key: string;
    product: ProductKeyReference;
    productVariant: ProductVariantKeyReference;
    publish?: boolean;
    staged?: boolean;
    tiers?: PriceTier[];
    validFrom?: string;
    validUntil?: string;
    value: TypedMoney;
}

Hierarchy (view full)

Properties

The Reference to the Channel with which the Price is associated. If referenced Channel does not exist, the state of the ImportOperation will be set to unresolved until the necessary Channel is created.

country?: string

Maps to Price.county.

custom?: Custom

The custom fields for this price.

The Reference to the CustomerGroup with which the Price is associated. If referenced CustomerGroup does not exist, the state of the ImportOperation will be set to unresolved until the necessary CustomerGroup is created.

discounted?: DiscountedPrice

Sets a discounted price from an external service.

key: string

User-defined unique identifier for the Embedded Price. If a Price with this key exists on the specified productVariant, it will be updated with the imported data.

The Product in which the Product Variant containing this Embedded Price is contained. Maps to ProductVariant.product. The Reference to the Product with which the Price is associated. If referenced Product does not exist, the state of the ImportOperation will be set to unresolved until the necessary Product is created.

The ProductVariant in which this Embedded Price is contained. The Reference to the ProductVariant with which the Price is associated. If referenced ProductVariant does not exist, the state of the ImportOperation will be set to unresolved until the necessary ProductVariant is created.

publish?: boolean

Only the Embedded Price updates will be published to staged and current projection.

Deprecated

staged?: boolean
tiers?: PriceTier[]

The tiered prices for this price.

validFrom?: string

Maps to Price.validFrom.

validUntil?: string

Maps to Price.validUntil.

value: TypedMoney

Maps to Price.value.