Stock synchronization for product variants
How stock synchronization works for products with variants in Shoporama, using CSV import, the REST API, or shared stock across stores.
When you have products with variants (such as sizes), stock is tracked per variant. Here is how stock synchronization works for product variants in Shoporama.
Stock per variant
Each variant has its own stock level. If you sell a T-shirt in S, M, and L, each size has its own stock quantity. The product's total stock is the sum of the stock of all its variants.
Note that a customer input field of the list type is not a variant and therefore has no stock. If, for example, you let the customer choose a color that is printed after the order is placed, stock is still only deducted from the variant. If a color should be able to sell out, it needs to be a real variant. See Let customers fill in fields on a product.
For stock synchronization to update the right variant, each variant needs its own unique SKU (item number) in the product's variant list.
Update stock with a CSV file
You can update the stock of variants with a CSV import. The file must be semicolon-separated and contain three columns: the variant's SKU, the quantity, and an optional location tag.
TSHIRT-001-S;10; TSHIRT-001-M;15; TSHIRT-001-L;8;
The third column (tag) is optional and specifies a particular warehouse location. Leave it empty if you only have one location.
Update stock with the REST API
With the REST API, you can update the stock of a variant by specifying the variant's name:
PUT /REST/stock/{product_id}
{ "count": 10, "variant_name": "M" }
If the product has variants and variant_name is not specified, the API returns an error with a list of the available variants.
Shared stock
If you have several stores, you can use shared stock to synchronize stock automatically across stores. When a variant is sold in one store, the stock is automatically deducted in all stores.

Tip
Make sure each variant has a unique SKU. The SKU is what connects the stock import to the right variant. If two variants use the same SKU, the system cannot tell which one to update.
Need help? Contact us at support@shoporama.dk.
Related articles
Show out-of-stock variants in your theme
How to show sold-out product variants in your Shoporama theme, so customers can see your full range and sign up for back-in-stock notifications.
Shared stock between multiple online stores
How to set up shared stock, so two or more Shoporama stores draw from the same inventory and stock levels update automatically when a product sells.
Back-in-stock emails: Notify customers when products are restocked
Learn how to set up back-in-stock email notifications, so your customers find out when sold-out products are available again in your Shoporama store.
Related features
Product variant
A product variant is a version of a product in, for example, another size or color. Learn about product variants, stock management, SKUs, and...
Online store with Customers 1st POS: stock synced both ways
Connect your online store to the Customers 1st POS system with Shoporama's free app. Products exist in both systems, and stock syncs both ways when...
Stock management
Stock entries, warehouse locations, reorder lists, inventory value, and automatic notifications. Avoid overselling with Shoporama's stock management.
Inventory value with shared stock: one figure, no duplicates
New in Shoporama: see the total inventory value for your stores with shared stock. Products in several stores count only once, and you can export...