For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get balance

This endpoint is used to get your balance of the account.

HTTP request

POST http://rest.esms.vn/MainService.svc/json/GetBalance_json

  • Content Type: application/json

  • Response Type: application/json

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

Parameter
Type
Require
Description

ApiKey

string

Your API Key.

SecretKey

string

Your Secret Key.


  • Response:

{
    "Balance": 36693,
    "CodeResponse": "100",
    "UserID": 9999
}

Valid request.

  • Response body:

Parameter
Type
Description

Balance

string

Your account balance.

CodeResponse

string

Response code.

UserID

string

The user' id at eSMS.

Last updated