Five flows. Every record accounted for.
These are the system flows from the PrepSaas specification: the end-to-end platform, inbound receiving, outbound and FBA, billing and ledger, and request security. Each step shows who acts and what gets recorded.
End-to-end platform
The whole platform, from the day a prep center signs up to the day a seller pays.
This is the top-level map. Each step below is its own detailed flow on the next tabs.
- 01PrepSaas
Tenant provisioned
A prep center becomes an isolated tenant with its own warehouses, users, branding and rate cards.
records → tenant, warehouse, user - 02Warehouse staff
Client sellers onboarded
The prep center adds its client sellers and their SKUs. Each seller gets a portal login on the prep center's brand.
one user per client is a setting, not a rulerecords → client, client_user, sku - 03Seller
Inbound booked
A seller (or staff on their behalf) creates an ASN for stock on its way to the warehouse.
records → asn, asn_line - 04Warehouse staff
Received into inventory
Stock is counted, inspected and put away. Discrepancies are recorded against the ASN.
records → receipt, inventory - 05Warehouse staff
Prepped and shipped
Prep work orders run, cartons are packed and the FBA or outbound shipment is dispatched by carrier.
records → work_order, shipment, carton - 06PrepSaas
Nightly inventory snapshot
Every night the system stores each client's on-hand inventory. Storage is billed from these snapshots.
records → inventory_snapshot - 07Billing
Invoiced and settled
Charges become invoices with the right tax rate. Invoices and payments post to the client ledger.
records → charge, invoice, ledger_entry
Inbound receiving
How stock gets from a seller's supplier into a counted, located, billable inventory record.
Receiving is where most prep center disputes start. Every count and every exception is tied to the ASN line it belongs to.
- 01Seller
Create ASN
SKUs, expected quantities, carrier and tracking. Prep instructions can be attached per SKU.
records → asn, asn_line - 02PrepSaas
Expected at dock
The ASN appears on the receiving board for the destination warehouse with its expected date.
records → asn.status = expected - 03Warehouse staff
Check in
The delivery is matched to its ASN by reference or tracking number when it arrives.
unplanned delivery → create ASN on arrivalrecords → receipt - 04Warehouse staff
Count and inspect
Each line is counted against the expected quantity and inspected for damage.
overshortdamaged → photo + noterecords → receipt_line, discrepancy - 05Warehouse staff
Put away
Accepted units are moved to a bin or pallet location in the warehouse.
records → inventory_location - 06PrepSaas
Inventory available
On-hand quantities update for that client. The seller sees the result in their portal.
records → inventory - 07Billing
Receiving charges
Receiving fees from the client's rate card post as charges when the receipt is closed.
records → charge
Outbound and FBA
How inventory leaves the building, modelled at carton level the way FBA shipments actually work.
An FBA shipment is not a single parcel. PrepSaas records which units went into which carton, with each carton's weight and size.
- 01Seller
Request outbound
The seller requests an FBA or merchant shipment, choosing SKUs and quantities from available stock.
records → shipment - 02PrepSaas
Work order created
Prep tasks for the selected SKUs are generated from their prep instructions.
records → work_order - 03Warehouse staff
Pick and prep
Units are picked from their locations and prepped: labels, polybags, bubble wrap, bundles.
records → work_order_task - 04Warehouse staff
Pack cartons
Units are packed into cartons. Each carton records its contents, weight and dimensions.
mixed-SKU cartoncase-packed cartonrecords → carton, carton_content - 05Warehouse staff
Label and assign carrier
Carton labels are applied and a carrier is assigned from the carrier list.
records → carrier - 06PrepSaas
Dispatch
The shipment is closed with tracking. Inventory is deducted carton by carton.
records → inventory, shipment.status = shipped - 07Billing
Prep and outbound charges
Prep task fees and outbound fees post as charges to the client.
records → charge
Billing and ledger
How every billable event becomes an invoice line, and every invoice and payment becomes a ledger entry.
Charges are created by operations as they happen. Billing never depends on someone remembering to add a fee later.
- 01PrepSaas
Billable events
Receiving, prep tasks, outbound, returns handling and other services each raise a charge when completed.
receivingprepoutboundreturnsrecords → charge - 02PrepSaas
Storage from snapshots
Storage charges are calculated from nightly inventory snapshots for the billing period.
records → inventory_snapshot → charge - 03Billing
Rate card applied
Each charge is priced from that client's rate card, so two sellers can pay different rates for the same task.
records → rate_card - 04Billing
Invoice drafted
At period end, unbilled charges for a client roll into one draft invoice.
records → invoice, invoice_line - 05Billing
Tax applied and issued
The correct tax rate is applied and the invoice is issued to the client.
records → tax_rate - 06Billing
Posted to ledger
The invoice posts as a debit on the client ledger. Payments and credits post against it.
records → ledger_entry - 07Seller
Balance visible
The seller sees invoices, payments and their running balance in the portal.
Request security
What happens to every request, from the browser to the database, before any data comes back.
Tenant isolation is enforced in layers, including at the database level, not only in application code.
- 01Security layer
Encrypted connection
The request arrives over HTTPS to the prep center's domain or subdomain.
- 02Security layer
Tenant resolved
The domain identifies the tenant. Requests that do not resolve to a tenant are rejected.
records → tenant - 03Security layer
User authenticated
The session is checked and the user's role within that tenant is loaded.
records → user, role - 04Security layer
Permission checked
Staff, admin and client-seller roles see different actions. A seller is limited to their own client account.
staffadminclient seller - 05PrepSaas
Tenant-scoped query
Every query is scoped to the tenant, and for sellers to their client, with isolation enforced in the database.
- 06PrepSaas
Audit logged
Changes record who did what, and when.
records → audit_log - 07PrepSaas
Response
Only data the user is allowed to see is returned.
One seller, one month, one invoice.
Lumen Home sends 640 units on ASN-4471. 636 are received, 220 are prepped, and 14 cartons ship to FBA. Storage comes from 30 nightly snapshots. This is the invoice that falls out of those flows.
Run these flows on your floor.
Start a trial and push a real ASN through receiving, prep, cartons and invoicing.