Summary your advertising submit

This endpoint is ideal for getting the overview of your advertising submit.

The response will include the total cost of the submit as well as showing the invalid parameters that will help you re-compose the submit before sending to ViHAT.

HTTP request

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

  • Content Type: text/plain

  • Response Type: application/json

curl --location 'https://rest.esms.vn/MainService.svc/json/SummaryMultipleSMSBrandname/' \
--header 'Content-Type: text/plain' \
--data '<RQST>
<APIKEY>{{APIKEY}}</APIKEY>
<SECRETKEY>{{SECRETKEY}}</SECRETKEY>
<CONTENT>{{CONTENT}}</CONTENT>
<SMSTYPE>1</SMSTYPE>
<BRANDNAME>{{BRANDNAME}}</BRANDNAME>
<CONTACTS>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
</CONTACTS>
</RQST>'
  • Request body:

Paramter
Type
Required
Description

APIKEY

string

Your API Key.

SECRETKEY

string

Your Secret Key.

CONTENT

string

The content of message.

SMSTYPE

string

Message type: 1: Advertising.

BRANDNAME

string

Advertising brandname.

PHONE

string

The phone number.


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "success",
    "TotalPrice": 1691300.0000,
    "TotalReceiver": 2997
}

Valid request.

  • Response body:

Paramter
Type
Description

CodeResult

string

Response code.

ErrorMessage

string

The error message if the request is invalid.

TotalPrice

string

The cost of submit.

TotalReceiver

string

Total valid receivers in submit.

Last updated