Sync all ZIP vendors via Rest API

Recipe ToolsDeveloper ToolAPI Integration

What it does

When a function call triggers this automation, it sends HTTP requests to fetch all vendors from ZIP in batches. The automation loops through pages, collects each batch into a list, and returns the complete vendor data.

Who it's for

Procurement teams who need to keep vendor records in sync with ZIP without manual exports.

How teams use this

Sync vendors to a procurement system

Call this function from a procurement platform to pull all ZIP vendors into a central database. The batch logic handles large vendor lists without timing out.

Feed vendor data to a reporting dashboard

Use the returned vendor list to populate a dashboard or analytics tool. Teams see up-to-date vendor counts and details without manual refresh.

Filter vendors by status before returning

Add a condition to the loop so only active vendors are added to the list. This reduces noise and ensures downstream systems work with current suppliers only.

How it works

  1. Start the vendor sync. A function call initiates this automation to retrieve all vendors from ZIP and store them in a list for downstream use.
  2. Fetch vendors in batches. Send HTTP requests to ZIP to get vendors page by page. Set page size and token variables, then loop through each page until all vendors are retrieved.
  3. Collect vendors into a list. Add each batch of vendors to the zip_vendor_list as the loop processes pages. Update the page token after each request to move to the next batch.
  4. Return the complete vendor list. Once all pages are processed, return the full zip_vendor_list so other workflows or systems can access the vendor data.