Sends a text message to a whatsapp customer.
HTTP POST /livechat/:domain/sendExternalMessageToCtlivesocial
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | NO | STRING | Unique domain identifier |
Authorization: BASIC AUTH
Request Body:
Type: JSON
Name | Mandatory | Type | Description |
---|---|---|---|
customerPhoneNumber | YES | STRING | customer phone number |
servicePhoneNumber | YES | STRING | whatsapp business number |
text | YES | STRING | Text message to send in chat |
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN | If true, the service response was performed correctly |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/default/sendExternalMessageToCtlivesocial
Request body
{ "customerPhoneNumber": "393403609169", "servicePhoneNumber": "3902124122690", "text":"Messaggio da external ws" }
Response
{ "result": true, "error": null }