Create Repayment
Description: Create repayment for employee.
- Sample Request
- Sample Response
Request Parameters
Parameter | Type | Description | Required |
---|---|---|---|
paymentID | string | Payment unique reference | Yes |
loanRef | string | Unique existing loan reference | Yes |
amount | Float | Amount Paid | Yes |
datePaid | string | Payment date | Yes |
POST {base_url}/repayment
curl `${base_url}/repayment`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X POST
-d '{
"paymentID":"POLARIS8393",
"loanRef ": "LOAN1234",
"amount ": 250000,
"datePaid": "25-01-2021"
}
'
Response Parameters
Parameter | Type | Description | Required |
---|---|---|---|
message | string | Description of performed requested action | Yes |
status | integer | HTTP status code | Yes |
balance | Float | Loan balance | Yes |
execTime | integer | Time taken for execution in milliseconds | Yes |
error | string | Specific errors when request does not return a HTTP status of 201. | No |
POST {base_url}/repayment
{
"status": 201,
"message": "Repayment created",
"balance": 50000.0,
"execTime": 1.4888868,
"error": ""
}