← All workflow examples
Systems integration

Removing order re-keying across storefront, warehouse and accounting

An event-driven workflow synchronising orders with idempotent writes, preventing retries from creating duplicate invoices. This is an example workflow design; the exact approach and results depend on the organisation’s process, data and systems.

INDUSTRY
E-commerce
SERVICES
Systems Integration
92%
faster processing
3
systems connected
0
orders re-keyed

The problem

Orders may be placed on a storefront, then manually entered into the warehouse system and, at month end, into accounting. Mismatches may not be found until reconciliation weeks later.

Typical manual workflow

  1. 01Order placed onlinemanual
  2. 02Exported to CSV dailymanual
  3. 03Entered into warehouse systemmanual
  4. 04Shipping updated by handmanual
  5. 05Invoices keyed at month endmanual
  6. 06Mismatches reconciledmanual

Dashed steps are typically done by hand.

The approach

Each order produces events that update the warehouse and accounting systems within seconds. Every write carries an idempotency key, preventing a retried request from creating a second invoice.

Example system design

  1. 01 · TRIGGER
    Storefront
    Order created or updated
  2. 02 · ACTION
    Normalise
    Map SKUs, tax and addresses
  3. 03 · APP
    Warehouse
    Pick list created
  4. 04 · APP
    Accounting
    Invoice with idempotency key
  5. 05 · DATA
    Event log
    Every write is replayable
Steps run left to right, top to bottom. Dashed nodes are where a person reviews or decides.

Design decisions

Why use custom code instead of a no-code tool

At high order volumes, or where exact replay matters, a small service can be easier to test and operate.

Failure handling

WHENTHE SYSTEM
▲An SKU is unknownThe order is held and operations is notified with the product link.
▲The accounting API rejects an invoiceThe request is retried with backoff, then queued for manual review with the error.

Example outcomes

MEASUREMANUAL PROCESSAUTOMATED PROCESS
Time per order6 min30s
Month-end mismatches40–600–2

Technology

  • TypeScript
  • PostgreSQL
  • Shopify API
  • Xero API
  • Queue workers

Have a workflow like this?

Let's map it together.

Book a workflow call → Tell us about your workflow

More workflow examples

Finance automation87%A workflow for faster financial statement review Sales operations16hA workflow for routing inbound leads to the right owner Customer support52%A workflow for ticket triage and agent-approved replies