Get the message status
This endpoint is ideal for retriving the SMS data in a time range.
HTTP request
POST
https://rest.esms.vn/MainService.svc/json/GetSmsSentData_V2
Content Type: application/json
Response Type: application/json
Body request:
ApiKey
string
Your API Key.
SecretKey
string
Your Secret Key.
From
string
Start date Format: yyyy-MM-dd HH:mm:ss
To
string
End date Format: yyyy-MM-dd HH:mm:ss
Page
string
The start page.
PageSize
string
The number of SMS per page. Max: 500 SMS
SmsType
string
Type of SMS 1: Advertising SMS. 2: Customer care SMS. 8: Fixed number. 23: Viber OTT. 24: Priority ZNS. 25: Normally ZNS. 26: Zalo Follower.
Response:
Valid request.
Response body:
CodeResult
string
Response code.
CountTotal
string
The total SMS in this period.
Campaign
string
Campaign name.
Content
string
The message content
Phone
string
The phone number of receiver.
RefercenceId
string
The id that returned on sending function.
Sellprice
string
Unit price of message.
SendResult
string
State of message.
1: Success 0: Failed 2: Not acknowdege
SendStatus
string
0: Composing 1: On review. 2: Enqueue. 4: Rejected. 5: SENT. 7: SENT (waiting for last result)
SentTime
string
The time that message is sent out.
SmsId
string
ID of message in portal.
SmsType
string
Type of SMS 1: Advertising SMS. 2: Customer care SMS. 8: Fixed number. 23: Viber OTT. 24: Priority ZNS. 25: Normally ZNS. 26: Zalo Follower.
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