Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Stock exports allow fetching a one shot picture of stock at the current point in time. Stock images are highly customizable, making it possible to recover stock in accordance to your operational rules.

Dereferenced stock

It’s possible to recover an image with a quantity of 0 for lines of stock which were referenced in the last export but not anymore.

...

Expand
titleExample in a scoped scenario
  1. Stock in database at moment t0
    Store 1, item1 x 2
    Store 1, item 2 x 3

  2. Import full at moment t1
    Store 1, item1 x 1

  3. Stock in database at moment t1
    Store 1, item1 x 1

  4. Export at moment t2
    Store 1, item1 x 1

Configuration

To be able to recovered dereferenced lines, the following configuration must be added

Code Block
stock:
  unreferenced_stock: true

Recovering dereferenced lines

Check out API documentation for GET /stock_exports.

...