Get ZNS status information
This function is used to retrieve the state of the ZNS message.
Note: The speed limit for this API is 30 requests per second.
HTTP request
POST http://rest.esms.vn/MainService.svc/json/GetZaloMessageStatus
Content Type: application/json
Response Type: application/json
curl --location 'http://rest.esms.vn/MainService.svc/json/GetZaloMessageStatus' \
--header 'Content-Type: application/json' \
--data '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}",
"MessageId": "{{MessageId}}"
}'Request body:
ApiKey
string
Your API key.
SecretKey
string
Your Secret key.
OAID
string
Zalo OA ID is the ID of the business's Zalo Official Account. The business needs to log in to the Zalo OA management page to get this Zalo OA ID. Note: registration is required before use.
MessageId
string
The ID of the notification for which you need to retrieve ZNS status information (which is the Partnerids returned in the Zalo message callback information retrieval function)
Response:
Valid request.
Response body:
CodeResult
string
Response code.
ErrorMessage
string
The message error in case of invalid request.
Data
string
Status information for the ZNS notification.
Structure of each object's attributes in the data:
delivery_time
string
The time the user's device receives the ZNS notification.
message
string
Description of the notification state. The return values are: -1: The message does not exist 0: The message is pushed successfully to Zalo server but has not yet delivered to user’s phone 1: The message was delivered to the user's phone
status
int
Status of the ZNS notification.
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