Definition
Most operational work in TWICE follows one of a small set of end-to-end workflows. Each workflow chains together the four core asset types — SKU, Stock Item, Listing, and Order — plus the Customer record that triggers the transaction.Rental fulfillment
The default flow for any short-term rental or booking.
Failure modes — late returns, damage, partial returns — all hang off step 5 and may create child orders or attribute changes on the Stock Item.
Resale processing
Acquiring used inventory and selling it as a finite-quantity Listing.- Intake — a Stock Item is created (manually or via bulk import) with attributes for
purchase_price,condition, andacquisition_date - Grading — staff fill in condition attributes; photos are uploaded against the Stock Item
- Listing — a Listing is created or matched. Fulfillment rules link the Listing to this Stock Item via SKU and condition
- Pricing — a sale-type pricing table is added to the Listing; depreciation formulas can reference the Stock Item’s age and purchase price
- Sale — a customer Order moves the Stock Item from
AvailabletoCommittedand thenFulfilled - Archival — once sold, the Stock Item is archived but stays linked to the order for history
Buyback operations
Buying items back from a customer — typically as trade-in for a new sale or rental credit.- Quote — a buyback order is opened with the Customer; line items reference the SKU and condition the customer is returning
- Intake — when the item arrives, a new Stock Item is created against the SKU with
acquisition_source = buyback - Credit — payment runs in the opposite direction — outbound credit applied to the customer balance or settled via a payment account
- Reintroduction — the new Stock Item enters the resale or rental pool depending on its condition
Maintenance tracking
Keeping rental pool inventory serviceable.Inventory transfers
Moving Stock Items between service locations.- Source location — staff select Stock Items in the Inventory table and trigger a transfer
- In transit — the Stock Items are flagged as
Committedto the transfer reservation; the source location no longer counts them as available - Receipt — at the destination, staff confirm receipt; the Stock Items’
service_locationattribute updates - Audit — the transfer is captured in the Activity log against each Stock Item with both source and destination IDs
Where workflows live in the product
- Inventory view drives the resale, maintenance, and transfer workflows
- Orders view drives rental fulfillment and buyback
- Catalog view is the connective tissue — Listings and their fulfillment rules decide which Stock Items each workflow can touch
- Activity log on every entity is your audit trail across all of the above
Related
Design Patterns
The data model these workflows operate on
Usage Patterns
Day-to-day interaction patterns
Status vs State
How records transition through each workflow