Purchase OA package

This endpoint is used for purchase the OA package.

HTTP request

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

  • Content Type: application/json

  • Response Type: application/json

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

Paramter
Type
Required
Description

ApiKey

string

Your API Key.

SecretKey

string

Your Secret Key.

Dateactive

string

The active date of OA. Format: yyyy-MM-dd

Duaration

string

The duration of OA package

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.

Package

string

List of OA packages. - 1: Trial - 2: Advanced - 3: Premium


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "ViHAT is censoring trademark ownership",
    "ServicePreviewId": 52330
}

Valid request.

  • Response body:

Parameter
Type
Description

CodeResult

string

Response code.

ErrorMessage

string

The message error in case of invalid request.

ServicepreviewId

string

eSMS registration ID of OA.

Last updated