loans

Get loans for authenticated user with pagination, filtering, sorting, and field selection. Bankers can use viewAll=true to see all loans.

Get loans for authenticated user with pagination, filtering, sorting, and field selection. Bankers can use viewAll=true to see all loans.

get/api/v1/loans/

Request

  • Base URL
    http://localhost:3000
  • Auth
    HTTP bearer

Query parameters

limitnumber

Maximum number of results to return

offsetnumber

Number of results to skip for pagination

active'true' | 'false'

Filter by active status (true/false)

statusstring

Filter by status (active, paid, defaulted, etc.)

borrowerIdstring

Filter by borrower Discord ID (requires viewAll=true)

viewAll'true' | 'false'

View all loans (requires loans:view:others permission)

fieldsstring

Comma-separated list of fields to return (e.g., id,total,apr)

sortstring

Sort by field(s), prefix with - for descending (e.g., -createdAt,total)

Response

Default Response

successtrue required

Changes

No recorded changes to this operation across all 6 revisions of this API.