Skip to content

Zalo — Mẫu ZBS ​

Gửi tin ZBS qua số điện thoại (Send ZBS template message) — zalo.send_template ​

Send an approved ZBS template to a phone number. Costs money per message (from 200 VND).

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
phoneSố điện thoạistringcóRecipient phone: 84987654321, +84987654321 or 0987654321. Pattern: ^\+?[0-9]{9,15}$.
template_idMã templatestringcóZBS template ID.
template_dataDữ liệu templateobjectcóTemplate parameters; names come from get_template listParams.
tracking_idMã theo dõistringcóYour reference for reconciliation; no special characters. Max length 48.
sending_modeChế độ gửianykhông1 normal (default); 3 over-quota, whitelisted OAs and tag 3 only. One of: 1, 3.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Gửi tin ZBS qua số điện thoại đã mã hóa (Send ZBS template message by hashed phone) — zalo.send_template_hashphone ​

Send an approved ZBS template to a SHA-256 hashed phone number. Costs money per message.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
hash_phoneSố điện thoại đã mã hóastringcóSHA-256 of the phone number.
template_idMã templatestringcóZBS template ID.
template_dataDữ liệu templateobjectcóTemplate parameters; names come from get_template listParams.
tracking_idMã theo dõistringcóYour reference for reconciliation; no special characters. Max length 48.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Gửi tin ZBS thử nghiệm (Send ZBS template message (development mode)) — zalo.send_template_dev ​

Test-send a ZBS template in development mode. Only admins of the App or OA can receive it.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
phoneSố điện thoạistringcóRecipient phone: 84987654321, +84987654321 or 0987654321. Pattern: ^\+?[0-9]{9,15}$.
template_idMã templatestringcóZBS template ID.
template_dataDữ liệu templateobjectcóTemplate parameters; names come from get_template listParams.
tracking_idMã theo dõistringcóYour reference for reconciliation; no special characters. Max length 48.
modeChế độanykhôngSet by FLAE Always development.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Trạng thái tin ZBS (Get ZBS message status) — zalo.get_message_status ​

Get the delivery status of a ZBS message: -1 not found, 0 pushed, 1 delivered.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
message_idMã tinstringcómsg_id returned by the send.
phoneSố điện thoạistringkhông

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Hạn mức ZBS (Get ZBS quota) — zalo.get_quota ​

Get the daily and remaining ZBS message quota of the OA.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

Không có input.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Chất lượng gửi tin ZBS (Get ZBS quality) — zalo.get_quality ​

Get the OA's ZBS sending quality (last 48 hours and 7 days).

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

Không có input.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Danh sách template ZBS (List ZBS templates) — zalo.list_templates ​

List ZBS templates, newest first.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
offsetVị trí bắt đầuintegercóMin 0.
limitSố lượngintegercóMin 1. Max 100.
statusTrạng tháiintegerkhông1 ENABLE, 2 PENDING_REVIEW, 3 REJECT, 4 DISABLE; omit for all. Min 1. Max 4.
filterPresetBộ lọcintegerkhông0 all OA templates, 1 only those created by this App. One of: 0, 1.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Chi tiết template ZBS (Get ZBS template) — zalo.get_template ​

Get a ZBS template: status, listParams, listButtons, price_sdt (phone) and price_uid.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
template_idMã templatestringcóZBS template ID.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Dữ liệu mẫu template ZBS (Get ZBS template sample data) — zalo.get_template_sample_data ​

Get sample values for the parameters of a ZBS template.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
template_idMã templatestringcóZBS template ID.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Tạo template ZBS (Create ZBS template) — zalo.create_template ​

Create a ZBS template (100 per day). It starts as PENDING_REVIEW; Zalo reports the result by webhook.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
template_nameTên templatestringcóMax length 60.
template_typeLoại templateintegercó1 custom, 2 OTP, 3 payment request, 4 voucher, 5 service rating. One of: 1, 2, 3, 4, 5.
tagLoại nội dungstringcó1 transaction, 2 customer care, 3 promotion. One of: 1, 2, 3.
layoutBố cụcobjectcó{header, body, footer}, each with a components list.
paramsTham sốarray of objectcó[{name, type, sample_value}].
noteGhi chústringcóMax length 400.
tracking_idMã theo dõistringcóMax length 48.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Sửa template ZBS (Edit ZBS template) — zalo.edit_template ​

Edit a ZBS template. Only templates in REJECT status can be edited (100 per day).

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
template_idMã templatestringcóZBS template ID.
template_nameTên templatestringcóMax length 60.
template_typeLoại templateintegercó1 custom, 2 OTP, 3 payment request, 4 voucher, 5 service rating. One of: 1, 2, 3, 4, 5.
tagLoại nội dungstringcó1 transaction, 2 customer care, 3 promotion. One of: 1, 2, 3.
layoutBố cụcobjectcó{header, body, footer}, each with a components list.
paramsTham sốarray of objectcó[{name, type, sample_value}].
noteGhi chústringcóMax length 400.
tracking_idMã theo dõistringcóMax length 48.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Tải ảnh template ZBS (Upload ZBS template image) — zalo.upload_template_image ​

Upload a JPG or PNG (max 500 KB) for a ZBS template. Returns media_id.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
file_urlĐường dẫn tệpstringcóHTTPS URL of the file to upload (max 500000 bytes). Pattern: ^https://.
file_nameTên tệpstringkhôngFile name to send to Zalo.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Đánh giá của khách hàng (List ZBS ratings) — zalo.list_ratings ​

List customer ratings for a service-rating ZBS template created by this App.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
template_idMã templatestringcóZBS template ID.
from_timeTừintegercóStart, ms timestamp.
to_timeĐếnintegercóEnd, ms timestamp.
offsetVị trí bắt đầuintegercóMin 0.
limitSố lượngintegercóMin 1. Max 100.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.

Phản hồi nhanh của khách hàng (List ZBS quick responses) — zalo.list_quick_responses ​

List quick-response button replies customers sent to a ZBS template.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
template_idMã templatestringcóZBS template ID.
from_timeTừintegercóStart, ms timestamp.
to_timeĐếnintegercóEnd, ms timestamp.
offsetVị trí bắt đầuintegercóMin 0.
limitSố lượngintegercóMin 1. Max 100.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo response data.