Skip to main content
POST
/
repayments
Create a repayment
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
}

Authorizations

Authorization
string
header
required

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

Body

application/json
repayment_id
integer<int64>
required
loan_id
integer<int64>
required
amount
number<float>
required
collection_date
string
required
method
string
collected_by
string
description
string

Response

Repayment created successfully.

item
object
required
success
boolean
required
Example:

true