Skip to main content

What are stock rules for listings or stores?

Learn to edit your stock rules and get recommendations for your stock rules to prevent overselling and seller performance penalties.

What is a stock rule?

A stock rule is a formula that decides how much stock SKULabs pushes to your sales channel as available. Use stock rules to prevent overselling, turn off stock sync for single listings, control presales, and more.

How do I change stock rules?

Every store and every listing has a stock rule. A store's default rule is free. A listing's default rule is store_default, which means it uses the store's rule until you give it its own.

Change a store's stock rule

  1. Go to Settings > Inventory > Stock Sync.

  2. Find the store and click its edit button.

  3. Enter the new stock rule and save.

Change a listing's stock rule

  1. Go to Inventory > Listings, find the listing, and click its name.

  2. In the Listing Rules panel, click edit.

  3. Enter the new stock rule and save.

To change many listings at once, use the Listing rules CSV import on the Import/Export page.

What can I use in a stock rule?

  • free: available stock (on_hand - reserved).

  • on_hand: physical stock.

  • reserved: stock reserved for open orders.

  • fba: FBA stock.

  • skip: don't push stock to this listing.

  • store_default: use the store's stock rule.

Rules are written in a simple subset of JavaScript, so you can combine these, for example free - 2 or Math.floor(free * 0.8).

How do I keep safety stock?

Our recommended safety stock rules help protect you from overselling and seller performance penalties.

Advanced stock rules

If you're a developer or advanced user who wants to write your own rules, see:

Planning a flash sale?

Did this answer your question?