Question

Failure code 4126


Getting the below error when trying to send outbound messages. 

request body: 
 

{

"from": {

"phone_number": "+919108654995"

},

"provider": "whatsapp",

"to": [

{

"phone_number": "+917087156255"

}

],

"data": {

"message_template": {

"storage": "none",

"template_name": "trips_created_but_not_updated_v2",

"namespace": "34066e9f_0d94_44db_8e17_f87b0306f100",

"language": {

"policy": "deterministic",

"code": "en"

},

"rich_template_data": {

"header": {

"type": "image",

"media_url": "https://s3.ap-south-1.amazonaws.com/docs.transportclub.in/Monish%2Fimages%2F2e7f11cc2d9a40b986adf45d08f74ba5.png"

},

"body": {

"params": [

{

"data": "https://app.transportbook.in/sim-tracking-vehicles"

},

{

"data": "abcd"

},

{

"data": "potr"

}

]

}

}

}

}

}



response: 

 

{

"outbound_messages": [

{

"message_id": "f914149c-23d5-4c09-90b7-294dd99e150b",

"from": {

"phone_number": "+919108654995"

},

"provider": "whatsapp",

"to": {

"phone_number": "+917087156255"

},

"data": {

"message_template": {

"storage": "none",

"template_name": "trips_created_but_not_updated_v2",

"namespace": "34066e9f_0d94_44db_8e17_f87b0306f100",

"language": {

"policy": "deterministic",

"code": "en"

},

"rich_template_data": {

"header": {

"type": "image",

"media_url": "https://s3.ap-south-1.amazonaws.com/docs.transportclub.in/Monish%2Fimages%2F2e7f11cc2d9a40b986adf45d08f74ba5.png"

},

"body": {

"params": [

{

"data": "https://app.transportbook.in/sim-tracking-vehicles"

},

{

"data": "abcd"

},

{

"data": "potr"

}

]

}

}

}

},

"request_id": "3ca3f204-2864-47d3-98e5-2763e812fcef",

"status": "FAILED",

"created_on": 1652968231037,

"failure_code": "4126",

"failure_reason": "1009: Parameter value is not valid-This template only supports parameters in the body component"

}

]

}



 


0 replies

Join the Community or User Group to Participate in this Discussion

Reply