Skip to content

API Endpoints Directory ​

All routes are mounted under the /api prefix and require a Bearer token unless explicitly marked public.

1. Authentication & Identity (/auth) ​

MethodEndpointDescription
POST/api/auth/loginEmail/password login; returns JWT and user context
POST/api/auth/pinQuick 4-digit POS counter PIN login
POST/api/auth/logoutRevokes current session token
GET/api/auth/sessionValidates session token and returns active user and tenant
POST/api/auth/manager-overrideEphemeral high-privilege manager approval
DELETE/api/auth/sessions/:id/revokeRevokes active concurrent device session

2. Organization & Workspace ​

MethodEndpointDescription
GET/api/tenantsList accessible tenants for authenticated user
PATCH/api/tenants/:idUpdate tenant details, trade name, GSTIN, and currency
GET/api/branchesList branches for active tenant
POST/api/branchesCreate a new store branch / warehouse outlet
GET/api/usersList staff and cashiers across branches
POST/api/usersInvite user or create counter cashier
GET/api/rolesList RBAC roles and granular permission sets

3. Catalog & Products ​

MethodEndpointDescription
GET/api/productsPaginated product search with barcode, SKU, category filters
POST/api/productsCreate product with HSN code, tax rate, cost and selling prices
GET/api/products/:idGet full product details
PATCH/api/products/:idUpdate product attributes
DELETE/api/products/:idSoft-delete product
GET/api/categoriesList product categories
POST/api/categoriesCreate hierarchical category
GET/api/uomsList Units of Measure (e.g. PCS, KG, BOX) (alias: /api/units)

4. Sales & Counter Billing ​

MethodEndpointDescription
POST/api/salesCreate complete sale transaction with atomic inventory decrement
GET/api/salesPaginated sale invoice search
GET/api/sales/:idGet invoice details with line items, tax split, and payments
GET/api/sales/:id/invoiceBranded HTML / PDF thermal invoice representation
POST/api/sales/holdSuspend current cart and issue held ticket number
GET/api/sales/holdsList active held tickets for current register
PATCH/api/sales/:id/paymentApply subsequent payment to pending credit sale
POST/api/sales/:id/credit-noteIssue sales return credit note

5. Cash Register & Shift Operations (/register) ​

MethodEndpointDescription
GET/api/register/statusCurrent register status and active shift summary
POST/api/register/openOpen new shift with initial cash float
POST/api/register/cash-movementRecord Pay-In or Pay-Out
POST/api/register/cash-dropDrop excess cash into branch drop safe
GET/api/register/x-reportMid-shift financial tally without closing drawer
POST/api/register/handoverBlind shift handover with physical note denomination count
POST/api/register/closeLock shift and generate final Z-Report
POST/api/register/z-report/dispatch-ownerEmail daily Z-Report PDF to tenant owner

6. Inventory & Warehousing (/inventory) ​

MethodEndpointDescription
GET/api/inventory/overviewBranch stock levels, valuation, and low-stock indicators
GET/api/inventory/movementsHistorical stock ledger movements
POST/api/inventory/adjustmentsManual stock variance adjustment (damage, shrinkage)
GET/api/inventory/auditsList physical stocktaking audit sessions
POST/api/inventory/auditsStart a new stocktaking audit cycle
POST/api/inventory/audits/:id/scansRecord barcode count scan
POST/api/inventory/audits/:id/reconcileApprove and reconcile physical count variances
POST/api/inventory/transfersInitiate inter-branch stock transfer
POST/api/inventory/rtvReturn to vendor with automatic debit note creation

7. Purchases & Vendors (/purchases) ​

MethodEndpointDescription
GET/api/purchasesList purchase orders and vendor bills
POST/api/purchasesCreate purchase order
PATCH/api/purchases/:id/receiveReceive goods into inventory and record supplier invoice
POST/api/purchases/:id/paymentRecord vendor accounts payable settlement
POST/api/purchases/:id/debit-noteIssue debit note against supplier invoice

8. Parties & Accounts ​

MethodEndpointDescription
GET/api/customersSearch customer directory
POST/api/customersCreate customer with GSTIN validation
GET/api/customers/lookupQuick phone/GSTIN lookup at counter
GET/api/customers/:id/statementChronological customer statement of account (SOA)
GET/api/suppliersSearch supplier directory
GET/api/suppliers/:id/statementSupplier statement of account

9. Enterprise Documents ​

MethodEndpointDescription
GET/api/quotationsList sales quotations
POST/api/quotationsCreate sales quotation
POST/api/quotations/:id/convert-to-saleConvert accepted quotation into sale
GET/api/delivery-challansList delivery challans
POST/api/delivery-challans/:id/convert-invoiceConvert delivery challan into tax invoice
GET/api/eway-bills/:id/jsonNIC-compatible JSON payload for E-Way portal
GET/api/gift-cards/balance/:codeFast gift card balance verification
POST/api/gift-cards/redeemDeduct amount from gift card

10. Reports & Analytics (/reports) ​

MethodEndpointDescription
GET/api/reports/summaryExecutive high-level sales and revenue metrics
GET/api/reports/revenue-by-dayDaily revenue trends
GET/api/reports/pnlProfit and loss analysis
GET/api/reports/aging-analysisAccounts receivable and payable aging buckets (30/60/90 days)
GET/api/reports/dead-stockDormant inventory without sales activity
GET/api/reports/exportExport sales or inventory data to CSV/Excel

MEGSTAT POS — Built for Retail Stores & Multi-Branch Businesses