Sign up and contact support to claim credit for 100 Zalo registration checks.Sign up for free
ZL Lookup

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.

Verification workflowsEstimated reading 4 MinutesZL Lookup Editorial Team ·
ZL Lookup workflow illustration for How to Retrieve a Zalo Bulk Task Result CSV
A visual overview of the workflow discussed in this ZL Lookup article.

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

Prepared from ZL Lookup product documentation and the cited sources.

Related materials

Related resources

See all articles

Apply the guide to your own number

Start with one number you are authorized to process, review the detection conclusion, and decide whether to continue processing the list.