Variant stock in the stock ledger
The stock sent when creating or editing a variant enters the stock ledger as a movement in the default warehouse, instead of being written without a trace. 2 updated operations and the MCP tools that mirror them.
December 3, 2026 — The stock of a variant that manages its own stock is no longer written
without a trace when you create or edit it: it enters the stock ledger as a movement in the default
warehouse, just like an adjustment with PATCH /v1/companies/{company}/products/{product}/stock.
The total of the variant always matches its split by warehouse, and the change shows up in the
stock movements of the product. No operation is new and no field changes: the 2 that change are
listed at the end of this page and link to their API Reference page.
Creating a variant
POST /v1/companies/{company}/products/{product}/variants with manage_stock: true creates the
variant with zero, and its stock enters as a goods-in movement (goods_in) in the default
warehouse. With manage_stock: false, stock must still be 0.
Like any entry in the stock ledger, the creation can answer 409 resource_conflict when another
request was reserving identifiers at that moment. Nothing is written: send the same request again
after a few seconds.
Editing a variant
PATCH /v1/companies/{company}/products/{product}/variants/{variant}:
- Its current balance changes nothing, even when it is negative because a delivered delivery note ran ahead of the incoming goods.
- A different value is a manual adjustment: it sets the total of the variant and the difference
goes to the default warehouse. Never below zero: a different negative value answers
422. - When it starts managing its own stock, the variant starts at zero and the quantity you send enters as a goods-in movement.
The warehouse
The movement goes to the warehouse that the same chain as the manual adjustment resolves: the
preferred warehouse of the product and, failing that, the default warehouse of the company. If the
company uses warehouses and there is none to book it to, the answer is 422
warehouse_not_resolvable and nothing is written. A company
without warehouses only moves the total. To choose the warehouse, the reason or a note, use
PATCH /v1/companies/{company}/products/{product}/stock with variant_id.
MCP tools
create_product_variant and update_product_variant follow the same rules as POST and PATCH.
The company comes from the MCP session. See the tool catalog.
Updated endpoints2
| Endpoint | Description |
|---|---|
POST/v1/companies/{company}/products/{product}/variants | Create a product variant |
PATCH/v1/companies/{company}/products/{product}/variants/{variant} | Update a product variant |