Get SMS by SMSID

This endpoint is used for retriving the message status that sent to ViHAT in last 7 days.

HTTP request

GET https://rest.esms.vn/MainService.svc/json/GetSendStatus?RefId={{SMSID}}&ApiKey={{ApiKey}}&SecretKey={{SecretKey}}

  • Response Type: application/json

curl --location --globoff 'http://rest.esms.vn/MainService.svc/json/GetSendStatus?RefId={{SMSID}}&ApiKey={{ApiKey}}&SecretKey={{SecretKey}}'
  • Request body:

Parameter
Type
Required
Description

RefId

string

The message id returned by ViHAT

ApiKey

string

Your API key.

SecretKey

string

Your Secret key.


  • Response:

{
    "CodeResponse": "100",
    "SMSID": "434a124c-7818-4f45-bdf2-7f7b07fff210100",
    "SendFailed": 0,
    "SendStatus": 5,
    "SendSuccess": 1,
    "TotalPrice": 850.0000,
    "TotalReceiver": 1,
    "TotalSent": 1
}

Valid request.

  • Response body:

Paramter
Type
Description

CodeResponse

string

Response code.

SMSID

string

The message id returned by ViHAT

SendFailed

string

Total of failed messages.

SendStatus

string

Message status 1: In review. 2: Waiting. 5: Send to operator.

SendSuccess

string

Total of success messages.

TotalPrice

string

The cost of submit.

TotalReceiver

string

Total phone numbers.

TotalSent

string

Total of phone numbers that sent to operator.

Last updated