POST
/
api
/
v1
/
loans
/
repayment-schedule
Generate a repayment schedule for a loan.
curl --request POST \
  --url https://demoapi.saasphereltd.com/api/v1/loans/repayment-schedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "loan_product_id": 1,
  "loan_amount": 500000,
  "tenor": 12,
  "first_repayment_date": "<any>",
  "fee": 5000
}
'
{
  "status": "00",
  "message": "Successful",
  "data": {
    "monthly_repayment": 45000,
    "periodic_repayment": 45000,
    "total_repayment": 540000,
    "total_interest": 40000,
    "schedule": []
  }
}

Authorizations

Authorization
string
header
required

Paste only the token (no "Bearer " prefix).

Body

application/json
loan_product_id
integer
required

The loan product ID.

Example:

1

loan_amount
number
required

The loan amount.

Example:

500000

tenor
integer
required

The loan tenor in months.

Example:

12

first_repayment_date
any
fee
number

optional Additional fees.

Example:

5000

Response

200 - application/json
status
string
Example:

"00"

message
string
Example:

"Successful"

data
object