Browse all articles

BI export feed

Last updated

The BI export feed gives your reporting tool direct, read-only access to your purchasing data as CSV or JSON. Use it to build your own dashboards in Power BI, Looker Studio or Excel next to the Purchasing analytics. The feed works with a secret token instead of a login. You can make a new token or switch the feed off at any time.

Steps

  1. Open Integrations. Go to Purchasing > Settings and click Integrations at the top.
  2. Switch the feed on. In the BI export feed card, click Switch on.
  3. Copy the token. The card shows Your token (shown only once). Click the copy button and store the token in your BI tool. You cannot see it again later.

The Integrations page

  1. Connect your tool. Use one of the dataset addresses below and send the token as the header Authorization: Bearer <token>, or add ?token=<token> to the address.

Datasets

Dataset Address What it holds
Daily metrics /portal/public/purchasingbi/daily_metrics.csv The daily purchasing figures behind the Analytics page.
Purchase orders /portal/public/purchasingbi/purchase_orders.csv Your purchase orders.
Purchase order lines /portal/public/purchasingbi/purchase_order_lines.csv The lines of your purchase orders.
Products and advice /portal/public/purchasingbi/products.csv Your products with their planning data and advice.

Replace .csv with .json to get JSON. Put your ChannelDock address in front, as shown in the card.

Paging and filters

Parameter What it does
limit Rows per call. Default 1,000, at most 5,000.
after_id The next page. Use the value of the X-Next-After-Id header of the previous answer.
updated_since Only rows changed since this moment.
from and to A date range, for Daily metrics only.

The answer also has the headers X-Has-More and Link: rel="next", so tools that follow links can page by themselves.

Renew or revoke the token

  • New token: makes a new token. The old token stops working at once, so update every tool that uses it.
  • Switch off: revokes the token. Tools that use it stop working at once.
  • The card shows when the token was made and when it was last used.

Good to know

  • The feed is read-only. It cannot change anything in ChannelDock.
  • A token allows 300 calls per hour.
  • A wrong or revoked token gets a 404 answer.
  • Switching the feed on, making a new token and switching it off need the Purchasing settings right.
  • The feed is not part of API v2 and does not use an API key. For reading and changing data from your own software, use the Purchasing API.
  • To export a single table by hand, use the export buttons on the Purchasing pages instead. See Export purchasing data.

Related articles


Was this helpful?

Related articles