Stock quantity is a number in a feed that says how many units of a product you have available. It's used mainly when importing into an online shop, on marketplaces and in supplier feeds. Comparison sites and Google Shopping usually want only the availability status instead, such as in stock or available to order.
What stock quantity is
Availability says "yes, we have it". Stock quantity says "we have exactly seven". It's the difference between an "in stock" sign on the shelf and a stocktake list. A supplier feed often contains exactly this quantity, and availability for individual channels is then derived from it.
The element has no standard name. Suppliers use, for example, STOCK, QUANTITY or qty; Shoptet uses a nested STOCK with AMOUNT.
What it looks like in a feed
<!-- Supplier feed -->
<SHOPITEM>
<CODE>SPAC-220</CODE>
<STOCK>7</STOCK>
</SHOPITEM>
<!-- Import into Shoptet -->
<SHOPITEM>
<CODE>SPAC-220</CODE>
<STOCK>
<AMOUNT>7</AMOUNT>
</STOCK>
</SHOPITEM>The SPAC-220 sleeping bag has 7 units in stock – the supplier writes it in a single element, Shoptet in a nested AMOUNT.
What it is used for
- An online shop uses it to decide whether the product can be bought, and can show "last few items".
- Marketplaces keep track of the quantity so you don't sell more than you have.
- Heureka uses it in a separate availability feed (the
stock_quantityelement), not in the main product feed. - Rules in a feed manager – for example, hiding products with fewer than two units.
What to watch out for
- The supplier's stock presented as your own. The customer then expects you to ship straight away, even though you first have to order the item.
- Text instead of a number – a channel expecting a number can't read
>10or "in stock". - Negative values and decimals for goods sold by the unit.
- Outdated data. The quantity changes with every order, so refresh the feed often.
- The same units on several channels – you can sell the last item twice.
How Sortyra helps
In Sortyra your own stock comes first, and the supplier's quantity is never sent to Shoptet as the shop's stock – it only shows up in availability. In the output you set the Stock share, for example 50% of units for a marketplace and the rest for your online shop. The Hide out-of-stock recipe removes products with no units.
Related terms
- availability – product availability
- DELIVERY_DATE – delivery time
- Dropshipping
- Availability, stock and delivery time
- Stock and delivery in Sortyra
Frequently asked questions
Does Google require stock quantity?
Not in a standard product feed – availability with the value in_stock or out_of_stock is enough. Google uses stock quantity for local inventory in physical stores.
How is stock quantity written for Heureka?
It isn't given in the main feed. Heureka uses it in a separate availability feed in the stock_quantity element.
Should I show customers the exact number of units?
That's a business decision. When the number is low, a "last few items" notice can help sales; when it's high, "in stock" is enough.