Foodstocks Reseller Ecosystem
A B2B ordering portal that turns resellers into a loyal community. They browse the catalog, place orders, and track shipments and payments end to end — while points, tiers, leaderboards, and rewards keep them coming back.

01The Challenge
Reseller orders, payments, and shipments were handled manually, which made the network hard to scale and gave resellers little visibility into their own orders.
The business also wanted a fair way to reward its most active resellers.
02The Solution
An API-first reseller platform: catalog and pricing, cart, orders with cancellation, payments with gateway webhooks, shipping-rate checks, and shipment tracking — all behind role-based access and row-level security.
Scheduled jobs recalculate reseller tiers and the leaderboard daily, expire unpaid orders, and poll shipment status. Admins manage orders, refunds, shipments, products, stock, and users, with audit logs and an observability view.
03Main Modules
- Product catalog and tier-based pricing
- Cart, orders, and cancellation
- Payments with gateway webhooks
- Shipping-rate check and shipment tracking
- Daily tier and leaderboard recalculation
- Admin: orders, refunds, shipments, products, stock, users
- Audit logs and observability