# Apex Wholesale & Distribution Co. — B2B Merchant Portal & Credit Control Documentation

## Overview
This is the official B2B Dealer & Retailer Portal for **Apex Wholesale & Distribution Co.**, a premier master distributor of FMCG, Packaged Foods, Personal Care, and Household Goods. 

The portal features an integrated **AI Credit Control Agent** powered by Raya AI that assists retail merchants and dealers with credit management, invoice settlement, and real-time ledger statements.

---

## Key Portal Capabilities for Dealers & Retailers

### 1. Wholesale Bulk Ordering Catalog
Browse bulk wholesale categories (Packaged Foods, Beverages, Hygiene & Personal Care, Household Products) with volume-tiered wholesale pricing and Net-30 credit order options.

### 2. Live Dealer Credit Dashboard & Credit Limit Gauge
Displays real-time credit metrics for logged-in merchants:
- **Sanctioned Credit Limit:** ₹5,00,000
- **Utilized Credit Balance:** ₹3,42,500 (68.5% limit used)
- **Available Credit for New Orders:** ₹1,57,500
- **Current Payment Terms:** Net-30 (Grace period: 5 days)

### 3. Integrated AI Credit Control Assistant (Live Widget)
An embedded 24/7 AI credit agent capable of:
- **Outstanding Balance Lookups:** Detailed breakdown of principal, pending invoices, and late fees.
- **Instant Ledger PDF Generation:** Downloads official Tally/SAP statement of accounts.
- **Self-Service Credit Extension:** Applies company rules to grant 7 to 14-day extensions or 2-part weekly installment plans.
- **Payment Link & QR Generator:** Instant UPI QR code and Net-Banking payment link creation.

### 4. Open Invoice & Delivery Status Tracker
Table listing all historical and active invoices (`#INV-2026-881`, `#INV-2026-904`, etc.), order dispatch status, due dates, and quick payment buttons.
