Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Do I: Send a Catalog Message but the whole catalog #982

Open
JaimeCasillasBluu opened this issue Jan 28, 2025 · 4 comments
Open

How Do I: Send a Catalog Message but the whole catalog #982

JaimeCasillasBluu opened this issue Jan 28, 2025 · 4 comments
Assignees
Labels
question Question about how to use the SDK

Comments

@JaimeCasillasBluu
Copy link

How do I

Good evening, I hope you are well I have a question. How can I send a message but that is the entire catalog without having to specify item by item? I got this one from the vonage documentation and it works fine, but I want to send the whole catalog.

API/Product

Messages

Code Sample

curl --location 'https://api.nexmo.com/v1/messages'
--header 'Authorization: Bearer YOUR_JWT_TOKEN'
--header 'Content-Type: application/json'
--data '{
"from": "YOUR_WHATSAPP_NUMBER",
"to": "RECIPIENT_WHATSAPP_NUMBER",
"channel": "whatsapp",
"message_type": "custom",
"custom": {
"type": "interactive",
"interactive": {
"type": "product_list",
"header": {
"type": "text",
"text": "Catálogo de productos"
},
"body": {
"text": "New products from Michaels Grocery Store"
},
"footer": {
"text": "Thanks for shopping with us."
},
"action": {
"catalog_id": "YOUR_CATALOG_ID",
"sections": [
{
"title": "Pizza Choices",
"product_items": [
{
"product_retailer_id": "fb5pdbdoo1"
},
{
"product_retailer_id": "0kimt79l8m"
},
{
"product_retailer_id": "bwc7a7mh5i"
}
]
}
]
}
}
}
}'

@JaimeCasillasBluu JaimeCasillasBluu added the question Question about how to use the SDK label Jan 28, 2025
@superchilled
Copy link
Contributor

Hi @JaimeCasillasBluu. Although Catalog Messages are supported by the Meta API, as I understand it the WhatsApp channel of the Vonage Messages API only officially supports Single Product Messages and Multi-product Messages. I will look into it further however, and follow up with the product manager for that particular channel. I'll post back here once I know more.

@superchilled
Copy link
Contributor

Hi @JaimeCasillasBluu spologies for the delay in getting back to you on this, I was awaiting a response from the product manager for WhatsApp. So I've heard back from them and technically you should be able to send catalog messages using the custom message type. I still need to figure out the correct JSON structure to do this, but will post back here once I've managed to get it working successfully.

@JaimeCasillasBluu
Copy link
Author

Ok, yes thank you very much.

I also have another doubt, is it possible to assign an external account to 2 applications at the same time?

@superchilled
Copy link
Contributor

@JaimeCasillasBluu you can only link an external account to one Vonage Application at a time. If an external account is already linked to an application, you have to unlink it in order to link it to a different one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about how to use the SDK
Projects
None yet
Development

No branches or pull requests

5 participants