A warehouse is a place stock is kept, with a unique code and an address. A stock row holds one product’s quantities in one warehouse: available, reserved, in transit and on hand; it is read-only here. A transaction is a ledger entry for one movement of stock; one you record cannot be changed or deleted. A transaction that makes a product available again fires the back-in-stock event that a job can turn into an email.
A fulfilment is the part of a placed order that leaves one warehouse together, as a delivery or a pickup. A delivery moves from pending to ready, in_transit and delivered; a pickup moves from pending to ready and delivered, which reads “Collected”. Both can be cancelled until they leave the warehouse. A fulfilment whose shipping method has nothing to ship, such as a gift card or a service, has no warehouse and is delivered when the order is paid. The status changes only through the fulfilment routes on this page. Each answers with the fulfilment under data.fulfillment and a message, a 422 with a message when the change is refused, and a 403 when the user’s role may not make it.
With inventory tracking on, the platform writes transactions as an order moves. The purchase holds each line’s stock (checkout_reservation), and a fulfilment added by hand holds its own (fulfillment_reservation). The hold moves with the fulfilment’s warehouse and goes when a pending fulfilment is deleted. Shipping, delivering, collecting and cancelling each write a transaction with a reason: fulfillment_shipped, fulfillment_delivered, fulfillment_collected or fulfillment_cancelled.