Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
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
Definition | Description |
|---|---|
Endpoint | |
Method | GET |
Headers | Authorization |
Authentication | Access Token (Bearer Token) |
This endpoint retrieves all accounts linked to an authenticated entity.
Query Parameters
Pagination Parameters
Parameter | Description |
|---|---|
page_params.page_size | Number of records to return per page. |
page_params.page_number | Page number to retrieve. |
page_params.first_request_timestamp.seconds | UTC seconds since Unix epoch ( |
page_params.first_request_timestamp.nanos | Nanosecond fraction (0 to 999,999,999). Must be a non-negative value and represents fractional seconds at nanosecond resolution. |
Ordering Parameters
Parameter | Description |
|---|---|
order_params.order_key | Field used to sort the results. |
order_params.order_direction | Sort direction. Allowed values: |
Account Filters
Parameter | Description |
|---|---|
customer_id | Filters by the customer identifier associated with the account. |
account_id | Filters by the unique account identifier. |
status | Filters by account status (for example, active, inactive) |
account_type | Filters by account type (for example, savings, ordinary) |
account_number | Filters by the account number. |
Request Body
No request body
Example Request
Response Body
Example of Response
The available_balance represents funds ready for use, while pending_balance reflects transactions still being processed.
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 Bad Request | Invalid Request | The request is malformed or contains invalid parameters. |
401 Unauthorized | Expired Token | The access token is invalid or has expired. |
403 Forbidden | Access Denied | The request is not authorized to list accounts. |
500 Internal Server Error | Server Error | An 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.