Check the OA quality

HTTP request

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

  • Content Type: application/json

  • Response Type: application/json

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

Parameter
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.


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "success",
    "Oa7dayQuality": "HIGH",
    "OaCurrentQuality": "MEDIUM"
}

Valid request.

  • Response body:

Parameter
Type
Description

Oa7dayQuality

string

The quality of ZNS message in last 7 days of OA. The values is returned as following

  • HIGH - Good quality.

  • MEDIUM - Medium quality.

  • LOW - Bad quality.

  • UNDEFINED - Not acknownledge (in case of no ZNS is sent)

OaCurrentQuality

string

The quality of ZNS in last 48 hours of OA. The values are returned as following

  • HIGH - Good quality.

  • MEDIUM - Medium quality.

  • LOW - Bad quality.

  • UNDEFINED - Not acknownledge (in case of no ZNS is sent)

Last updated