Summary Zalo message

HTTP request

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

  • Content Type: application/json

  • Response Type: application/json

curl --location 'https://rest.esms.vn/MainService.svc/json/SummaryZaloMessage_V4_post_json/' \
--header 'Content-Type: application/json' \
--data '{
    "ApiKey": "{{ApiKey}}",
    "SecretKey": "{{SecretKey}}",
    "Phone": "{{Phone}}",
    "Params": [
        "{{value1}}",
        "{{value2}}",
        "{{value3}}"
    ],
    "TempID": "{{TempID}}",
    "OAID": "{{OAID}}"
}'
  • Request body:

Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả

ApiKey

string

Your API Key.

SecretKey

string

Your Secret Key.

Phone

string

The phone number of receivers.

Params

string

The values that need to pass according to the template variables. *Notes:

  1. The values must be placed in the correct order with the registered template.

  2. If the parameter is duplicated, just place one.

TempID

string

Template của 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.

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.


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "success",
    "TotalPrice": 660.0000,
    "TotalReceiver": 1
}

Valid request.

  • Response body:

Paramter
Type
Description

CodeResult

string

Response code.

ErrorMessage

string

The error message if the request is invalid.

TotalPrice

string

The cost of submit.

TotalReceiver

string

Total valid receivers in submit.

Last updated