For the complete documentation index, see llms.txt. This page is also available as Markdown.

Registering the Zalo template

This endpoint is ideal for registering the Zalo template for OA.

HTTP request

POST https://rest.esms.vn/MainService.svc/json/RegisZNSTemplateJson/

  • Content Type: application/json

  • Response Type: application/json

curl --location 'https://rest.esms.vn/MainService.svc/json/RegisZNSTemplateJson/' \
--header 'Content-Type: application/json' \
--data '{
    "ApiKey":"{{ApiKey}}",
    "SecretKey":"{{SecretKey}}",
    "Content":"{{Content}}",
    "ImageUrl":"{{ImageUrl}}",
    "CTA1":"{{CTA1}}",
    "CTA2":"{{CTA2}}",
    "OAID":"{{OAID}}",
    "SmsType":"{{SmsType}}",
    "CallbackUrl":"{{CallbackUrl}}"
}'
  • Request body:

Paramter
Type
Require
Description

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:

Paramter
Type
Description

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: Mã lỗi .

  • Lấy code mẫu các ngôn ngữ trên Postman: Link code mẫu.

Last updated