How to Retrieve a Zalo Bulk Task Result CSV
Save your ZL Lookup task ID, check progress, download the completed Zalo CSV, and reconcile task counts before using its rows.

How to Retrieve a Zalo Bulk Task Result CSV
Save your ZL Lookup task ID, check progress, download the completed Zalo CSV, and reconcile task counts before using its rows.
A developer guide to retrieving and checking a completed Zalo registration file task.
Save the task ID returned when you submit the Zalo bulk file. Query that same task until it succeeds, download the result CSV from its result URL, then compare the task counts with the file before using any row.
Keep the task ID with the submitted file
A bulk registration check has two separate moments: accepting your upload and making its results available. When your application submits the file to POST /api/v1/bulk-tasks, preserve the returned data.id alongside your own file reference. The returned ID is the handle for GET /api/v1/bulk-tasks/{id}. A file name alone is a poor recovery key if a worker restarts while the task is still running.
For example, a CRM import can store its source-file reference, upload time and the returned task ID in the same local job record. The reference is your own bookkeeping, not a ZL Lookup response field. When processing resumes, look up the saved ID and query the existing task instead of assuming the upload must be repeated. Keep the original file available until you have reconciled the completed result.
Use the Zalo bulk registration task for this uploaded-file workflow. The one-number check and the documented multi-check endpoint are different interfaces; a status request for a bulk task belongs to the uploaded task ID.
Read progress before requesting the CSV
Call GET /api/v1/bulk-tasks/{id} with the ID you saved. The API documentation says to query no more often than every 30 seconds. Make that interval part of the polling loop, and preserve the last observed state if your own process pauses. A response with preparing: true indicates preprocessing is still underway. During this stage, the task is cleaning and deduplicating the input; its total may change. Do not interpret an early total as the final number of rows that will be checked.
Once the task reports status: success, read its result_url. Make a separate GET request to that URL to retrieve the CSV. The documented download request omits the API authentication header. Treat the URL as a result-file location, rather than constructing a download endpoint from the task ID. Store the downloaded file under your own task record so the CSV and the task summary can be reviewed together.
If the task has not succeeded, continue to inspect its documented status instead of treating a missing result URL as an empty result set. If a request itself fails, keep that retrieval failure distinct from the task's processing outcome. That distinction helps an operator resume a download without falsely marking every phone number as unregistered.
Reconcile input counts with the result rows
The task status separates submitted_lines, total, invalid_cnt, duplicate_cnt, success_cnt and failure_cnt. Read them as different stages of the file task. submitted_lines describes the submitted input lines; total reflects the cleaned and deduplicated work after preprocessing. Invalid and duplicate counts explain why these quantities can differ. Successful and failed counts describe processing outcomes, not the number of people who use Zalo.
Before an import, compare the saved source file with the status summary and the downloaded CSV. Start with the number of lines sent. Record the final cleaned total, then the invalid and duplicate counts. Finally, check how many entries succeeded or failed at processing. A discrepancy deserves inspection of the source list and task file; it is not a reason to manufacture a result for a line that was removed during cleaning.
The registration result file documents an identifier and registered value. Use that returned registration signal for the corresponding row, while keeping failed processing and missing rows in separate review categories. A completed task can still contain failed entries; status: success describes the task, not a guarantee that every submitted line has a usable registration answer. Preserve your source reference so you can return to the original input when reconciling a row.
Once the counts and file agree, pass only the interpreted result rows into your contact workflow. Keep the task summary beside them for later investigation. The signal describes Zalo account presence at check time and does not establish identity, contact permission or whether a message will be delivered.
FAQ
Can the result CSV be downloaded as soon as the upload returns?
Save the returned task ID and query its status. Download from result_url when the task reports success; the upload response alone is not the completed CSV.
Why can the submitted line count differ from the final task total?
Preprocessing can remove invalid and duplicate input. Compare the task's submitted, cleaned, invalid and duplicate counts before mapping result rows back to the source file.
Learn More
Choose the product information that fits the next step in your workflow.
Sources
- ZL Lookup API documentation · ZL Lookup API documentation
Prepared from ZL Lookup product documentation and the cited sources.
Related materials
Related resources
- How to Keep Customer Labels Separate From a Zalo Registration ResultLearn how to add a Zalo registration result to a customer record while keeping known, unknown, and customer-provided labels separate.
- Should You Use Zalo for an Existing Vietnam Customer Number?Choose a contact channel using the customer’s stated preference and conversation history. See where a Zalo registration check helps.
- Can a Zalo Registration Check Verify a Person’s Identity?A positive Zalo registration result concerns a phone number. Learn why it cannot verify a person and how to keep identity decisions separate.
- When Should You Recheck an Old Zalo Registration Result?Reusing an older Vietnam customer list? Learn when to refresh a Zalo registration check, how to compare dated results, and what the new signal can tell you.
- Zalo Shows Registered, but Phone Search Finds No Account: What Next?A registered Zalo number may still be absent from phone search. Learn what the two results mean and how to agree on a contact route with your customer.
- What to Do When a Zalo Single-Number API Check Cannot Be DeterminedSeparate a conclusive Zalo registration result from undetermined checks and request errors, then correct or retry by documented error code.
- What a Zalo Registration Check Can Tell You About a Vietnam Phone ListLearn how to prepare +84 phone numbers, choose a single Zalo check or file task, and interpret registration signals in a Vietnam contact list.
- Zalo Registration or Profile File Check: Which Result Does Your List Need?Choose a Zalo registration file or profile file for an authorized phone list. Learn what extra account and avatar fields can add and how to read gaps.
- How to Check if a Phone Number Is Registered on ZaloCheck one phone number before you reach out, and keep a result that could not be decided apart from a negative one.
- How to Prepare a CSV or TXT File for Bulk Zalo ChecksClean the number column, keep one country or region per file, and join the result CSV back to your original list.
- What Does a Zalo Number Profile Check Return?Read registration first, keep avatar-based estimates apart from confirmed facts, and leave unavailable fields blank.