Typescript SDK Type Docs
    Preparing search index...

    Interface ProductDraft

    Index

    Properties

    attributes?: Attribute[]

    Product Attributes according to the respective AttributeDefinition. Not supported by Product Projection Search.

    Categories assigned to the Product.

    categoryOrderHints?: CategoryOrderHints

    Numerical values to allow ordering of Products within specified Categories. If the referenced Categories are not also assigned in the categories field, an InvalidOperation error is returned.

    description?: LocalizedString

    Description of the Product.

    key?: string

    User-defined unique identifier for the Product.

    This field is optional for backwards compatibility reasons, but we strongly recommend setting it. Keys are mandatory for importing Products with the [Import API](/../api/import-export/overview) and the [Merchant Center](/../merchant-center/import-data).
    
    masterVariant?: ProductVariantDraft

    The Product Variant to be the Master Variant for the Product. Required if variants are provided also.

    metaDescription?: LocalizedString

    Description of the Product as used by search engines.

    metaKeywords?: LocalizedString

    Keywords that give additional information about the Product to search engines.

    metaTitle?: LocalizedString

    Title of the Product as used by search engines.

    Name of the Product.

    Specifies the type of prices used when looking up a price for the Product.

    The Product Type defining the Attributes for the Product. Cannot be changed later.

    publish?: boolean

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    searchKeywords?: SearchKeywords

    Used by Search Term Suggestions, but is also considered for a full text search in the Product Projection Search API.

    User-defined identifier used in a deep-link URL for the Product. It must be unique across a Project, but a Product can have the same slug in different Locales. It must match the pattern [a-zA-Z0-9_\\-]{2,256}.

    State to be assigned to the Product.

    The Tax Category to be assigned to the Product.

    variants?: ProductVariantDraft[]

    The additional Product Variants for the Product.