All projects

Compre Alva

B2B portal where clients and sales reps build wholesale orders, with per-client storefronts, quotes and Omie integration.

Screen · Compre Alva
Compre Alva: B2B portal where clients and sales reps build wholesale orders, with per-client storefronts, quotes and Omie integration.

About the project

Compre Alva is the B2B channel of Alva Personal Care. Wholesale clients, sales reps and the marketing team place orders through it, and every order flows into the Omie ERP to be invoiced.

Each client sees their own storefront, and the URL carries the storefront context. Operators can act as the client to build an order for them, quotes turn into checkouts and orders can stay as drafts until they are finished.

The Omie integration covers orders, customers, stock and products, with webhooks, a sending queue with replay and integration logs so the team can investigate failures without depending on me.

What shipped

  • Per-client storefronts with the context in the URL and access groups
  • Operators building the order on behalf of the client
  • Quotes, drafts and an order summary exported as PDF
  • Coupons, discounts and bonus items sent in the right order to invoice in Omie
  • Required carrier at checkout and custom carriers per storefront
  • Pre-registration with CNPJ validation and a server-side cart
  • End-to-end tests, load tests and a product changelog

How it works

  1. 01 · Who uses it
    • B2B clients
    • Sales reps
    • Marketing
  2. 02 · Front end
    • Next.js
    • Storefronts by slug
  3. 03 · Back end
    • Django API
    • Integration queue
    • Logs
  4. 04 · Integrations
    • Omie (ERP)
    • Asaas (payments)
    • HubSpot (CRM)
    • Live Shopping
Next project →Alva Tools