This is how to immediately test the maturity date and loan tenure.
Main Account & Unlocked Pockets
Steps | Remarks | |
---|---|---|
1 | Pre-requisite:
| The API endpoint takes the balance from 1 hour ago. It’s better if you have an existing account so you don’t have to wait for an hour. |
2 | Use this API endpoint to reschedule accrue interest in TM once every 15 seconds for 30 times. DO NOT SPAM THE REQUEST. YOU NEED TO WAIT FOR 15 SECONDS. https://account-manager.apps.{env}.safibank.online/v2/development/reschedule-accrue-interest/{accountId} | Reschedule Accrue Interest in TM
|
3 | Use this API endpoint to see the interest amount. https://account-manager.apps.{env}.safibank.online/v2/account/{id} https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Account/getAccountById | |
4 | Use this API endpoint to apply reschedule accrued interest in TM to main account or unlocked pocket: https://account-manager.apps.{env}.safibank.online/v2/development/reschedule-apply-accrued-interest/{accountId} | Reschedule Appy Accued Interest in TM |
5 | Verify the interest amount by comparing the result from step 3 and step 4 |
Locked Pockets
Steps | Remarks | |
---|---|---|
1 | Pre-requisite:
| The API endpoint takes the balance from 1 hour ago. It’s better if you have an existing account so you don’t have to wait for an hour. |
2 | Use this API endpoint to reschedule accrue interest in TM once every 15 seconds for 30 times. DO NOT SPAM THE REQUEST. YOU NEED TO WAIT FOR 15 SECONDS. https://account-manager.apps.{env}.safibank.online/v2/development/reschedule-accrue-interest/{accountId} | Reschedule Accrue Interest in TM
|
3 | Use this API endpoint to see the interest amount. https://account-manager.apps.{env}.safibank.online/v2/account/{id} https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Account/getAccountById | |
4 | Use this API endpoint to apply reschedule accrued interest in TM to locked pocket: https://account-manager.apps.{env}.safibank.online/v2/development/reschedule-apply-accrued-interest/{accountId} | Reschedule Appy Accued Interest in TM |
5 | Use this API endpoint to reschedule end of tenure in TM to locked pocket https://account-manager.apps.{env}.safibank.online/v2/development/reschedule-locked-account-apply-accrued-interest/{accountId} | Reschedule End of Tenure (locked apply accrued interest) in TM |
6 | Verify the interest amount by comparing the result from step 3 and step 4 |
Statement of Account
Steps | Remarks | |
---|---|---|
1 | Pre-requisite:
| |
2 | Use this API endpoint to generate statement in PDF format https://statement-manager.apps.{env}.safibank.online/statement/generate/{customerId} | This will generate a statement in PDF format Sample payload: { |
Loan
Note: An API Endpoint will be available in the coming weeks
Steps | Remarks | |
---|---|---|
1 | Pre-requisite:
| |
2 | Clone this repository: https://github.com/SafiBank/SaFiMono | |
3 | Go to this directory: /SaFiMono/services/loan-manager | |
4 | Run this command: tools/loan-tool.py loan-due-schedule {loan_account_id} | This will make the next unpaid installment due after 5 seconds |
Subscription
Steps | Remarks | |
---|---|---|
1 | Pre-requisite:
| |
2 | Use this API endpoint to change the auto debit date of subscription https://product-manager.apps.{env}.safibank.online/customer-subscription/change-autodebit-date/v2 | This will change the autodebitDate of Subscription Sample payload: { |
FundTawid
Steps | Remarks | |
---|---|---|
1 | Pre-requisite:
| |
2 | Use this API endpoint to borrow money from FundTawid, change the fee, penalty interest rate, grace period, and after grace period. https://loan-manager.apps.{env}.safibank.online/private/loan/overdraft/{accountId} | Sample payload: { |