Ir al contenido principal
Notificaciones de WhatsApp

Notificaciones de WhatsApp

Actualizado hace más de 3 meses

ENVÍA NOTIFICACIONESS DE WHASTAPP

Envía mensajes de WhatsApp automáticamente.


Envía un mensaje de WhatsApp

Headers

Api-Key: Your API KEY

Body

{
"phone_number": "+593999999999",
"internal_id": "997dd550-c8d8-4bf7-ad98-a5ac4844a1ed",
"template_params": [
"test 1",
"test 2",
"test 3"
]
}

Response 200

Json

{
"message": "Ok",
"info": {
"channel": "whatsapp",
"content": {
"text": "Your OTP for test 1 is test 2. This is valid for test 3."
},
"direction": "outbound",
"status": "submitted",
"destination": "+593999999999",
"country": "EC",
"created_time": "2022-09-23T16:34:16.768-04:00",
"error": null
}
}

Envía un mensaje de WhatsApp con Imagen o PDF

Headers
Json

Api-Key: Your API KEY

Body
Json

{
"phone_number": "+593999999999",
"internal_id": "997dd550-c8d8-4bf7-ad98-a5ac4844a1ed",
"template_params": [
"test 1",
"test 2",
"test 3"
],
"media_url": "https://mercately.com/example.png"
}

Response 200


Json

{
"message": "Ok",
"info": {
"channel": "whatsapp",
"content": {
"text": "Your OTP for test 1 is test 2. This is valid for test 3.",
"media_url": "https://mercately.com/example.png"
},
"direction": "outbound",
"status": "submitted",
"destination": "+593999999999",
"country": "EC",
"created_time": "2022-09-23T16:34:16.933-04:00",
"error": null
}
}


Para enviar un mensaje y realizar otras acciones puedes enviar en el body de tu POST lo siguiente:


Para enviar un mensaje y asignar a un agente:

Json

{
"phone_number": "+593999999999",
"internal_id": "997dd550-c8d8-4bf7-ad98-a5ac4844a1ed",
"template_params": [
"test 1",
"test 2",
"test 3"
],
"agent_id": 980
}

Para enviar un mensaje y asignar tags:
Json

{
"phone_number": "+593999999999",
"internal_id": "997dd550-c8d8-4bf7-ad98-a5ac4844a1ed",
"template_params": [
"test 1",
"test 2",
"test 3"
],
"agent_id": 982,
"tags": [
{
"name": "at",
"value": true
}
]
}

Envía un mensaje y actualiza la información de tu cliente:

Json

{
"phone_number": "+593999999999",
"internal_id": "997dd550-c8d8-4bf7-ad98-a5ac4844a1ed",
"template_params": [
"test 1",
"test 2",
"test 3"
],
"first_name": "First Name",
"last_name": "Last Name",
"email": "[email protected]",
"address": "Customer address",
"city": "Customer city",
"state": "Customer state",
"zip_code": "12345",
"notes": "Notes related to the customer"
}

Envía un mensaje y guarda campos personalizados

Json

{
"phone_number": "+593999999999",
"internal_id": "997dd550-c8d8-4bf7-ad98-a5ac4844a1ed",
"template_params": [
"test 1",
"test 2",
"test 3"
],
"custom_fields": [
{
"identifier": "correo_electronico",
"value": "[email protected]"
},
{
"identifier": "edad",
"value": "30"
},
{
"identifier": "estatura",
"value": "70.42"
},
{
"identifier": "cuenta_activa",
"value": "true"
},
{
"identifier": "fecha_de_nacimiento",
"value": "30/06/2022"
},
{
"identifier": "clasificacion",
"value": "primer_grupo"
}
]
}

¿Ha quedado contestada tu pregunta?