Skip to content

Zalo — Người theo dõi ​

Danh sách người dùng (List users) — zalo.list_users ​

List OA users, up to 50 per page (offset up to 9951). Filter by tag_name, is_follower or last_interaction_period (TODAY, YESTERDAY, L7D, L30D or YYYY_MM_DD:YYYY_MM_DD).

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. Max 9951.
countSố lượngintegercóMin 1. Max 50.
tag_nameNhãnstringkhông
last_interaction_periodTương tác gần nhấtstringkhôngTODAY, YESTERDAY, L7D, L30D or YYYY_MM_DD:YYYY_MM_DD.
is_followerĐang theo dõistringkhôngOne of: true, false.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectOne page of users.
data.totalintegerTotal users that match the filter.
data.countintegerNumber of users requested.
data.offsetintegerPosition of the first user in this page.
data.usersarray of objectUsers in this page.
data.users[].user_idstringZalo user ID.

Chi tiết người dùng (Get user) — zalo.get_user ​

Get a user's profile: name, alias, tags, notes, last interaction and shared contact info.

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

Input

FieldNhãnKiểuBắt buộcMô tả
user_idMã người dùngstringcóZalo user ID of the OA follower.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectThe user's profile.
data.user_idstringZalo user ID.
data.user_id_by_appstringThe user's ID within the connected app.
data.user_external_idstringThe user's ID in your own system. Empty string when not set.
data.display_namestringName shown on the user's Zalo profile.
data.user_aliasstringAlias the OA gave the user.
data.is_sensitivebooleanTrue when the user is under 18, false when 18 or older.
data.user_last_interaction_datestringDate of the user's last interaction with the OA, dd/MM/yyyy.
data.user_is_followerbooleanTrue while the user follows the OA.
data.avatarstringURL of the user's avatar.
data.avatarsobjectAvatar URLs by size, keyed by pixel size. The reference table types this as a string; its example shows an object.
data.avatars.120stringURL of the 120 px avatar.
data.avatars.240stringURL of the 240 px avatar.
data.dynamic_paramstringLast dynamic_param the user arrived with through the OA's Dynamic URL. Missing when none.
data.tags_and_notes_infoobjectTags and notes the OA set on the user.
data.tags_and_notes_info.notesarray of stringNotes on the user.
data.tags_and_notes_info.tag_namesarray of stringTags on the user.
data.shared_infoobjectContact details the user shared with the OA. Empty when the user shared none.
data.shared_info.namestringName the user shared.
data.shared_info.phonestringPhone number the user shared. The reference also shows it as a number.
data.shared_info.addressstringStreet address the user shared.
data.shared_info.citystringCity the user shared.
data.shared_info.districtstringDistrict the user shared.
data.shared_info.user_dobstringBirthday the user shared, dd/MM/yyyy.

Cập nhật người dùng (Update user) — zalo.update_user ​

Update a user's shared contact info, alias or external ID.

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

Input

FieldNhãnKiểuBắt buộcMô tả
user_idMã người dùngstringcóZalo user ID of the OA follower.
shared_infoThông tin liên hệobjectkhôngContact details the user shared with the OA.
shared_info.namestringkhông
shared_info.phonestringkhông
shared_info.addressstringkhông
shared_info.city_idstringkhông
shared_info.district_idstringkhông
shared_info.user_dobstringkhôngBirthday, dd/MM/yyyy.
user_aliasBiệt danhstringkhông
user_external_idMã ngoàistringkhông

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectNot returned: Zalo replies only error and message.

Thông tin tùy chỉnh người dùng (Get user custom info) — zalo.get_user_custom_info ​

Get a user's custom field values. Limit the result with fields_to_export.

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

Input

FieldNhãnKiểuBắt buộcMô tả
user_idMã người dùngstringcóZalo user ID of the OA follower.
fields_to_exportTrường cần lấyarray of stringkhôngCustom field names to return.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectThe user's profile and custom field values.
data.user_idstringZalo user ID.
data.namestringName of the user. Empty when unknown.
data.phonestringPhone number. Empty when unknown.
data.user_dobstringBirthday, dd/MM/yyyy.
data.genderstringGender of the user.
data.full_addressobjectAddress of the user.
data.full_address.user_citystringCity.
data.full_address.user_wardstringWard.
data.full_address.user_addressstringStreet address.
data.user_external_idstringThe user's ID in your own system. Empty string when not set.
data.dynamic_paramstringLast dynamic_param the user arrived with through the OA's Dynamic URL.
data.custom_infoobjectCustom field values, keyed by the OA's own field names (for example loyaltyPoints_number). Every value is a string (booleans as "true"/"false", numbers as text); a table field is an object whose values are strings. This reply sends error as the string "0".

Cập nhật thông tin tùy chỉnh (Update user custom info) — zalo.update_user_custom_info ​

Set a user's custom field values. custom_info maps field name to value.

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

Input

FieldNhãnKiểuBắt buộcMô tả
user_idMã người dùngstringcóZalo user ID of the OA follower.
custom_infoGiá trị tùy chỉnhobjectcóMap of custom field name to value.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectNot returned: Zalo replies only error and message.

Xóa thông tin người dùng (Delete user info) — zalo.delete_user_info ​

Delete the personal info the OA stored for a user. Cannot be undone.

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

Input

FieldNhãnKiểuBắt buộcMô tả
user_idMã người dùngstringcóZalo user ID of the OA follower.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectNot returned: Zalo replies only error and message.