Welcome to Commercia360

A sales management platform with complete data isolation per company. Track your client portfolio, product catalogue and stock, record sales with payments and credit, route discounts and refunds through approval workflows, and monitor performance with real-time analytics — all secured by per-company role-based access control and a full audit trail.

Sales Management

Sales for registered clients or walk-in customers, line and global discounts with approval ceilings, and a configurable credit policy

Catalogue & Stock

Products and families with a deactivation/reactivation lifecycle, bulk import, and a stock ledger that records every movement

Payments & Credit

Payment tracking with advances and balances, overdue exposure analytics, and refunds that escalate to approval above company thresholds

Enterprise Security

JWT authentication with company-specific RBAC capabilities, hierarchical permission overrides, and data isolation between companies

API Endpoints

The API provides the following main endpoints for interacting with the system:

Sales

Sales for registered clients or walk-in customers, discounts with approval ceilings, credit policy enforcement, and overdue tracking.

/api/v1/sales/sales

Clients

Client portfolio scoped to the seller's assigned sector, with sites and per-company isolation.

/api/v1/clients

Products

Product catalogue with pictures, bulk import, and a deactivation/reactivation lifecycle gated by approvals.

/api/v1/sales/products

Product Families

Product family management with import support, shared across the catalogue and analytics.

/api/v1/sales/product-families

Stock Ledger

Stock movements recorded in a company ledger — entry, exit, adjustment — with per-product history.

/api/v1/sales/stock/movements

Payments

Payment tracking per sale with advances, balances, and refunds that escalate to approval above company thresholds.

/api/v1/sales/payments

Approvals

Approval workflows for discounts above ceilings, refunds above thresholds, and product reactivations.

/api/v1/sales/approvals

Geography

Regions, zones and markets that scope the sales perimeter and drive geographic analytics.

/api/v1/sales/regions · zones · markets

Sales Targets

Company sales targets per consultant, region and product, compared against realized performance.

/api/v1/sales/targets

Analytics

Native analytics endpoints: revenue by period, region or product, cross analyses, and overdue exposure.

/api/v1/analytics

Company Registration

Self-service company registration allowing business owners to create their own isolated company environment.

/api/v1/company/register

Authentication

Secure JWT-based authentication with multi-tenant context. Includes login, Google sign-in, and password reset.

/api/v1/auth

Company Settings

Company profile, branding and logo, credit policy with minimum advance percentage, and refund thresholds.

/api/v1/company

Consultants

Team management with status, avatar, sector assignment, and user-type configuration per company.

/api/v1/consultants

Roles & Permissions

Company roles, the capability catalogue, and per-user permission overrides with hierarchical denial rules.

/api/v1/rbac · /api/v1/company/roles

Audit

Company audit trail of sensitive operations — company settings, permissions, and product lifecycle.

/api/v1/audit

Delegations

Company delegations granting temporary access scopes, with batch revocation.

/api/v1/company/delegations

Ready to Get Started?

Explore our comprehensive API documentation to learn more about the available endpoints, request/response formats, and authentication requirements.

View API Documentation

Getting Started Guide

Follow these steps to get started with Commercia360:

  1. Company Registration: Create your company account using /api/v1/company/register with company details and owner information.
  2. Authentication: Login with your credentials to obtain a JWT token that includes your company context.
  3. Company Setup: Configure your company profile, credit policy (minimum advance percentage) and refund thresholds.
  4. Geography & Team: Create your regions, zones and markets, invite team members, and assign roles and capabilities.
  5. Catalogue & Stock: Import your products and families, then record stock movements in the ledger.
  6. Sell: Create sales for a client or a walk-in customer, record payments, and approve discounts or refunds when required.

Example Company Registration

POST /api/v1/company/register
Content-Type: application/json

{
  "company": {
    "name": "RAYE Consulting Solutions",
    "email": "contact@rayeconsulting.com",
    "address": "15 Avenue des Champs-Élysées, 75008 Paris"
  },
  "owner": {
    "email": "herve.raye@rayeconsulting.com",
    "password": "SecurePassword2024!",
    "firstName": "Hervé",
    "lastName": "RAYE",
    "phone": "+33 6 12 34 56 78"
  }
}

Authentication Example

Once your company is registered, authenticate to access the API with your company context:

Login Request

POST /api/v1/auth/login
Content-Type: application/json

{
  "email": "herve.raye@rayeconsulting.com",
  "password": "SecurePassword2024!"
}

// Response includes company context
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  "user": {
    "id": 1,
    "email": "herve.raye@rayeconsulting.com",
    "firstName": "Hervé",
    "lastName": "RAYE",
    "roles": ["ROLE_COMPANY_OWNER"],
    "isAdmin": true,
    "isCompanyOwner": true
  },
  "company": {
    "id": 1,
    "name": "RAYE Consulting Solutions",
    "logo": "https://api.example.com/uploads/logos/company_1/logo-raye-consulting.png"
  }
}