# Send WhatsApp Message for WhatsApp Business API Para enviar un mensaje de WhatsApp cuando se tiene una conexión oficial al API de WhatsApp, sólo se requieren los parámetros phone_number, internal_id y template_params; los demás son opcionales. Si se tiene una conexión vía QR, por favor revisa la sección de envío de mensajes vía QR. Endpoint: POST /retailers/api/v1/whatsapp/send_notification_by_id Version: 1.0.0 Security: api-key ## Request fields (application/json): - `id` (string) Example: "false_5219997466670@c.us_3A581ECA7FABCA92B2FE" - `status` (string) Example: "read" - `direction` (string) Example: "inbound" - `channel` (string) Example: "whatsapp" - `message_type` (string) Example: "conversation" - `message_identifier` (string) Example: "msg_123456789" - `created_time` (string) Example: "2023-06-13T19:59:04.000Z" - `replied_message` (string) Example: "Hello, how can I help you?" - `filename` (string) Example: "image123.jpg" - `content_type` (string) Example: "media" - `content_text` (string) Example: "This is a sample text message." - `content_media_url` (string) Example: "https://example.com/media/image123.jpg" - `content_media_caption` (string) Example: "Check out this image!" - `content_media_type` (string) Example: "sticker" - `content_location_longitude` (string) Example: "-99.1332" - `content_location_latitude` (string) Example: "19.4326" - `content_location_label` (string) Example: "Zócalo CDMX" - `content_location_address` (string) Example: "Plaza de la Constitución, Centro, Ciudad de México" - `account_uid` (string) Example: "false_5219997466670@c.us_3A581ECA7FABCA92B2FE" - `contacts_information` (string) Example: "[{\"name\": \"John Doe\", \"phone\": \"+5219997466670\"}]" - `error_code` (string) Example: "ERR_001" - `error_message` (string) Example: "Invalid media type" ## Response 200 fields (application/json): - `id` (string) Example: "false_5219997466670@c.us_3A581ECA7FABCA92B2FE" - `status` (string) Example: "read" - `direction` (string) Example: "inbound" - `channel` (string) Example: "whatsapp" - `message_type` (string) Example: "conversation" - `message_identifier` (string) Example: "msg_123456789" - `created_time` (string) Example: "2023-06-13T19:59:04.000Z" - `replied_message` (string) Example: "Hello, how can I help you?" - `filename` (string) Example: "image123.jpg" - `content_type` (string) Example: "media" - `content_text` (string) Example: "This is a sample text message." - `content_media_url` (string) Example: "https://example.com/media/image123.jpg" - `content_media_caption` (string) Example: "Check out this image!" - `content_media_type` (string) Example: "sticker" - `content_location_longitude` (string) Example: "-99.1332" - `content_location_latitude` (string) Example: "19.4326" - `content_location_label` (string) Example: "Zócalo CDMX" - `content_location_address` (string) Example: "Plaza de la Constitución, Centro, Ciudad de México" - `account_uid` (string) Example: "false_5219997466670@c.us_3A581ECA7FABCA92B2FE" - `contacts_information` (string) Example: "[{\"name\": \"John Doe\", \"phone\": \"+5219997466670\"}]" - `error_code` (string) Example: "ERR_001" - `error_message` (string) Example: "Invalid media type" ## Response 400 fields