Skip to main content

Recovery API

API endpoints for loan recovery, default detection, recovery actions, and borrower contact management. Base Path: /api/recovery
Code Reference: app/api/recovery_routes.py

Default Management

List Defaults

List all loan defaults with filtering. Query Parameters:
  • status: Filter by default status
  • loan_id: Filter by loan ID
  • page: Page number
  • limit: Items per page
Response: Paginated list of defaults Code Reference: app/api/recovery_routes.py (list_defaults endpoint)

Get Default Details

Get detailed information about a specific default. Response: Complete default information

Detect Defaults

Automatically detect new defaults based on payment status. Response: List of newly detected defaults

Recovery Actions

Create Recovery Action

Create a recovery action for a default. Request Body:
Response: Created recovery action

List Recovery Actions

List all recovery actions with filtering. Query Parameters:
  • default_id: Filter by default ID
  • action_type: Filter by action type
  • status: Filter by status
  • page: Page number
  • limit: Items per page
Response: Paginated list of recovery actions

Get Recovery Action Details

Get detailed information about a recovery action. Response: Complete recovery action details

Execute Recovery Action

Execute a recovery action (send SMS, make call, etc.). Response: Execution result with status

Borrower Contacts

List Borrower Contacts

List all borrower contacts. Query Parameters:
  • loan_id: Filter by loan ID
  • default_id: Filter by default ID
Response: List of borrower contacts

Create Borrower Contact

Create a new borrower contact record. Request Body:
Response: Created contact

Update Borrower Contact

Update a borrower contact. Request Body:
Response: Updated contact

Additional Resources


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