Files
multitenetsaas/docs/api/README.md
AHMET YILMAZ b3fff546e9
Some checks failed
System Monitoring / Health Checks (push) Has been cancelled
System Monitoring / Performance Monitoring (push) Has been cancelled
System Monitoring / Database Monitoring (push) Has been cancelled
System Monitoring / Cache Monitoring (push) Has been cancelled
System Monitoring / Log Monitoring (push) Has been cancelled
System Monitoring / Resource Monitoring (push) Has been cancelled
System Monitoring / Uptime Monitoring (push) Has been cancelled
System Monitoring / Backup Monitoring (push) Has been cancelled
System Monitoring / Security Monitoring (push) Has been cancelled
System Monitoring / Monitoring Dashboard (push) Has been cancelled
System Monitoring / Alerting (push) Has been cancelled
Security Scanning / Dependency Scanning (push) Has been cancelled
Security Scanning / Code Security Scanning (push) Has been cancelled
Security Scanning / Secrets Scanning (push) Has been cancelled
Security Scanning / Container Security Scanning (push) Has been cancelled
Security Scanning / Compliance Checking (push) Has been cancelled
Security Scanning / Security Dashboard (push) Has been cancelled
Security Scanning / Security Remediation (push) Has been cancelled
project initialization
2025-10-05 02:37:33 +08:00

2.8 KiB

API Documentation

This directory contains comprehensive API documentation for the Multi-Tenant SaaS Platform for Malaysian SMEs.

Table of Contents

API Standards

Base URL

https://api.yourplatform.com/v1

Authentication

All API endpoints require authentication using Bearer tokens:

Authorization: Bearer <your-access-token>

Response Format

All responses follow this standard format:

{
  "success": true,
  "data": {},
  "message": "Success message",
  "timestamp": "2024-01-01T00:00:00Z",
  "request_id": "req_123456789"
}

Error Handling

{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Detailed error message",
    "details": {}
  },
  "timestamp": "2024-01-01T00:00:00Z",
  "request_id": "req_123456789"
}

HTTP Status Codes

  • 200 - Success
  • 201 - Created
  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Forbidden
  • 404 - Not Found
  • 422 - Validation Error
  • 429 - Rate Limited
  • 500 - Internal Server Error

Multi-Tenant Headers

All requests must include the tenant identifier:

X-Tenant-ID: <tenant-id>

Rate Limiting

  • Standard endpoints: 100 requests per minute
  • Auth endpoints: 10 requests per minute
  • File upload endpoints: 20 requests per minute

Malaysian Market Features

SST (Sales and Service Tax)

All pricing-related endpoints include SST calculation and display:

{
  "subtotal": 100.00,
  "sst_rate": 0.06,
  "sst_amount": 6.00,
  "total": 106.00
}

Malaysian Phone Validation

Phone numbers are validated according to Malaysian formats:

  • +60123456789 or 0123456789
  • Mobile numbers: 01[2-46-9]

Business Registration

All tenant endpoints validate Malaysian business registration numbers.

Malaysian Timezone

All timestamps are in Asia/Kuala_Lumpur timezone.

Getting Started

  1. Obtain API credentials
  2. Create your first tenant
  3. Set up your modules
  4. Explore module-specific APIs

SDKs

We provide official SDKs for:

Support

For API support: