Send adveritising message
API dùng để gửi tin Quảng cáo đến khách hàng. Mỗi request tối thiểu 30 số để được duyệt tin và tối đa 5000 số.
Sending a POST request on this endpoint allows to send bulk advertising SMS (maximum 5000 receivers per request).
Personalized content is ideal for sending marketing campaigns or any mass personalized announcement.
HTTP request
POST
https://rest.esms.vn/MainService.svc/json/SendMultipleSMSBrandname_json/
Content Type: application/json
Response Type: application/json
Cấu trúc body của request:
ApiKey
string
Your API Key.
SecretKey
string
Your Secret Key.
Content
string
The personized or marketing content.
SmsType
string
Message type: 1: Advertising/marking message.
Brandname
string
The name of the sender is shown in the header of the customer's message. Pre-registration is required.
Phones
array
The phone number of receivers.
SendDate
string
Schedule the time when 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
CallbackUrl
string
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.
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