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

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 'RequestId={{RequestId}}' \
--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:

Valid request.

Invalid credential.

Invalid brandname.

Kiểm tra lại thông tin kết nối hoặc liên hệ bộ phận chăm sóc khách hàng để được hỗ trợ khi gặp lỗi này.

  • 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

Was this helpful?