cURL
curl --request POST \ --url https://lms.tausi.africa/v1/loans \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "borrower_id": 123, "loan_id": 123, "products": [ { "stock_id": 123, "quantity": 123, "price": 123 } ], "principal_amount": 123, "released_date": "<string>", "due_date": "<string>", "duration": 123, "duration_period": "<string>", "loan_type": "<string>", "description": "<string>" } '
{ "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 }
Registers a new loan in the system.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Loan created successfully.
true