Get list OA

This endpoing is ideal for retriving the list of connected OA at ViHAT.

HTTP request

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

  • Content Type: application/json

  • Response Type: application/json

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

Paramter
Type
Required
Description

ApiKey

string

Your API key.

SecretKey

string

Your Secret key.


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "success",
    "ZOAList": [
        {
            "OAID": "745830328927467685",
            "OAName": "Hệ thống ESMS Marketing"
        },
        {
            "OAID": "4097311281936189049",
            "OAName": "SVoucher"
        }
    ]
}   

Valid request.

  • Body response:

Paramter
Type
Description

OAID

string

Zalo OA ID is the id at Zalo Official Account of the company or organization. The company need to login to the Zalo OA management page to get this value. Note: Pre-registration is required.

OAName

string

The name of OA according to the Id

Last updated