Send OTP/Customer care message
Sending a POST request on this endpoint allows to send SMS individually (1 request per SMS).
It is ideal to send single personalized messages for use-cases like notifications or alerts.
HTTP request
POST
https://rest.esms.vn/MainService.svc/json/SendMultipleMessage_V4_post_json/
Content Type: application/json
Response Type: application/json
Body request:
ApiKey
string
Your API Key.
Content
string
The content of message.
Phone
string
The phone number of receiver.
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.
IsUnicode
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.
RequestId
string
The identification value for the request to prevent the the request from duplicated.
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
campaignid
string
The campaign name of the request.
Response
Valid request.
Response body
CodeResult
string
Response code.
SMSID
string
The message id eSMS system.
ErrorMessage
string
The error message if the request is invalid.
The detail of error code can refer at Table of error codes .
Get the sample of code for programing languagues to use in Postman refer at Link of code samples.
Last updated