// backend api reference

LAD Society API

Society Management Platform — Backend Service

Checking server status…

Node.js / Express / MongoDB backend powering authentication, billing, PDF generation, and real-time monitoring for LAD Society. Numbers below are read live from the running server.

—
API Endpoints
—
Route Groups
—
API Version
—
Server Uptime

01 Core Features

Secure Authentication

JWT-based auth with role-based access control, HTTP-only cookies, and hardened security headers.

User Management

Resident lifecycle management with approval workflows, roles, and granular module permissions.

Billing System

Automated invoicing, payment verification, and PDF receipt generation with analytics.

PDF Generation

Server-rendered bills, receipts, and notices via Puppeteer with custom templates.

Real-Time Layer

Socket.IO powers live notifications, chat, and (internally) full backend monitoring.

02 API Reference

Authentication
POST /api/auth/login
POST /api/auth/register
POST /api/auth/logout
GET /api/auth/me
POST /api/auth/refresh-token
Admin
GET /api/admin/users
GET /api/admin/users/pending
PATCH /api/admin/users/:id/approve
GET /api/admin/users/stats
Billing
POST /api/billing/admin/generate-bulk
GET /api/billing/resident/bills
GET /api/billing/admin/analytics
PDF Services
GET /api/pdf/receipt/:id/download
GET /api/pdf/bill/:id/download
Violation Categories
GET /api/violation-categories
POST /api/violation-categories

03 Tech Stack

Node.js
Express
MongoDB
JWT Auth
Socket.IO
Puppeteer