ποΈ Send a Catalog Message
Send a catalog message to the specified phone number.
await whatsapp.sendCatalogMessage(
phoneNumber: 'RECIPIENT_NUMBER',
productRetailerId: 'product_retailer_id',
headerText: 'Check out this product!',
bodyText: 'Amazing product at great price.',
footerText: 'Subscribe',
);
param | type | required | description |
---|---|---|---|
phoneNumber | String | yes | Phone number with country code. |
productRetailerId | String | yes | Unique product retailer ID from your catalog. |
headerText | String | no | Header text displayed above the product card. |
bodyText | String | no | Body text displayed below the product details. |
footerText | String | no | Footer text displayed below the product card. |
Example with multiple productsβ
If you want to showcase more than one product, you can include a catalog message with a collection of items.
await whatsapp.sendCatalogMessage(
phoneNumber: 'RECIPIENT_NUMBER',
productRetailerId: 'product_123',
headerText: 'π₯ Hot Deals!',
bodyText: 'Browse our top products today!',
footerText:'Follow us',
);
await whatsapp.sendCatalogMessage(
phoneNumber: 'RECIPIENT_NUMBER',
productRetailerId: 'product_456',
headerText: 'β¨ Best Seller!',
bodyText: 'Donβt miss out on this one!',
footerText:'Follow us',
);