Browse all articles

Supplier stock feeds

Last updated

Many suppliers publish their stock in a file at a web address. When Purchasing knows that stock, you see it in the Supplier stock column of the supplier products and of the product’s Suppliers tab. With the supplier’s stock cap on, the advice never orders more than the supplier has, the order editor warns More than the supplier has on a line above it, and the recommended supplier skips a supplier that has nothing.

You can bring supplier stock in three ways: a feed that is read on a schedule, a one-off file upload, or the API.

Add a stock feed

  1. Open Integrations. Go to Purchasing > Settings and click Integrations at the top.
  2. Add the feed. In the Supplier stock feeds card, click Add stock feed.
  3. Fill in the feed.
Field What to fill in
Supplier The supplier the file belongs to.
Web address of the file The public address, starting with http:// or https://.
Format CSV or XML.
Read every 1, 3, 6, 12 or 24 hours. Default 24 hours.
Match products on Automatic (supplier SKU, EAN, SKU), or one fixed code: Supplier SKU, Supplier EAN, EAN, SKU or Product ID.
Product code column The column with the code, as in the first line of the CSV or a column number. For XML: the child element, or @name for an attribute.
Stock column The column with the stock.
Available column (optional) A column that says whether the product can be ordered.
Available from column (optional) A column with the date the product is available again.
XML element of one product (optional) For XML: the element that holds one product, like item or product.

The Integrations page

  1. Save. Click Save. Click Read now to read the feed straight away instead of waiting for the schedule.

Upload a file once

Click Upload stock file in the same card. Choose the supplier, the file (CSV or XML), how to match products and the columns, and save. The stock is read straight away.

Send stock through the API

Your own system can send supplier stock with POST supplier-stock in the Purchasing API, up to 50,000 rows per call. See Purchasing API.

Check what came in

  • The feeds table shows per feed the Supplier, the File, how often it is read (Every) and Last read with the result, for example “120 rows read, 115 matched, 12 changed”.
  • Open Recent stock updates to see every update with its Source (Feed, File upload or API), the number of Rows, Matched and Changed, and the codes that were Not found.
  • Products whose supplier stock or availability changed are planned again within minutes.

When a feed fails

  • A failed read shows Failed with the reason under Last read, for example “The feed could not be read: …”.
  • ChannelDock tries again later, after 1, 2, 4 hours and so on, never later than the normal interval.
  • When you click Read now and the read fails, Last read shows the real error. A manual read never counts towards the pause.
  • After 5 failures in a row the feed is Paused. Fix the address or the columns and save the feed again to switch it back on.

Good to know

  • The address must be public. Internal or private addresses are refused, also after a redirect.
  • Files can be up to 20 MB and 50,000 rows.
  • A supplier can have up to 3 feeds.
  • Adding, changing, deleting and reading feeds needs the Purchasing edit right.
  • The stock cap is a supplier setting (stock_cap). You set it through the supplier import, the API or MCP, or by asking the assistant. Without the cap, supplier stock is shown but does not limit the advice.

Related articles


Was this helpful?

Related articles