Retrieve Account

Overview

This endpoint allows you to retrieve details of a specific account within the Passport API using the account's unique ID. The response includes account type, number, balance information, and associated entity details.

Endpoint Details

DefinitionDescription
Endpointhttps://bre-b-sandbox.api.visionamos.passportfintech.com/v1/paas/entities/customers/accounts/{account_id}
MethodGET
HeadersAuthorization
AuthenticationAccess Token (Bearer Token)

Request Body

  • No request body

Example Request

JSON
Copy

Response Body

  • HTTP Status Code: 200 OK.
  • The response contains the account information.

Example of Response

JSON
Copy

The available_balance represents the funds ready for use, while pending_balance reflects transactions still being processed.

Common Errors and Handling

HTTP Status CodeMeaningDescription
400 Bad RequestInvalid RequestThe account ID is missing or incorrectly formatted.
401 UnauthorizedExpired TokenThe access token is invalid or has expired.
403 ForbiddenAccess DeniedThe request is not authorized to retrieve this account.
404 Not FoundAccount Not FoundNo account was found with the given ID.
500 Internal Server ErrorServer ErrorAn unexpected error occurred while retrieving the account details.

Best Practices

  • Ensure the account_id is correctly provided in the request URL.
  • Use the retrieved account details to manage transactions and funds.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard