Date: February 6, 2026
Version: 1.1
Status: Draft Update
This document serves as the comprehensive technical reference for the Corporate Backend API. It details all available endpoints, authentication flows, and data structures.
The system uses JWT (JSON Web Tokens) for security. All protected endpoints must include the token in the header:
Authorization: Bearer <access_token>
POST /auth/register
Creates a new user account.
// Request
{
"userName": "jdoe",
"email": "jdoe@example.com",
"mobileNumber": "+1234567890",
"password": "SecurePassword123!",
"otp": "123456"
}
// Response
{
"accessToken": "ey...",
"refreshToken": "...",
"userId": "guid...",
"userName": "jdoe"
}
POST /auth/login
{
"userNameOrEmail": "jdoe",
"password": "SecurePassword123!"
}
/auth/send-otp - Send OTP (Channel: 1=Email, 2=SMS; Purpose: 1=Register, 2=Login)/auth/verify-otp - Verify OTP Code/auth/resend-otp - Resend Code| Method | Endpoint | Description |
|---|---|---|
| GET | /company/profile | Get company profile details |
| POST | /company/profile | Upsert company profile |
| GET | /company/authorized-person | List authorized personnel |
| POST | /company/authorized-person | Add/Update authorized person |
| Method | Endpoint | Description |
|---|---|---|
| GET | /transactions | List all transactions |
| POST | /transactions | Create new transaction |
| PUT | /transactions/{id}/approve | Approve transaction |
| PUT | /transactions/{id}/reject | Reject transaction |
| Method | Endpoint | Description |
|---|---|---|
| POST | /documents/upload | Upload document file |
| GET | /documents/status | Check document status |
| Method | Endpoint | Description |
|---|---|---|
| GET | /users | List all users |
| POST | /users | Create user (Admin) |
| PUT | /users/{id}/role | Assign Access Role |
| POST | /users/activate | Activate/Deactivate User |