Get rating information of Zalo users

HTTP request

POST https://rest.esms.vn/MainService.svc/json/ZNS/GetRating/

  • Content Type: application/json

  • Response Type: application/json

curl --location 'https://rest.esms.vn/MainService.svc/json/ZNS/GetRating/' \
--header 'Content-Type: application/json' \
--data '{
    "ApiKey": "{{ApiKey}}",
    "SecretKey": "{{SecretKey}}",
    "OAID": "{{OAID}}",
    "TemplateID": "{{TemplateID}}",
    "FromTime": "{{FromTime}}",
    "ToTime": "{{ToTime}}",
    "Offset":"{{Offset}}",
    "Limit":"{{Limit}}"
}'
  • Request body:

Paramter
Type
Required
Description

ApiKey

string

Your API Key.

SecretKey

string

Your Secret Key.

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.

TemplateID

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.

FromTime

string

The start time of rating

ToTime

string

The end time of rating

Offset

string

The start of element index.

Limit

string

Max elements allowed to get per call.


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "success",
    "Data": [
        {
            "feedbacks": [
                "Nhân viên tư vấn nhiệt tình, thái độ vui vẻ, dễ thương",
                "Chính sách hỗ trợ rõ ràng, đầy đủ và dễ hiểu",
                "Chất lượng sản phẩm rất tốt",
                "Giao hàng nhanh",
                "Dịch vụ chăm sóc rất tốt"
            ],
            "msgId": "5dcf84fe1fd8bd85e4ca",
            "note": "",
            "rate": 5,
            "submitDate": "1659750276218",
            "trackingId": ""
        }
    ],
    "Total": 1
}    

Valid request.

  • Response body:

Paramter
Type
Description

feedbacks

string

Customer comment section

msgId

string

Message id of Zalo

note

string

Customer note

rate

string

Number of rating star.

submitDate

string

submitDate: time of the rating when the customer submit the rating. The value of submitDate is in the range of from_time to to_time Note: the value is in timestamp (millisecond).

trackingId

string

The tracking id that client send to ViHAT.

Total

string

Number of rating.

Last updated