logo
enes

Objects

Last update: 6 hours ago by Irais Aguirre

Request objects and fields for C-Commerce product messages (single product and multiple products).

Single product

General structure

NameDescriptionTypeRequirements
fromPhone number (with country code) the message is sent from.StringRequired
toPhone number (with country code) of the customer receiving the message. Plus signs (+), hyphens (-), parentheses ((,)), and spaces are allowed. You can also use the user's BSUID, for example, US.13491208655302741918.StringRequired
typeMessage type. Constant value: "interactive"StringRequired
singleProductMessageMessage structureObjectRequired

SingleProductMessage object

NameDescriptionTypeRequirements
typeMessage type. Constant value: "product".StringRequired
bodyMessage text.StringRequired
footerShort description of the product.StringRequired
actionShopping catalog.ObjectRequired

Action single product object

NameDescriptionTypeRequirements
catalogIdCatalog ID.StringRequired
productRetailerIdProduct ID.StringRequired


Multiple products

General structure

NameDescriptionTypeRequirements
fromPhone number (with country code) the message is sent from.StringRequired
toPhone number (with country code) of the customer receiving the message. Plus signs (+), hyphens (-), parentheses ((,)), and spaces are allowed. You can also use the user's BSUID, for example, US.13491208655302741918.StringRequired
typeMessage type. Constant value: "interactive"StringRequired
multiProductMessageMessage structureObjectRequired

MultiProductMessage object

NameDescriptionTypeRequirements
typeMessage type. Constant value: product_list.StringRequired
headerObject for the message header.ObjectRequired
bodyMessage text.StringRequired
footerShort description of the product.StringRequired
actionShopping catalog.ObjectRequired

Header object

NameDescriptionTypeRequirements
typeHeader type. Fixed value: text.StringRequired
textMessage header text.StringRequired

Action multiple products object

NameDescriptionTypeRequirements
catalogIdCatalog ID.StringRequired
sectionsList of sections with products. At least one productItem is required; body max 1024, footer and header.text max 60, section title max 24.List of objectsRequired

Section object

NameDescriptionTypeRequirements
titleSection title.StringRequired
productItemsList of product IDs.Object listRequired

ProductItem object

NameDescriptionTypeRequirements
productRetailerIdProduct ID.StringRequired
Previous
HTTP connection
Next
Examples