Send personized message via Zalo
Last updated
Last updated
This endpoint is used for sending SMS by batch (1 request for multiple SMS) via Zalo with shared or personized content/properties.
It is ideal to send any kind of massive personalized announcement.
POST
Content Type: application/json
Response Type: application/json
Request body
ApiKey
string
Your API Key.
SecretKey
string
Your Secret Key.
TempID
string
The ID of template for the OA that is registered and provided by eSMS at Zalo to partner. Each template will have a specified structure of body.
Data
Array
An array of objects containing information about each message you want to send. Note: The array has a maximum size of 500 elements.
Data: Phone
string
The phone number of receivers.
Data: RequestId
string
Partner Message ID, used to check whether this ID has been previously received by the esms system.
Ex: RequestId=123456
.
Data: Params
string
The values that need to pass according to the template variables.
Giá trị cần truyền cho các biến trong Template
*Note:
The values must be placed in the correct order with the registered template.
If the parameter is duplicated, just place one.
SendDate
string
Scheduler the message to the receiver. If it's empty, the message will be instantly sent to the receiver. Format: yyyy-mm-dd hh:MM:ss
OAID
string
Zalo OA Id is the Zalo Official Account Id of the organization. It can be obtained by accessing to the Zalo administrator page.
Note: Pre-registration is required.
CallbackUrl
string
Response:
Valid request.
Response body
CodeResult
string
Response code
Message
string
The error message if the request is invalid.
TotalSuccess
string
Number of successfully requests.
detail : CodeResult
string
The detail response code
detail : Phone
string
Phone number of receiver
detail : SMSID
string
The message id corresponding to the phone number.
Note: This API does not allow sending except for zns free wallet whether the account is enabled or not, zns free news will be reconciled at the end of the month.
The webhook URL that will receive the status of message after it processed to the operator. It is used for determine whether the SMS is succcessfully delivered to the receiver or failed. See the sample request at . More details at .
The detail of error code can refer at .
Get the sample of code for programing languagues to use in Postman refer at .