Skip to main content
GET
/
loans
/
{id}
Get loan by ID
curl --request GET \
  --url https://lms.tausi.africa/v1/loans/{id} \
  --header 'Authorization: Bearer <token>'
{
  "item": {
    "borrower_id": 123,
    "loan_id": 123,
    "principal_amount": 123,
    "released_date": "<string>",
    "due_date": "<string>",
    "duration": 123,
    "duration_period": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "loan_type": "<string>",
    "products": [
      {
        "stock_id": 123,
        "quantity": 123,
        "price": 123
      }
    ],
    "description": "<string>"
  },
  "success": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer<int64>
required

Response

Successful response with loan details.

item
object
required
success
boolean
required
Example:

true