eTelecom docs
English
English
  • INSTRUCTIONS FOR USE
    • Administration page for cs.etelecom
    • Google Chrome Extension
    • App eTelecom
  • API INTEGRATION
    • Shop
      • Account
      • Usage
    • Partner
      • Account
      • Usage
    • VPBX
      • VoIP SDK
        • Android
        • iOS
        • Web
        • Flutter
      • PBX REST APIs
        • Partner Get Tenant List
        • Partner Add Hotline
        • Partner Get Hotline List
        • Partner Activate Tenant
        • Partner Add Hotline To Tenant
        • Partner Removed Hotline From Tenant
        • Partner Remove Hotline
        • Create Tenant
        • Get Tenant information
        • Get Driver Config
        • Get hotline list
        • Create Account User
        • Get List User
        • Create extension
        • Get extension information
        • Get extension list
        • Assign extension to user
        • Change hotline for extension
        • Remove User Of Extension
        • Get call history
    • Zalo Cloud
      • Instructions for connecting Zalo Cloud
      • Zalo Cloud API
        • Create OA authorization link
        • Connect OA
        • Get refresh token
        • Get OA list
        • Get OA information
        • Update Webhook for OA
        • Get list of users
        • Send Text Consulting
        • Send Consulting message according to user information request form
        • Send advice message with sticker
        • Send message Consulting with attached photo
        • Send message Consulting attached file
        • Send transaction message
        • Upload file
        • Send request for calling permission
        • Check if the customer has granted calling permission
        • Get list of requests for calling permission
        • Create a news template
        • Get sample details
        • Get list of news samples
        • Journey Token Creation
        • Get Journey Token Details
        • Get Journey Token List
        • Get message list
        • Get message details
        • Send ZNS
        • Send ZNS with Journey Token
  • SMS BRANDNAME
    • User manual
    • SMS API
      • Send SMS
      • Get message status
      • Get sample details
Powered by GitBook
On this page
  1. API INTEGRATION
  2. Zalo Cloud
  3. Zalo Cloud API

Get message details

PreviousGet message listNextSend ZNS

Last updated 5 months ago

Note:

  • For APIs used for Shop, the API key is: . The base_url information of the .

  • For APIs used for Partner, the API key is: . The base_url information of the .

Request:

curl --location '$BASE_URL.Zalo/GetMessage' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "oa_id": "<int64>",
  "msg_id": "<string>"
}'

Response

{
  "campaign_id": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "delivery_status": "unknown",
  "delivery_time": "2019-08-24T14:15:22Z",
  "error_code": 0,
  "error_message": "string",
  "fee_main": 0,
  "fee_token": 0,
  "feedback": [
    "string"
  ],
  "id": "string",
  "is_charged": true,
  "journey_id": "string",
  "msg_id": "string",
  "note": "string",
  "oa_id": "string",
  "phone": "string",
  "rate": 0,
  "sent_time": "2019-08-24T14:15:22Z",
  "shop_id": "string",
  "status": "Z",
  "submit_time": "2019-08-24T14:15:22Z",
  "template_data": {
    "property1": "string",
    "property2": "string"
  },
  "template_id": 0,
  "timeout": 0,
  "tracking_id": "string",
  "type": "unknown",
  "updated_at": "2019-08-24T14:15:22Z",
  "user_id": "string"
}

Request body structure

Parameters
Data type
Describe

id

int64

OA ID

msg_id

string

Message ID

Return data attribute structure

Parameters
Data type
Describe

id

int64

Message ID on eTelecom system

shop_id

int64

Store ID on eTelecom system

user_id

int64

Sender ID on eTelecom system

campaign_id

int64

Campaign ID

delivery_status

string

Unkown: Unknown

Received: Received

delivery_time

string<date-time>

Time the user's device receives the ZNS notification

error_code

int

Error code

error_message

string

Error message

fee_main

int

Main fee

fee_token

int

Token Creation Fee

is_charged

boolean

True: ZNS News is charged

False: ZNS news is free of charge

journey_id

string

Journey ID

msg_id

string

ZNS message ID

type

string

template: ZNS usually

journey: ZNS journey

status

string

Status

Z: Newly created

P: Enable

N: Disable

rate

integer

Number of stars rated by customers

note

string

Additional customer notes

feedback

array

Customer reviews section

submit_time

string<date-time>

When customers submit reviews

template_data

object

Message parameters

phone

string

Recipient phone number

sent_time

string<date-time>

ZNS notification sending time

template_id

integer

ID of the message

timeout

integer

Maximum time required by the system to process the request

tracking_id

string

Your API call tracking number, defined by you. You can use tracking_id for reconciliation without depending on the message_id provided by eTelecom.

updated_at

string<date-time>

Update date

created_at

string<date-time>

Date created

<api_key>
Shop
<shop_key>
Partner

GetMessage

post
Body
msg_idstringOptional
oa_idstring ยท int64Optional
Responses
200
A successful response
application/json
post
POST /GetMessage HTTP/1.1
Host: $BASE_URL.Zalo
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "msg_id": "text",
  "oa_id": "text"
}
200

A successful response

{
  "campaign_id": "text",
  "created_at": "2025-06-14T09:22:59.089Z",
  "delivery_status": "unknown",
  "delivery_time": "2025-06-14T09:22:59.089Z",
  "enable_sms_on_zns_failure": true,
  "error_code": 1,
  "error_message": "text",
  "fee_main": 1,
  "fee_token": 1,
  "feedback": [
    "text"
  ],
  "id": "text",
  "is_charged": true,
  "journey_id": "text",
  "msg_id": "text",
  "note": "text",
  "oa_id": "text",
  "phone": "text",
  "rate": 1,
  "sent_time": "2025-06-14T09:22:59.089Z",
  "shop_id": "text",
  "sms": {
    "brandname": "text",
    "code": "text",
    "description": "text",
    "message": "text",
    "request_time": "2025-06-14T09:22:59.089Z",
    "send_time": "2025-06-14T09:22:59.089Z",
    "status": "text",
    "status_description": "text",
    "unicode": true
  },
  "status": "Z",
  "submit_time": "2025-06-14T09:22:59.089Z",
  "template_data": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "template_id": 1,
  "timeout": 1,
  "tracking_id": "text",
  "type": "unknown",
  "updated_at": "2025-06-14T09:22:59.089Z",
  "user_id": "text",
  "zl_user_id": "text"
}