forked from apache/fineract
-
Couldn't load subscription status.
- Fork 0
Open
Description
Description:
This task involves testing the API endpoint that enables a fund transfer from one client's account to another. The transfer should deduct the specified amount from the source (sender) client's savings account and credit it to the destination (receiver) client's savings account. The transaction must be recorded in both accounts' transaction histories with the correct date, amount, and reference.
The test should:
- Initiate a transfer request with valid sender and receiver account details
- Include required fields such as transaction date, amount, and transfer notes
- Validate that both accounts are active and belong to existing clients
- Confirm that the transfer is processed successfully and reflected in both balances
Endpoint:
POST /savingsaccounts/{senderAccountId}/transactions?command=transfer
Acceptance Criteria:
- The transfer request returns a 200 OK or 201 Created response on success
- The sender's account balance is debited by the transfer amount
- The receiver's account balance is credited by the transfer amount
- Both accounts show the transaction in their transaction history
- Appropriate error messages are returned for invalid accounts, insufficient funds, or inactive accounts
Metadata
Metadata
Assignees
Labels
No labels