Calculator
Calculator
Postman Collection
URL
POST : /v1/service/investment/calculatorHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
invAmount (String) Required
Investment Amount (must be greater than 5000)
Investment Amount (must be greater than 5000)
tenure (String / Fixed) Required
Merchant tenure (Example - 12,24,36,48,60)
Merchant tenure (Example - 12,24,36,48,60)
gender (String) Required
Merchant gender
Merchant gender
atMaturity (String / Fixed) Required
FD Maturity ("yes", "no")
FD Maturity ("yes", "no")
seniorCitizen (String / Fixed) Required
Merchant Senior Citizen ( yes / no)
Merchant Senior Citizen ( yes / no)
Request
Example Request
curl --location --request POST '/v1/service/investment/calculator' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"invAmount": "10000",
"tenure": "12",
"gender": "male",
"atMaturity": "no",
"seniorCitizen": "yes"
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Calculation Details.",
"status": "SUCCESS",
"data": [
{
"interestFrequency": "AtMaturity",
"rateOfIntrest": 7.98,
"yieldRate": 8.4587,
"maturityAmount": 11260,
"intPayAmt": 1260,
"totalIntrestEarning": 1260,
"maturityDate": "10/05/2025"
}
]
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "Payments Transaction Failed"
}
Response Code
| Status Code | Status | Message |
|---|---|---|
| 0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
| 0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
| 0x0202 | FAILURE | FAILURE USER |
| 0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
| 0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
| 0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
| 0x0206 | PENDING | TRANSACTION PENDING |
| 0x0208 | 2FA | TWO FACTOR AUNTHENTICATION |