Send fixed number with cheap price

This endpoint is used to send the individually message to the recipient using the fixed number.

It is ideal to send the OTP (One-Time-Password) for use-case like verficiation for example.

HTTP request

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

  • Content Type: application/json

  • Response Type: application/json

curl --location 'https://rest.esms.vn/MainService.svc/json/SendMultipleMessage_V4_post_json/' \
--header 'Content-Type: application/json' \
--data '{
   "ApiKey": "{{ApiKey}}",
   "Content": "{{Content}}",
   "Phone": "{{Phone}}",
   "SecretKey": "{{SecretKey}}",
   "SmsType": "8",
   "IsUnicode": "{{IsUnicode}}",
   "Sandbox": "{{Sandbox}}",
   "campaignid": "{{campaignid}}",
   "RequestId": "{{RequestId}}",
   "CallbackUrl": "{{CallbackUrl}}",
   "SendDate":"{{SendDate}}"
}'
  • Request body

Paramter
Type
Required
Description

ApiKey

string

Your API Key.

Content

string

The message content.

Phone

string

The phone number of receivers.

SecretKey

string

Your Secret Key.

SmsType

string

Message type 8: Fixed number

Unicode

string

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

0: Non-Unicode.

Sandbox

string

Sandbox option value (default is 0): 1: For testing purpose to verify the validation of the request. Message is not charged and sent to the receiver. 0: Message will be processed to the receiver properly.

campaignid

string

The campaign name of the request.

RequestId

string

The identification value for the request to prevent the the request from duplicated.

CallbackUrl

string

The webhook URL that will receive the status of message after it processed to the operator. It is used for determine whether the SMS is succcessfully delivered to the receiver or failed. See the sample request at here. More detail at here.

SendDate

string

Scheduler the message to the receiver. If it's empty, the message will be instantly sent to the receiver. Format: yyyy-mm-dd hh:MM:ss


  • Response:

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

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