Who are the actors in a multi-vendor marketplace?
- Customers browse, build a cart, pay and track orders. They never see another customer's data.
- Vendors manage their own products, stock, incoming orders and earnings. They must never see another vendor's data.
- Admins approve vendors, set commission, handle disputes and see everything.
How should the data model split vendors from customers?
Prisma
Why does a multi-vendor order need sub-orders?
How do commission and payouts work?
How should authentication and roles work?
Ts
How do you manage inventory across vendors?
What should run in background jobs?
What should you build first?
- Users, roles and sessions, with the server-side checks in place.
- Vendor onboarding and an admin approval step.
- Products and variants owned by vendors, with a vendor dashboard.
- Customer catalogue, cart and checkout creating one Order and its SubOrders in a transaction.
- Stock decrement, order statuses and vendor order screens.
- Background jobs for emails and notifications.
- Commission ledger and payouts.
- Extras such as reviews, coupons and recommendations.