cURL
curl --request POST \ --url https://lms.tausi.africa/v1/repayments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "repayment_id": 123, "loan_id": 123, "amount": 123, "collection_date": "<string>", "method": "<string>", "collected_by": "<string>", "description": "<string>" } '
{ "item": { "repayment_id": 123, "loan_id": 123, "amount": 123, "collection_date": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "method": "<string>", "collected_by": "<string>", "description": "<string>" }, "success": true }
Records a new repayment against a loan.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Repayment created successfully.
Show child attributes
true