POST
/
loans
/
calculate
Loan Calculation
curl --request POST \
  --url https://spark.test.woodcore.co/api/v2/loans/calculate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "clientId": 1092,
  "createdDate": "15 March 2022",
  "duration": 12,
  "durationBy": "Month",
  "expectedDisbursementDate": "15 March 2022",
  "interestRate": 5,
  "interestType": "Flat",
  "linkDepositAccountId": 1,
  "numberOfRepayments": 12,
  "principal": 500000,
  "productId": 1,
  "repaymentEvery": 1,
  "repaymentFrequency": "Monthly"
}'
{}

Authorizations

Authorization
string
header
required

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

Body

application/json
clientId
number
Example:

1092

createdDate
string
Example:

"15 March 2022"

duration
number
Example:

12

durationBy
string
Example:

"Month"

expectedDisbursementDate
string
Example:

"15 March 2022"

interestRate
number
Example:

5

interestType
string
Example:

"Flat"

Example:

1

numberOfRepayments
number
Example:

12

principal
number
Example:

500000

productId
number
Example:

1

repaymentEvery
number
Example:

1

repaymentFrequency
string
Example:

"Monthly"

Response

200 - application/json

ddddd

The response is of type object.