Registering the Zalo template
Last updated
Last updated
This endpoint is ideal for registering the Zalo template for OA.
POST
Content Type: application/json
Response Type: application/json
Request body:
ApiKey
string
Your API key.
SecretKey
string
Your Secret key.
Content
string
The content of template.
ImageURL
string
The image URL of OA Accept: .png (400x69) Note: The background color must be white or black.
CTA 1
string
First CTA URL.
CTA 2
string
Second CTA URL.
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.
SmsType
string
24: priority template 25: normal template
CallbackUrl
string
The webhook URL that will be received the result of the registration process. 0: Failed 1: eSMS is received the submit 2: The template is registered successfully
Response:
Valid request.
Response body:
CodeResult
string
Response code
ErrorMessage
string
The message error in case of invalid request.
ServicepreviewId
string
ID of template
Thông tin chi tiết mã lỗi xem ở bảng: .
Lấy code mẫu các ngôn ngữ trên Postman: .