Tin Zalo giao dịch
HTTP request
curl --location 'https://rest.esms.vn/mainservice.svc/json/SendZaloFollowerMessage_V5_post_json/' \
--header 'Content-Type: text/plain' \
--data '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}",
"RequestId": "96accf59-0c41-4bc7-a5c4-4a466c2e41c2",
"Payload": {
"recipient": {
"user_id": "{{user_id}}"
},
"message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "transaction_order",
"language": "VI",
"elements": [
{
"image_url": "https://minio.esms.vn/blogimg/agent-1/BlogImg/full_cccc34d4-3a46-4644-8613-1b226203c5d5.png",
"type": "banner"
},
{
"type": "header",
"content": "Trạng thái đơn hàng",
"align": "left"
},
{
"type": "text",
"align": "left",
"content": "• Cảm ơn bạn đã mua hàng tại cửa hàng.<br>• Thông tin đơn hàng của bạn như sau:"
},
{
"type": "table",
"content": [
{
"value": "eSMS-001",
"key": "Mã khách hàng"
},
{
"style": "yellow",
"value": "Đang giao",
"key": "Trạng thái"
},
{
"value": "250,000đ",
"key": "Giá tiền"
}
]
},
{
"type": "text",
"align": "center",
"content": "📲 Lưu ý điện thoại. Xin cảm ơn!"
}
],
"buttons": [
{
"title": "Kiểm tra lộ trình",
"image_icon": "https://img.icons8.com/?size=100&id=kJlyCVWJrclv&format=png&color=000000",
"type": "oa.open.url",
"payload": {
"url": "https://esms.vn/huong-dan/huong-dan-tich-hop/huong-dan-tich-hop-api-cua-esms-vao-website"
}
},
{
"title": "Xem lại giỏ hàng",
"image_icon": "https://img.icons8.com/?size=100&id=S2Z1vzGMFT1v&format=png&color=000000",
"type": "oa.open.url",
"payload": {
"url": "https://esms.vn/huong-dan/huong-dan-su-dung"
}
},
{
"title": "Liên hệ tổng đài",
"image_icon": "https://img.icons8.com/?size=100&id=KKBDB20a4V6t&format=png&color=000000",
"type": "oa.open.phone",
"payload": {
"phone_code": "0901888484"
}
}
]
}
}
}
}
}'Tham số
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
Tham số
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
Tham số
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
Tham số
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
Tham số
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
STT
Mã template
Loại tin (VN)
Message Type (EN)
Type
Thuộc tính
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
Thuộc tính
Kiểu dữ liệu
Tính bắt buộc
Định nghĩa
Giá trị type
Kiểu dữ liệu của payload
Giá trị payload và kết quả khi người quan tâm bấm vào
Thuốc tính
Kiểu dữ liệu
Mô tả
Last updated