
Workflows
Definition
Auto-fulfillment automatically assigns an available Stock Item to each incoming order line at the moment the order is created. When enabled on a Service Location, the system picks a Stock Item from that location’s inventory without requiring a staff member to choose one manually. Auto-fulfillment is what makes high-volume online channels viable — every booking that comes in already has stock attached and is ready to be prepared.Where do I use it?
- High-volume online stores where manual stock selection is impractical
- Self-service and unstaffed pickup points
- Multi-location operations where a default location should claim orders first
- Workflows that depend on Stock Item assignment existing at order creation
- Reducing the time between order creation and a fulfillable order in the queue
Key Properties
Auto-fulfillment is configured per Service Location under Settings → Service locations → [Location] → Fulfillment. The configuration has three layers:Delivery methods per rule
Each fulfillment or return rule can enable one or more delivery methods:Per-purchase-type rules
When Use specific rules is enabled, separate rule sets exist for each purchase type:- Booking (
booking) — for rental orders - Purchase (
sale) — for sale orders - Subscription — for recurring orders
- Buyback — for buyback orders
Relationships
- Service Location → owns the fulfillment and return configuration.
- Stock Items → the inventory pool that auto-assign draws from. Only items at the matching location and matching the Listing’s variant are eligible.
- Order Items → on creation, each item is paired with one or more Stock Items if auto-assign is active.
- Workflows → can react to fulfillment events (assignment, pickup, return) — see Workflows.
- Channels → a Service Location can be restricted to certain sales channels via
salesChannelAdminandsalesChannelOnline.
Lifecycle
What triggers auto-fulfillment
Auto-fulfillment runs when an Order is created and at least one Service Location has:orderFulfillmentEnabled = trueuseAutoAssign = true- A rule for the line item’s purchase type with at least one delivery method enabled
- Available Stock Items matching the line item’s product and variant
Step-by-step
1
Order arrives
A customer checks out online, or an Order is created via the API or admin.
2
Eligible locations enumerated
TWICE finds Service Locations with
orderFulfillmentEnabled and the relevant channel flag (salesChannelOnline, etc.) set.3
Rules matched
For each line item, the system reads the rule matching the line’s
purchaseType. The line proceeds only if at least one delivery method is enabled on that rule.4
Auto-assign picks a Stock Item
If
useAutoAssign is on, TWICE picks an available Stock Item from the location’s inventory that matches the line item’s product and variant for the requested rental period.5
Order saved
The Stock Item is attached to the line item in fulfillment state
pending — assigned, but still replaceable by the switching logic. The order-level rollup stays Unfulfilled until staff prepare or hand over the items.Key behaviours
- Auto-assign is per location. A warehouse can auto-assign while a showroom stays manual.
- Rules are per purchase type. A location can accept in-store pickup for Bookings but require shipping for Purchases.
- Fulfillment and returns are configured separately. Enabling order fulfillment does not automatically enable returns. A location can ship orders out without accepting in-bound returns at the same time.
- No delivery method = no auto-assign. The system requires at least one of
inStoreEnabled,shippingEnabled, orlocalDeliveryEnabledon the matching rule. Enabling auto-assign with no rules configured leaves orders without a delivery method. - No available Stock Item = unfulfilled. Auto-assign never overbooks. If the pool is empty for the requested period, the line stays unfulfilled and a staff member must intervene.
Channel-specific behaviour
Service Locations carry per-channel flags. Auto-fulfillment respects these:
A location that only has
salesChannelOnline = true never auto-fulfills admin-created orders.
FAQs
What happens when I enable auto-assign with no fulfillment rules?
What happens when I enable auto-assign with no fulfillment rules?
Orders are created without a delivery method and remain Unfulfilled. Always configure at least one delivery method (in-store, shipping, or local delivery) on the rule for each purchase type you support at that location.
Can different locations auto-fulfill the same order?
Can different locations auto-fulfill the same order?
A single Order Item is assigned to one Stock Item at one location. Different line items in the same Order can be fulfilled from different locations. The selection is per-line, not per-order.
Why didn't my order get an auto-assignment?
Why didn't my order get an auto-assignment?
Common causes: the matching purchase type has no rule, all delivery methods on the rule are disabled, the location’s channel flag does not match the order’s channel, no Stock Items are available for the requested period, or
useAutoAssign is off on the location.Can I auto-fulfill returns the same way?
Can I auto-fulfill returns the same way?
Returns use the Order returns section with the same structure (per-purchase-type rules and per-method switches). There is no separate auto-assign for returns — when an item comes back, it’s matched to the existing Order Item rather than picked from inventory.
Does auto-fulfillment respect the cancellation policy?
Does auto-fulfillment respect the cancellation policy?
Auto-fulfillment runs before cancellation policies become relevant. If an order is cancelled later, the assigned Stock Item is released back to inventory regardless of how it was originally assigned.
Developer Reference
Auto-fulfillment rules live onservice-locations in the API.
API: Service Locations
Open the endpoint in the API reference.
Related
Order Lifecycle
How orders move through statuses from creation to completion.
Order Types
Rental, sale, subscription, and buyback orders.
Stock Item State
How Stock Items move when assigned and released.
Service Locations
Where fulfillment rules live.