List Accounts

Overview

This endpoint allows you to retrieve a list of all accounts associated with an entity customer within the Passport API. The response includes details such as account type, balance, and entity association.

Endpoint Details

DefinitionDescription
Endpointhttps://api.paas.sandbox.co.passportfintech.com/v1/accounts
MethodGET
HeadersAuthorization
AuthenticationAccess Token (Bearer Token)

This endpoint retrieves all accounts linked to an authenticated entity.

Query Parameters

Pagination Parameters

ParameterDescription
page_params.page_sizeNumber of records to return per page.
page_params.page_numberPage number to retrieve.
page_params.first_request_timestamp.secondsUTC seconds since Unix epoch (1970-01-01T00:00:00Z). Must be between 0001-01-01T00:00:00Z and 9999-12-31T23:59:59Z (inclusive).
page_params.first_request_timestamp.nanosNanosecond fraction (0 to 999,999,999). Must be a non-negative value and represents fractional seconds at nanosecond resolution.

Ordering Parameters

ParameterDescription
order_params.order_keyField used to sort the results.
order_params.order_directionSort direction. Allowed values: ORDER_DIRECTION_ENUM_UNSPECIFIED, ASC, DESC.

Account Filters

ParameterDescription
customer_idFilters by the customer identifier associated with the account.
account_idFilters by the unique account identifier.
statusFilters by account status (for example, active, inactive)
account_typeFilters by account type (for example, savings, ordinary)
account_numberFilters by the account number.

Request Body

  • No request body

Example Request

JSON
Copy

Response Body

Example of Response

JSON
Copy

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

Common Errors and Handling

HTTP Status CodeMeaningDescription
400 Bad RequestInvalid RequestThe request is malformed or contains invalid parameters.
401 UnauthorizedExpired TokenThe access token is invalid or has expired.
403 ForbiddenAccess DeniedThe request is not authorized to list accounts.
500 Internal Server ErrorServer ErrorAn unexpected error occurred while retrieving accounts.

Best Practices

  • Ensure the authentication token is valid before making a request.
  • Check if needed when dealing with large data sets.
  • Monitor account balances to prevent insufficient funds errors in transactions.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard