Marketplace orders into SAP, on AWS
Orders and returns from Amazon, Flipkart and Meesho must become correct SAP Business One invoices and credit notes, with the right customer, GST code and batch. I moved this from a Frappe module to serverless AWS and was the only engineer on it.
Tests passed while production quietly posted nothing, because a SAP login error was swallowed. Login failures now stop the run and alert, and I check each release against the live system.
- Built
- 16 Lambda functions, 7 scheduled jobs, a 14-route dashboard API and a React console for retries and reconciliation.
- Safe to re-run
- Each order is claimed atomically. Duplicate checks run against SAP and fail closed. Stalled orders recover on their own.
- Stock
- Batch allocation by earliest expiry across live inventory, including orders split over several lines.
- Checked
- 204 automated tests, plus cross-checks against the live SAP system.
- Stack
- Python 3.12, EventBridge, RDS Postgres, SAP Service Layer and HANA, Cognito, React, TypeScript, GitHub Actions.