Skip to content

Zalo — Official Account ​

Lấy thông tin OA (Get OA info) — zalo.get_oa ​

Get the connected Official Account: name, followers, verification and package.

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ảobjectThe connected Official Account.
data.oaidstringID of the OA. The reference table calls it oa_id; its example uses oaid.
data.namestringName of the OA.
data.descriptionstringDescription of the OA.
data.oa_aliasstringShort name used in the OA's link.
data.is_verifiedbooleanTrue when the OA is verified.
data.oa_typeintegerOA type: 2 business, 4 government agency.
data.cate_namestringBusiness category of the OA.
data.num_followerintegerTotal followers of the OA.
data.avatarstringURL of the OA avatar.
data.coverstringURL of the OA cover image.
data.package_namestringName of the service package. Only business OAs return it.
data.package_valid_through_datestringLast day the package is valid, dd/MM/yyyy. Only OAs on a package return it.
data.package_auto_renew_datestringDate the package renews itself, dd/MM/yyyy. Only OAs on a package with auto-renew on return it.
data.linked_ZCAstringThe ZCA account linked to the OA. Only OAs linked to a ZCA wallet return it. The reference table spells it linked_zca; its example uses linked_ZCA.

Kiểm tra hạn mức tin nhắn (Check message quota) — zalo.check_message_quota ​

Check message quota for one user (user_id) or for the OA (quota_owner, product_type, quota_type). Send either user_id or the quota fields.

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

Input

FieldNhãnKiểuBắt buộcMô tả
user_idMã người dùngstringkhôngZalo user ID of the OA follower.
quota_ownerChủ hạn mứcstringkhôngQuota owner, e.g. OA.
product_typeLoại sản phẩmstringkhôngProduct type the quota belongs to.
quota_typeLoại hạn mứcstringkhôngQuota type to check.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo returns a list here; the declared object type cannot hold it yet.

Kiểm tra hạn mức nhóm (Check group quota) — zalo.check_group_quota ​

Check the OA's group chat (GMF) quota. Returns the asset_id used to create groups.

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

Input

FieldNhãnKiểuBắt buộcMô tả
quota_ownerChủ hạn mứcstringcóQuota owner, e.g. OA.
product_typeLoại sản phẩmstringcóProduct type the quota belongs to.
quota_typeLoại hạn mứcstringcóQuota type to check.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectZalo returns a list here; the declared object type cannot hold it yet.

Kiểm tra cửa sổ 48 giờ (Check message window) — zalo.check_message_window ​

Check whether a message is still inside the 48 hour free consultation window.

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

Input

FieldNhãnKiểuBắt buộcMô tả
message_idMã tin nhắnstringcóID of a message in the conversation.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectThe user's message window and remaining sends.
data.last_interactionstringWhen the user last interacted with the OA, Unix time in milliseconds, as a string.
data.cs_replyobjectConsultation replies left. Always remain 8 from 1 Jan 2026; no longer returned after 1 Mar 2026.
data.cs_reply.remainintegerReplies left.
data.cs_reply.totalintegerReplies allowed.
data.promotionobjectPromotion messages the OA can still send to this user.
data.promotion.daily_remainintegerSends left today.
data.promotion.daily_totalintegerSends allowed per day.
data.promotion.monthly_remainintegerSends left this month.
data.promotion.monthly_totalintegerSends allowed per month.