Variants in the inventory
The stock movements and the commitments of an article can be read for one variant, a variant declares its own reorder point and reorder quantity, the product publishes a stock summary and a price summary that count its variants, a line of a product with active variants names its variant, and the stock mode of a variant changes only when it holds no stock. 48 updated operations and the MCP tools that mirror them.
2 December 2026 — The inventory of an article now reaches its variants. The stock movement ledger and the commitments can be read for a single variant, each commitment says which variant it lowers, and a variant that manages its own stock declares a reorder point and a reorder quantity of its own, which the reorder suggestions use. The product publishes a stock summary and a price summary that count its variants, a line of a product with active variants names its variant, and the stock mode of a variant changes only when the variant holds no stock. No operation is new: the 48 that change are listed at the end of this page and link to their API Reference page.
Movements and commitments of one variant
Three reads take an optional variant_id, the public id of a variant of the article:
GET /v1/companies/{company}/products/{product}/stock-movementslists only the movements booked to that variant.GET /v1/companies/{company}/stock-movements, the ledger of the whole company, takesvariant_idtogether withproduct_id: without it the request is a400parameter_missingonproduct_id.GET /v1/companies/{company}/stock-availability/{product}/commitmentslists only the commitments that lower the stock of that variant, which add up to its physical balance minus its available balance.
What the filter does and does not do:
- The balance of each row does not change.
stock_afteris still the balance of the article at that moment, not the one of the variant alone: the filter decides which rows are listed. - An id that is not a variant of the article —one of another article or company, or one that does not exist— returns an empty page, an empty list in the commitments, and never the whole ledger. A variant that was deleted can still be read in the ledger.
- An id that is not valid is rejected. In the ledger of an article and in the commitments
it is
422invalid_param_valueonvariant_id; in the ledger of the company it is400parameter_invalid_uuid, like the other identifiers of that endpoint.
Each commitment also publishes variant_id: the variant whose stock it lowers, or null
when it lowers the stock of the article itself, which is also the case of a variant that does
not manage its own stock. A commitment of one variant never lowers the availability of
another.
GET /v1/companies/{company}/stock-movements?product_id=01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a10&variant_id=01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a21Reorder point and reorder quantity of each variant
A variant that manages its own stock (manage_stock: true) declares two thresholds next to
low_stock_threshold:
| Field | What it is |
|---|---|
reorder_point | When the physical stock of the variant is at or below it, the variant enters the reorder suggestions. It replaces low_stock_threshold as the trigger of the purchase. |
reorder_quantity | The quantity to replenish when the variant crosses its reorder point; without it the suggestion proposes the missing quantity. A declared 0 counts as not declared. |
Both are in base units, decimal strings with four decimals ("10.0000") or null when they
are not configured. They are written with POST /v1/companies/{company}/products/{product}/variants
and PATCH /v1/companies/{company}/products/{product}/variants/{variant}, and read with
GET /v1/companies/{company}/products/{product}/variants, with the variants embedded in the
product and in the snapshot of the product.* events.
PATCH /v1/companies/{company}/products/{product}/variants/{variant}{
"reorder_point": "10.0000",
"reorder_quantity": "60.0000"
}- Optional and nullable. Non-negative, with up to four decimals. On
PATCH, an absent key keeps the current value,nullremoves it and a number sets it. - Only with their own stock. A variant that does not manage its own stock refuses a value
that is not
nullwith422business_rule_violation, subcodeproduct_invalid_reorder_pointandparamreorder_pointorreorder_quantity;nullis always accepted. A variant that stops managing its own stock loses both values. - No inheritance, in either direction. The variant does not use the reorder point or the
quantity of the article, and the article is not triggered by those of its variants. They are
independent from
low_stock_threshold, which keeps driving the low-stock alert.
What the reorder suggestions do with them
An active variant that manages its own stock, of an active article, is a candidate of its own in the reorder suggestions:
- Trigger. Its
reorder_pointwhen it declares one, itslow_stock_thresholdwhen it does not, or a negative balance, with the same precedence as an article.trigger.reorder_pointandtrigger.reorder_quantityare the ones of the variant, and the row names it inproduct_variant_id. - Quantity. Its
reorder_quantitywhen it is declared and above zero; otherwise, what is missing to get back to the trigger. - Stock. The variant has its own committed and available quantities, so a variant with
physical stock and everything committed comes out as
stock_stateall_reserved. - Counts.
products_with_threshold_countincludes the article that has an active variant declaring only its reorder point.
An article with a reorder point of 50 and a physical stock of 100 does not trigger its variants, and a variant with a reorder point of 10 and a physical stock of 8 is a candidate even if the article is above its own.
The replacement of a base unit converts reorder_point and
reorder_quantity, of the article and of each variant, with the same rule as the other
thresholds. Its preview lists each one as an item of the plan with kind reorder_point or
reorder_quantity: an integration that enumerates kind must accept both values.
Stock and price of a product with variants
The full view of a product, in the REST API and in the MCP tools that return it, publishes two summaries that the server computes with a single definition, so an integration does not have to add up the variants itself:
| Field | What it carries |
|---|---|
stock_summary | total, the sum of the balances of the destinations of the product, in base units; destinations, how many balances it adds; and state, the worst of them: negative, out_of_stock, below_minimum or ok. |
price_summary | min and max, the lowest and the highest net price per base unit among the active variants; varies, true when they differ; and variants_with_own_price, how many active variants carry their own price. |
- Destinations. Each active variant with its own stock is a destination, and so is the
shared stock of the product, where the variants without stock of their own sell from. The
shared stock counts when the product manages stock and some active variant uses it, when its
balance is not zero, or when no active variant has stock of its own. With no variant that has
stock of its own,
destinationsis1andtotalis the stock of the product. - State. The minimum of a destination is its own
low_stock_thresholdwhen it is greater than zero and, if it has none, the default low-stock threshold of the company.is_low_stockand thelow_stockfilter of the list follow the same worst state: they aretruewhenstock_summary.stateisbelow_minimum,out_of_stockornegative. - Price. Each active variant is worth its own
base_price_overrideor, if it has none, thepriceof the product, without VAT, price list or promotion. Presentations and configurations are not counted, because their price is per package. A product without active variants hasminandmaxequal to itsprice. - Services.
stock_summaryisnullwhen neither the product nor any active variant manages stock.stockkeeps being the balance of the product itself.
{
"stock": "120.0000",
"stock_summary": { "total": "895.0000", "destinations": 3, "state": "below_minimum" },
"price_summary": { "min": "6.2000", "max": "6.9000", "varies": true, "variants_with_own_price": 1 }
}The variant of a line
A line that sells, buys, orders or moves a product with at least one active variant names that
variant: variant_id in the lines of invoices, corrective invoices, quotes, proformas,
delivery notes, recurring invoices, sales orders, purchase invoices and storefront sessions and
orders, and product_variant_id in the lines of purchase orders and stock transfers. The
variant decides the price of the line and the stock balance it moves. Without it the request is
a 422 catalog_variant_required whose error.param is
lines.N.variant_id (lines.N.product_variant_id in purchase orders and transfers) and whose
error.line_index is the zero-based position of the line; with a single line, param is the
field itself. It applies when the selection is created or changed, in the REST API, in the
imports and in the MCP tools.
{
"error": {
"type": "invalid_request_error",
"code": "catalog_variant_required",
"param": "lines.1.variant_id",
"line_index": 1,
"doc_url": "https://docs.factuarea.com/guides/errors#catalog_variant_required"
}
}A variant is not required for:
- A product without active variants. Deactivated and deleted variants do not count.
- A line the document already stored without a variant, when it is sent again untouched. In
an edit, a product that the document already stored without any variant is not rejected
again, while a product new to the document, or one the document stored with a variant, is
judged as on create. A purchase order line edited by its
idkeeps its variant and is not asked for it again. - Purchase and transfer lines that use the shared stock. They only move stock, so they may omit the variant when the product manages stock and at least one active variant has no stock of its own: the line goes to the shared balance of the product. If every active variant has its own stock, or the product does not manage stock, the variant is required.
Stock mode of a variant
manage_stock in PATCH /v1/companies/{company}/products/{product}/variants/{variant}, and in
the MCP tool update_product_variant, decides whether the variant keeps its own stock (true)
or sells from the stock of the product (false). The change is accepted only when the variant
holds no stock that the other mode would lose track of; otherwise it is a 422
variant_stock_mode_change_blocked with param
manage_stock, details.variant_id and the cause in subcode:
subcode | The variant has | Direction that it blocks |
|---|---|---|
has_own_stock | A total balance other than zero. | Own stock to the stock of the product. |
has_warehouse_balances | A total of zero but a warehouse that keeps a balance other than zero: a +5 and a −5 add up to zero and are still two balances. | Own stock to the stock of the product. |
has_live_reservations | Held reservations that have not expired. | Both. |
has_open_delivery_notes | Quantity committed on delivery notes of a sales order that were not delivered. | Both. |
has_stock_in_transit | Quantity shipped by a transfer and not yet received. | Both. |
Going from own stock to the stock of the product requires zero balances in every warehouse and
none of the three commitments above. Going the other way only checks the three commitments,
because what the variant set aside from the stock of the product while it sold from it would be
served against an own balance that starts at zero. Once accepted, the variant starts with zero
own stock, its earlier movements stay on the stock of the product, and a stock other than zero
sent in the same request is recorded as an entry in the ledger (goods_in).
The entry goes to the warehouse that a manual adjustment would use. When the company has no
warehouse yet and another request is creating it at the same time, the update answers 409
resource_conflict without writing anything: send the same request again.
{
"error": {
"type": "invalid_request_error",
"code": "variant_stock_mode_change_blocked",
"subcode": "has_live_reservations",
"param": "manage_stock",
"details": { "variant_id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a21" },
"doc_url": "https://docs.factuarea.com/guides/errors#variant_stock_mode_change_blocked"
}
}MCP tools
The tools below keep their name and take the same fields as their REST operations. The company comes from the MCP session. See the tool catalog.
| Tool | Scope | What it takes now |
|---|---|---|
list_product_stock_movements | products:read | variant_id, to read the movements of one variant of the article. |
search_stock_movements | products:read | variant_id, together with product_id. |
list_stock_availability_commitments | products:read | variant_id, and each commitment carries its variant_id. |
create_product_variant | products:write | reorder_point and reorder_quantity. |
update_product_variant | products:write | reorder_point and reorder_quantity, with the same absent, null and number rules as PATCH, and the 422 variant_stock_mode_change_blocked when manage_stock changes. |
search_products | products:read | The low_stock filter follows the worst state of stock_summary; the products carry stock_summary and price_summary. |
The tools that create or update documents with lines answer the 422 catalog_variant_required
with the same param and line_index, the latter in error.data.line_index.
Operations that change
- Stock movements and commitments. The three reads above gain
variant_id, and each commitment gainsvariant_id. - Variants.
products.variants.create,products.variants.listandproducts.variants.updatecarryreorder_pointandreorder_quantity, and the update can answervariant_stock_mode_change_blocked. - Products. The operations that return a product publish
stock_summaryandprice_summaryand embed its variants, which carry both reorder fields: creating, reading, listing, searching, updating, finding by SKU or external id, activating or deactivating, adjusting the stock and uploading the video of a product, and the low-stock report. - Lines. The operations that create or change documents with lines can answer
catalog_variant_required: invoices (create, update, bulk create and corrective), quotes, proformas, delivery notes, recurring invoices, sales orders (lines), purchase invoices, purchase orders (create, update and lines), stock transfers (create and lines), the acceptance of a reorder suggestion and the storefront sessions and orders. - Base unit replacement. Its preview and its execution handle the two new thresholds.
- Events and webhook deliveries. The events feed and the deliveries of a webhook endpoint
carry the product snapshot with the new fields in the
product.*events.