Skip to main content

Applications API

API endpoints for managing individual and business loan applications. Base Path: /api (application endpoints in main routes)
Code Reference: app/api/routes.py (application endpoints)

Application Management

Create Application

Create a new loan application. Request Body:
{
  "application_type": "business",
  "application_data": {
    "company_name": "ACME Corp",
    "requested_amount": 1000000.00,
    "purpose": "Working capital"
  }
}
Response: Created application with ID Code Reference: app/api/routes.py (create_application endpoint)

List Applications

List all applications with filtering. Query Parameters:
  • status: Filter by status
  • application_type: Filter by type (individual, business)
  • page: Page number
  • limit: Items per page
Response: Paginated list of applications

Get Application Details

Get detailed information about an application. Response: Complete application details

Update Application

Update an application. Request Body:
{
  "application_data": {
    "updated_field": "value"
  }
}
Response: Updated application

Update Application Status

Update application status (approve, reject, etc.). Request Body:
{
  "status": "approved",
  "notes": "Application approved"
}
Response: Updated application

Additional Resources


Last Updated: 2026-01-14
Code Reference: app/api/routes.py