Waylo Commerce
Commerce

Inventory

Inventory items, stock locations, levels, and reservations.

Stock is tracked on inventory items, not on variants. A variant is linked to one inventory item by default, or to several (an inventory kit, for bundles). Each inventory item has a level per stock location.

Variant settings

FieldEffect
manage_inventoryWhen false, the variant is never checked or reserved. Use it for services or made-to-order items.
allow_backorderWhen true, the variant can be ordered with no stock. Reservations are still made.

Levels

QuantityMeaning
stocked_quantityUnits on hand at the location.
reserved_quantityUnits held for placed orders that aren't fulfilled yet.
incoming_quantityExpected units. Informational only; it doesn't count as available.
available_quantitystocked_quantity minus reserved_quantity.

Availability in a storefront

  • Request +variants.inventory_quantity on product routes. It is the available quantity across the stock locations linked to the request's sales channel.
  • Adding to a cart and completing it both check stock the same way. A location not linked to the cart's channel never counts.
  • With an inventory kit, ordering one unit needs required_quantity of each linked item.

Reservations

EventEffect
Cart completed, or draft order convertedA reservation per line, at a location serving the channel.
Fulfillment createdReservation consumed and stocked_quantity reduced.
Fulfillment canceledStock and reservation restored.
Order canceledReservations deleted.
Return receivedReturned units added back at the chosen location.

Carts and open draft orders hold no stock. Two buyers can have the last unit in their carts; the first to complete gets it.

Merchants can also create manual reservations, for example to hold stock for a pending deal.

Admin routes

On this page