SaFi Bank Space : SaFi MVP: 2.4. Execution Strategy for Interest Rates, Overdue Loans, SOA, and Subscription Fee

This is how to immediately test the maturity date and loan tenure.

Main Account & Unlocked Pockets

Steps

Remarks

1

Pre-requisite:

  1. Onboarded with Subscription, Account is created

  2. Do a Cash-In

  3. Wait for 1 hour

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}

https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Development/rescheduleAccrueInterestV4

Reschedule Accrue Interest in TM

  • It will compute the daily accrued interest

  • It will take the balance from 1 hour ago

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}

https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Development/rescheduleApplyAccruedInterestV3

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:

  1. Onboarded with Subscription, Account is created

  2. Do a Cash-In

  3. Wait for 1 hour

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}

https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Development/rescheduleAccrueInterestV4

Reschedule Accrue Interest in TM

  • It will compute the daily accrued interest

  • It will take the balance from 1 hour ago

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}

https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Development/rescheduleApplyAccruedInterestV3

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}

https://account-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Development/rescheduleLockedAccountApplyAccruedInterestV3

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:

  1. Onboarded with Subscription, Account is created

  2. Do a Cash-In

2

Use this API endpoint to generate statement in PDF format

 https://statement-manager.apps.{env}.safibank.online/statement/generate/{customerId}

https://statement-manager.apps.brave.safibank.online/swagger-ui/#/Statement Generation/generateStatementForCustomer

This will generate a statement in PDF format

Sample payload:

{
"year": 2022,
"month": 10
}

Loan

Note: An API Endpoint will be available in the coming weeks

Steps

Remarks

1

Pre-requisite:

  1. Onboarded with Subscription, Account is created

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:

  1. Onboarded with Subscription, Account is created

  2. Do a Cash-In

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

https://product-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/CustomerSubscription/changeAutodebitDateV2

This will change the autodebitDate of Subscription

Sample payload:

{
"customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"newAutodebitDate": "2022-11-22"
}

FundTawid

Steps

Remarks

1

Pre-requisite:

  1. Onboarded with Subscription, Account is created

  2. Do a Cash-In

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}

https://loan-manager.apps.brave.safibank.online/swagger/views/swagger-ui/#/Loan - Private/requestOverdraft_1

Sample payload:

{
"principal": 100.00,
"fee": 50.00,
"penaltyInterestRate": 0.08,
"gracePeriod": "PT5M",
"afterGracePeriod": "PT5M"
}