Send customer care message using POST X-Form

HTTP request

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

  • Content Type: application/x-www-form-urlencoded

  • Response Type: application/json

curl --location 'https://rest.esms.vn/MainService.svc/json/SendMultipleMessage_V4_post/' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'Phone={{Phone}}' \
--data-urlencode 'Content={{Content}}' \
--data-urlencode 'Apikey={{ApiKey}}' \
--data-urlencode 'SecretKey={{SecretKey}}' \
--data-urlencode 'SmsType=2' \
--data-urlencode 'Brandname={{Brandname}}'
  • Request body:

Parameters
Type
Required
Description

Phone

string

The phone number of receiver.

Content

string

The content of message.

ApiKey

string

Your API Key.

SecretKey

string

Your Secret Key.

SmsType

number

Message type: 2: Customer care message.

Brandname

string

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


  • Response:

{
    "CodeResult": "100",
    "CountRegenerate": 0,
    "SMSID": "d533459ee42b2b9525ba9eabf6a8156"
}

Valid request.

  • Response body:

Parameter
Type
Description

CodeResult

string

Response code.

SMSID

string

The message id eSMS system.

ErrorMessage

string

The error message if the request is invalid.

Last updated