Action API object

Hierarchy

  • ActionProduct

Implements

Constructors

  • Builds a Multi or Single Product component for an Interactive message

    Parameters

    • catalog_id: string

      The catalog id

    • Rest ...products: [Product] | AtLeastOne<ProductSection>

      The products to add to the catalog. It can be a single Product object, or a list of ProductSections.

    Returns ActionProduct

    Throws

    If products is a product list and more than 10 sections are provided

    Throws

    If products is a product list with more than 1 section and at least one section is missing a title

Properties

catalog_id: string

The id of the catalog from where to get the products

product_retailer_id?: string

The product to be added to the catalog

sections?: ProductSection[]

The section to be added to the catalog

Generated using TypeDoc