Skip to main content
GET
/
loans
List all loans
curl --request GET \
  --url https://lms.tausi.africa/v1/loans \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "borrower_id": 123,
      "loan_id": 123,
      "loan_type": "<string>",
      "principal_amount": 123,
      "released_date": "<string>",
      "due_date": "<string>",
      "duration": 123,
      "duration_period": "<string>",
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "page": 123,
  "rowsPerPage": 123,
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer<int32>
default:1
Required range: x >= 1
rows
integer<int32>
default:100
Required range: 1 <= x <= 100

Response

Successful response with loan list.

items
object[]
required
total
integer
required
page
integer
required
rowsPerPage
integer
required
success
boolean
required
Example:

true