Set product inventory
set_product_inventorySet stock counts and stock policy for a Replo-managed product's variants, addressing each variant by its option-value combination (empty optionValues for a product with no options). available is an absolute count, not a delta. Turning on trackInventory without an available count leaves the variant unsellable until a count exists — set both together. Only products the merchant fulfills themselves can track stock; print-on-demand and digital variants are made to order and will be refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | Yes | ||
| productId | Yes |