Skip to content

Client request to view their balance #40

@Koufan-De-King

Description

@Koufan-De-King

Description:
This task involves testing the API endpoint that allows a client to view the current balance of their savings account. The system should retrieve the account balance from the server and return it in a secure and accurate manner. The balance should reflect all posted transactions, including deposits, withdrawals, and transfers, up to the current date.

The test should:

  • Send a request to the account details endpoint using a valid savings account ID
  • Verify that the response includes the correct account balance
  • Confirm that sensitive information is not exposed and only authorized data is returned

Endpoint:
GET /savingsaccounts/{savingsAccountId}

Acceptance Criteria:

  • The API returns a 200 OK response for a valid and active account
  • The response includes the current account balance under the summary section
  • The balance matches the net of all posted transactions
  • Appropriate error responses are returned for invalid or unauthorized account access

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions