ERPNext and Zid: each branch on its own warehouse

Each branch's Zid location is linked to that branch's ERPNext warehouse, so it shows its own stock, read back after each write to confirm it.

  • ERPNext
Card titled ERPNext and Zid: each branch on its own warehouse

Your store sells from several branches, and each branch has its own warehouse in ERPNext. How does each branch show its own stock in Zid?

Each branch’s Zid location is linked to that branch’s warehouse in ERPNext. The app writes the warehouse’s stock to the location and reads it back to confirm it, so every branch in Zid shows what its ERPNext warehouse holds.

A branch in ERPNext and in Zid

ERPNext keeps a stock balance for each item in each warehouse. In ERPNext’s documentation, the term is broader than a storage building, and a warehouse can be regarded as a storage location. So each branch can have its own warehouse in ERPNext, holding the balance of every item at that branch.

In Zid, your store has locations. The app reads your store’s locations from Zid, including each branch’s location.

In this article, a branch means your physical branch, with a warehouse in ERPNext and a location in Zid. The link joins the two, so the branch’s ERPNext warehouse becomes the source of the stock its Zid location shows.

Without that link, someone updates each branch’s quantity in Zid by hand, or the store shows one number that adds up every branch. Either way, a product can look in stock at a branch that has run out.

How a branch’s stock flows

Stock flows from ERPNext to Zid, in four steps. The general walkthrough of this flow, for any ERP, is in Stock per Zid location from your ERP warehouses. Here are the same steps for a store with several branches on ERPNext.

Branch stock from ERPNext to Zid
  1. The branch balance in ERPNext

    ERPNext holds each item's balance in the branch warehouse, the source of the number.

  2. Store locations read

    The app reads your store's locations from Zid, including each branch's location.

  3. Each location linked to its branch warehouse

    During setup, each branch's Zid location is linked to that branch's ERPNext warehouse.

  4. Written, then read back

    The warehouse's stock is written to the branch's Zid location, then read back to confirm it.

The branch warehouse is the source

The stock balance in the branch’s ERPNext warehouse is the number that reaches the branch’s Zid location. So ERPNext stays the place where each branch’s stock is recorded and corrected.

Each branch’s location is linked to its warehouse during setup. The scope of work you approve sets which ERPNext warehouse feeds each Zid location. Our team does the setup with you.

One Zid location can also link to several regular ERPNext warehouses, and their stock is added together on the location.

How often stock updates

Each store picks its own refresh: as often as every minute, or every 15 minutes, hourly, every 4 hours or daily.

Read back to confirm

After the app writes the warehouse’s stock to the branch’s location, it reads it back from that same Zid location. The read confirms the location shows the number that was written.

What you see in Zid and in ERPNext

For each branch, side by side:

A branch in Zid and in ERPNext
In ZidIn ERPNext
What it shows for the branchThe branch warehouse's stock on its locationEach item's balance in the branch warehouse
Source of the numberThe branch warehouse in ERPNextERPNext itself
Correcting stockThe new number shows with the next updateCorrected here
A paid orderStarts in the store, then reaches ERPNextPosted with the customer, items, tax and shipping

In ERPNext, you see each item’s balance in every branch’s warehouse, where the flow starts. In Zid, each branch’s location shows its warehouse’s stock once it is written and read back.

Orders from Zid to ERPNext

Orders run the other way, from Zid to ERPNext. Each paid order is posted to ERPNext with the customer, items, tax and shipping, then read back from ERPNext to confirm it is there.

The customer is matched to their ERPNext record first, by email and then by phone, and a new record is created only when there is none. The same order is never posted twice. Each return posts to ERPNext as one credit note: a return Sales Invoice against the original invoice.

Questions merchants ask

Out at one branch, in stock at another

Each branch’s Zid location shows its own ERPNext warehouse’s stock. So the stock-out shows on the location of the branch that ran out, and the other branch’s location shows what is left in its warehouse.

Correcting a branch’s stock

Correct the quantity in the branch’s ERPNext warehouse, and the new number shows on the branch’s Zid location with the next update.

Editing the quantity by hand in Zid

Stock flows from ERPNext to Zid, and ERPNext is the source of the number. So the place to correct any branch’s stock is its ERPNext warehouse, and from there the number reaches the branch’s Zid location.

Adding a branch after go-live

A new branch is a settings change, with no code. Our team adds the link between the branch’s Zid location and its ERPNext warehouse, and can create the Zid location too.

A group warehouse in ERPNext

A Zid location cannot link to a group warehouse, the kind that holds other warehouses. Link the location to the regular warehouses under it instead, and their stock is added together.

Routing an order to a branch warehouse

Showing each branch’s stock is different from routing an order to a warehouse. On the Business plan, each order goes to the warehouse that serves the shopper’s ship-to city, from a city list our team sets during setup. If no city matches, the order goes to the warehouse of the Zid location fulfilling it, and otherwise to the default warehouse.

ERPNext API keys

The link needs your ERPNext API keys, and help getting them is available.

Stock numbers

These figures come from Zid Integrations data.

stock updates from ERPs to Zid
Over 800,000
automated operations between Zid stores and ERPs
Over 1 million

Source: Zid Integrations dataas of 6 October 2026

Setup

The link relies on each branch having a warehouse in ERPNext and a location in Zid, because setup links each location to its warehouse.

Our team does the setup with you, in these steps:

  1. Install the app from the Zid App Market and choose a plan.
  2. Pick the data to connect.
  3. Enter your ERPNext API keys, with help getting them if you need it.
  4. Approve the scope of work, which names the ERPNext warehouse linked to each branch’s location.
  5. The link is tested on your store’s orders.
  6. Go live once you approve the test report, about two weeks after install.

What connects with ERPNext is listed on the ERPNext page.

Plans

Stock per location comes with the Growth plan, which covers 500 orders a month. Business covers 2,000 orders a month and adds multi-warehouse routing. Starter covers 100 orders a month, with orders and returns. Trials run 7 days on monthly billing and 30 days on yearly billing.

Details of each plan and current prices are on the app’s page in the Zid App Market.

To show each branch’s ERPNext stock on its own Zid location, install the app from the Zid App Market.

Sources

  1. ERPNext documentation: Warehouse