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

curl --location 'https://rest.esms.vn/MainService.svc/json/GetSmsSentData_V2' \
--header 'Content-Type: application/json' \
--data '{
    "ApiKey":"{{ApiKey}}",
    "SecretKey":"{{SecretKey}}",
    "SmsType":"{{SmsType}}",
    "From": "{{DateFrom}}",
    "To":"{{DateTo}}",
    "Page":{{Page}},
    "PageSize":{{PageSize}}
}'
  • Body request:

Parameter
Type
Required
Description

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:

{
    "CodeResult": "100",
    "CountTotal": 2
    "SentData": [
        {
            "Campaign": "Chiến dịch 02/10/2023",
            "Content": "Cam on quy khach da su dung dich vu cua chung toi. Chuc quy khach mot ngay tot lanh!",
            "Phone": "0901888484",
            "ReferenceId": "35781d6c25524e40a035c26663189549",
            "SellPrice": 345.0,
            "SendResult": 0,
            "SendStatus:5,
            "SentTime": "/Date(1705484048995+0700)/",
            "SmsId": 29028845,
            "SmsType": 2
        },
        {
            "Campaign": "Chiến dịch 02/10/2023",
            "Content": "Cam on quy khach da su dung dich vu cua chung toi. Chuc quy khach mot ngay tot lanh!",
            "Phone": "0901888484",
            "ReferenceId": "0aac72e0-ba9b-4348-8530-d18d105778db18",
            "SellPrice": 790.0000,
            "SendResult": 1,
            "SendStatus:5,
            "SentTime": "/Date(1705484048995+0700)/",
            "SmsId": 29028845,
            "SmsType": 2
        }
    ]

Valid request.

  • Response body:

Parameter
Type
Description

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.

Last updated