The situation
Orders arrived from the brand’s online store and from marketplaces in several countries. Each channel had its own invoicing tool, each kept its own records, and returns were sometimes never credited. Reconciling them at month end took days.
What we built
- One invoicing service for every channel, replacing four separate tools.
- Invoices within 30 minutes of each order, in the right series, currency and VAT rate for each market.
- Credit notes for returns, including return fees kept from a refund, so the credit note always equals the money refunded.
- No duplicates. Every invoice is tied to its order, so a retry or a restart can never issue it twice.
- No hidden state. The service keeps nothing it could lose; the invoicing system is the record.
The result
Every order is invoiced without anyone typing, returns are credited the same day, and month-end reconciliation is a short check.