Summary your customer care submit

This endpoint is ideal for getting the overview of your customer care 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

GET https://rest.esms.vn/MainService.svc/json/SummaryMultipleMessage_V4_get?Phone={{Phone}}&Content={{Content}}&ApiKey={{ApiKey}}&SecretKey={{SecretKey}}&SmsType=2&BrandName={{BrandName}}

  • Response Type: application/json

curl --location --globoff 'https://rest.esms.vn/MainService.svc/json/SummaryMultipleMessage_V4_get?Phone={{Phone}}&Content={{Content}}&ApiKey={{ApiKey}}&SecretKey={{SecretKey}}&SmsType=2&BrandName={{BrandName}}'
  • Request body:

Parameter
Type
Required
Description

ApiKey

string

Your API key.

SecretKey

string

Your Secret key.

Brandname

string

The name of the sender is shown in the header of the customer's message. Pre-registration is required.

SmsType

string

Message type: 2: Customer care message.

Phone

string

The phone number of receiver.

Content

string

The content of message.

IsUnicode

string

Message charset value (default is 0): 1: Unicode.

0: Non-Unicode.


  • Response:

{
    "CodeResult": "100",
    "ErrorMessage": "success",
    "TotalPrice": 850,
    "TotalReceiver": 1
}

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