Stripe: List Accounts — linked Accounts get Linked Accounts
Stripe linkedAccounts.getLinkedAccounts: arguments, response, policy and SDK examples.
← Linked accounts operations · Get started
Operation stripe.getlinkedaccounts
Provider route: GET /v1/linked_accounts. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["linkedAccounts"]["getLinkedAccounts"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.linkedAccounts.getLinkedAccounts(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_stripe import StripeIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.linked_accounts.get_linked_accounts(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | Model | Optional | Expand List Accounts — linked Accounts get Linked Accounts — request body — query |
Referenced models: List Accounts — linked Accounts get Linked Accounts — request body — query
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | array | Required within parent | Details about each object. |
data[] | Model | Each item | Expand Subscribe to data refreshes for an Account — response body |
has_more | boolean | Required within parent | True if this list has another page of items after this one that can be fetched. |
object | string | Required within parent | String representing the object’s type. Objects of the same type share the same value. Always has the value `list`. Known values: list |
url | string | Required within parent | The URL where this list can be accessed. Maximum length: 5000 Pattern: ^/v1/financial_connections/accounts |
Referenced models: Subscribe to data refreshes for an Account — response body
Schemas
Section titled “Schemas”719 more schemas are linked from the tables above, on the schema pages.
Subscribe to data refreshes for an Account — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access. |
account_holder | JSON | Optional | |
account_holder (anyOf 1) | JSON | Alternative | The account holder that this account belongs to. |
account_holder (anyOf 1) (anyOf 1) | Model | Alternative | Expand Create a Session — linkAccountSessions.postLinkAccountSessions — response body — account_holder / value / type: account, customer |
account_holder (anyOf 2) | null | Alternative | |
account_numbers | JSON | Optional | |
account_numbers (anyOf 1) | array | Alternative | Details about the account numbers. |
account_numbers (anyOf 1)[] | Model | Each item | Expand Subscribe to data refreshes for an Account — response body — account numbers Details about the account numbers item |
account_numbers (anyOf 2) | null | Alternative | |
balance | JSON | Optional | |
balance (anyOf 1) | JSON | Alternative | The most recent information about the account's balance. |
balance (anyOf 1) (anyOf 1) | Model | Alternative | Expand Subscribe to data refreshes for an Account — response body — balance / value / type: cash, credit |
balance (anyOf 2) | null | Alternative | |
balance_refresh | JSON | Optional | |
balance_refresh (anyOf 1) | JSON | Alternative | The state of the most recent attempt to refresh the account balance. |
balance_refresh (anyOf 1) (anyOf 1) | Model | Alternative | Expand Subscribe to data refreshes for an Account — response body — balance_refresh / value / status: failed, pending, succeeded |
balance_refresh (anyOf 2) | null | Alternative | |
category | string | Required within parent | The type of the account. Account category is further divided in `subcategory`. Known values: cash, credit, investment, other |
created | JSON | Required within parent | |
created (anyOf 1) | integer | Alternative | Time at which the object was created. Measured in seconds since the Unix epoch. Format: unix-time |
created (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
display_name | JSON | Optional | |
display_name (anyOf 1) | string | Alternative | A human-readable name that has been assigned to this account, either by the account holder or by the institution. Maximum length: 5000 |
display_name (anyOf 2) | null | Alternative | |
id | string | Required within parent | Unique identifier for the object. Maximum length: 5000 |
institution_name | string | Required within parent | The name of the institution that holds this account. Maximum length: 5000 |
last4 | JSON | Optional | |
last4 (anyOf 1) | string | Alternative | The last 4 digits of the account number. If present, this will be 4 numeric characters. Maximum length: 5000 |
last4 (anyOf 2) | null | Alternative | |
livemode | boolean | Required within parent | If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. |
object | string | Required within parent | String representing the object's type. Objects of the same type share the same value. Known values: financial_connections.account |
ownership | JSON | Optional | |
ownership (anyOf 1) | JSON | Alternative | The most recent information about the account's owners. |
ownership (anyOf 1) (anyOf 1) | string | Alternative | Maximum length: 5000 |
ownership (anyOf 1) (anyOf 2) | Model | Alternative | Expand Subscribe to data refreshes for an Account — response body — ownership / value / object: financial connections account ownership |
ownership (anyOf 2) | null | Alternative | |
ownership_refresh | JSON | Optional | |
ownership_refresh (anyOf 1) | JSON | Alternative | The state of the most recent attempt to refresh the account owners. |
ownership_refresh (anyOf 1) (anyOf 1) | Model | Alternative | Expand Subscribe to data refreshes for an Account — response body — ownership_refresh / value / status: failed, pending, succeeded |
ownership_refresh (anyOf 2) | null | Alternative | |
permissions | JSON | Optional | |
permissions (anyOf 1) | array | Alternative | The list of permissions granted by this account. |
permissions (anyOf 1)[] | string | Each item | Known values: balances, ownership, payment_method, transactions |
permissions (anyOf 2) | null | Alternative | |
status | string | Required within parent | The status of the link to the account. Known values: active, disconnected, inactive |
status_details | Model | Optional | Expand Subscribe to data refreshes for an Account — response body — status details |
subcategory | string | Required within parent | If `category` is `cash`, one of: - `checking` - `savings` - `other` If `category` is `credit`, one of: - `mortgage` - `line_of_credit` - `credit_card` - `other` If `category` is `investment` or `other`, this will be `other`. Known values: checking, credit_card, line_of_credit, mortgage, other, savings |
subscriptions | JSON | Optional | |
subscriptions (anyOf 1) | array | Alternative | The list of data refresh subscriptions requested on this account. |
subscriptions (anyOf 1)[] | string | Each item | Known values: transactions |
subscriptions (anyOf 2) | null | Alternative | |
supported_payment_method_types | array | Required within parent | The [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account. |
supported_payment_method_types[] | string | Each item | Known values: link, us_bank_account |
transaction_refresh | JSON | Optional | |
transaction_refresh (anyOf 1) | JSON | Alternative | The state of the most recent attempt to refresh the account transactions. |
transaction_refresh (anyOf 1) (anyOf 1) | Model | Alternative | Expand Subscribe to data refreshes for an Account — response body — transaction_refresh / value / status: failed, pending, succeeded |
transaction_refresh (anyOf 2) | null | Alternative |
Referenced models: Subscribe to data refreshes for an Account — response body — account numbers Details about the account numbers item, Subscribe to data refreshes for an Account — response body — status details, Create a Session — linkAccountSessions.postLinkAccountSessions — response body — account_holder / value / type: account, customer, Subscribe to data refreshes for an Account — response body — balance / value / type: cash, credit, Subscribe to data refreshes for an Account — response body — balance_refresh / value / status: failed, pending, succeeded, Subscribe to data refreshes for an Account — response body — ownership_refresh / value / status: failed, pending, succeeded, Subscribe to data refreshes for an Account — response body — transaction_refresh / value / status: failed, pending, succeeded, Subscribe to data refreshes for an Account — response body — ownership / value / object: financial connections account ownership
List Accounts — linked Accounts get Linked Accounts — request body — query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
account_holder | object | Optional | |
account_holder.account | string | Optional | Maximum length: 5000 |
account_holder.customer | string | Optional | Maximum length: 5000 |
account_holder.customer_account | string | Optional | Maximum length: 5000 |
ending_before | string | Optional | Maximum length: 5000 |
expand | array | Optional | |
expand[] | string | Each item | Maximum length: 5000 |
limit | integer | Optional | |
session | string | Optional | Maximum length: 5000 |
starting_after | string | Optional | Maximum length: 5000 |
Subscribe to data refreshes for an Account — response body — account numbers Details about the account numbers item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
expected_expiry_date | JSON | Optional | |
expected_expiry_date (anyOf 1) | JSON | Alternative | |
expected_expiry_date (anyOf 1) (anyOf 1) | integer | Alternative | When the account number is expected to expire, if applicable. Format: unix-time |
expected_expiry_date (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
expected_expiry_date (anyOf 2) | null | Alternative | |
identifier_type | string | Required within parent | The type of account number associated with the account. Known values: account_number, tokenized_account_number |
status | string | Required within parent | Whether the account number is currently active and usable for transactions. Known values: deactivated, expired, pending, transactable |
supported_networks | array | Required within parent | The payment networks that the account number can be used for. |
supported_networks[] | string | Each item | Known values: ach |
Create an account — response body — settings value bacs debit payments, branding, card issuing, card payments, dashboard, invoices, payments, payouts, paypay payments, sepa debit payments, treasury sepa debit payments
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
creditor_id | string | Optional | SEPA creditor identifier that identifies the company making the payment. Maximum length: 5000 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: stripe.getlinkedaccounts. Catalog operation: GetLinkedAccounts. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Pinned headers: {"Stripe-Version": "2026-09-30.endive"}