Messages
Send a multi-product message
POST
/
v1
/
messages
/
multi-product
Send a multi-product message
curl --request POST \
--url https://api.wazapin.com/v1/messages/multi-product \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"catalog_id": "<string>",
"channel_id": "<string>",
"sections": [
{
"product_items": [
{
"product_retailer_id": "<string>"
}
],
"title": "<string>"
}
],
"to": "<string>",
"footer": "<string>",
"header": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
catalog_id: '<string>',
channel_id: '<string>',
sections: [{product_items: [{product_retailer_id: '<string>'}], title: '<string>'}],
to: '<string>',
footer: '<string>',
header: '<string>'
})
};
fetch('https://api.wazapin.com/v1/messages/multi-product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/messages/multi-product"
payload = {
"body": "<string>",
"catalog_id": "<string>",
"channel_id": "<string>",
"sections": [
{
"product_items": [{ "product_retailer_id": "<string>" }],
"title": "<string>"
}
],
"to": "<string>",
"footer": "<string>",
"header": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "<string>",
"message_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Body text
Minimum string length:
1Facebook catalog ID
Minimum string length:
1Channel ID
Minimum string length:
1Product sections
Show child attributes
Show child attributes
Recipient phone number
Minimum string length:
1Footer text
Header text
⌘I
Send a multi-product message
curl --request POST \
--url https://api.wazapin.com/v1/messages/multi-product \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"catalog_id": "<string>",
"channel_id": "<string>",
"sections": [
{
"product_items": [
{
"product_retailer_id": "<string>"
}
],
"title": "<string>"
}
],
"to": "<string>",
"footer": "<string>",
"header": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
catalog_id: '<string>',
channel_id: '<string>',
sections: [{product_items: [{product_retailer_id: '<string>'}], title: '<string>'}],
to: '<string>',
footer: '<string>',
header: '<string>'
})
};
fetch('https://api.wazapin.com/v1/messages/multi-product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/messages/multi-product"
payload = {
"body": "<string>",
"catalog_id": "<string>",
"channel_id": "<string>",
"sections": [
{
"product_items": [{ "product_retailer_id": "<string>" }],
"title": "<string>"
}
],
"to": "<string>",
"footer": "<string>",
"header": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "<string>",
"message_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}