Lấy thông tin chi tiết tin nhắn
POST /GetMessage HTTP/1.1
Host: $BASE_URL.Zalo
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"msg_id": "text",
"oa_id": "text"
}
A successful response
{
"campaign_id": "text",
"created_at": "2025-08-02T16:16:32.879Z",
"delivery_status": "unknown",
"delivery_time": "2025-08-02T16:16:32.879Z",
"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-08-02T16:16:32.879Z",
"shop_id": "text",
"status": "Z",
"submit_time": "2025-08-02T16:16:32.879Z",
"template_data": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"template_id": 1,
"timeout": 1,
"tracking_id": "text",
"type": "unknown",
"updated_at": "2025-08-02T16:16:32.879Z",
"user_id": "text",
"zl_user_id": "text"
}
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"
}
Cấu trúc body của request
oa_id
int64
ID của OA
msg_id
string
ID tin nhắn
Cấu trúc thuộc tính dữ liệu trả về
id
int64
ID tin nhắn trên hệ thống của eTelecom
shop_id
int64
ID cửa hàng trên hệ thống của eTelecom
user_id
int64
ID người gửi tin trên hệ thống của eTelecom
campaign_id
int64
ID của chiến dịch
delivery_status
string
Unkown
: Không xác định
Received
: Đã nhận
delivery_time
string<date-time>
Thời gian thiết bị của người dùng nhận được thông báo ZNS
error_code
int
Mã lỗi
error_message
string
Thông báo lỗi
fee_main
int
Phí chính
fee_token
int
Phí khởi tạo token
is_charged
boolean
True
: Tin ZNS được tính phí
False
: Tin ZNS không được tính phí
journey_id
string
ID của journey
msg_id
string
ID của thông báo ZNS
type
string
template
: ZNS thường
journey
: ZNS journey
status
string
Trạng thái
Z
: Mới tạo
P
: Enable
N
: Disable
rate
integer
Số sao được khách hàng đánh giá
note
string
Phần ghi chú thêm của khách hàng
feedback
array
Phần nhận xét từ khách hàng
submit_time
string<date-time>
Thời điểm khách hàng gửi đánh giá
template_data
object
Tham số tin nhắn
phone
string
Số điện thoại người nhận
sent_time
string<date-time>
Thời gian gửi thông báo ZNS
template_id
integer
ID của mẫu tin
timeout
integer
Thời gian tối đa mà hệ thống xử lý yêu cầu
tracking_id
string
Mã số đánh dấu lần gọi API của bạn, do bạn định nghĩa. Bạn có thể dùng tracking_id để đối soát mà không phụ thuộc vào message_id của eTelecom cung cấp.
updated_at
string<date-time>
Ngày cập nhật
created_at
string<date-time>
Ngày tạo
Last updated