Astrada TypeScript SDK
    Preparing search index...

    Interface BankAccount

    BankAccount

    interface BankAccount {
        _links: BankAccountLinks;
        accountId: string;
        bankLinkId?: string;
        cardIds: string[];
        cards: BankFeedCard[];
        createdAt: Date;
        currency: string;
        externalId: string;
        id: string;
        institutionId?: string;
        institutionName: string;
        lastSyncedAt?: Date;
        mask?: string;
        name: string;
        noLinkReason?: banking.BankAccountNoLinkReasonEnum;
        state: banking.BankAccountStateEnum;
        subaccountId: string;
        subscriptionState?: banking.BankAccountSubscriptionStateEnum;
        subtype?: string;
        type: banking.BankAccountTypeEnum;
        updatedAt: Date;
    }
    Index

    BankAccount

    accountId: string

    The unique identifier of the account that owns this bank account.

    BankAccount

    bankLinkId?: string

    The identifier of the bank link that created this account. Null for accounts that predate persisted link attribution.

    BankAccount

    cardIds: string[]

    The identifiers of cards linked to this bank account for transaction matching, always current. A card links when its last 4 digits match this account's mask (the same rule applied at bank-link completion and by a scheduled sweep that re-checks each cardless credit account every few hours), or when set manually via PATCH. Cards must belong to the same subaccount.

    BankAccount

    cards: BankFeedCard[]

    Cards MATERIALIZED from this bank account (bank-feed enrollments minted at bank-link completion for credit accounts whose mask matched no already-enrolled card). Distinct from cardIds, which is the link surface: a mask-matched card appears in cardIds only, while a minted card appears in both. Empty for depository and mask-matched-only accounts.

    BankAccount

    createdAt: Date

    Date and time when this resource was created, in UTC, following ISO 8601 format.

    BankAccount

    currency: string

    The currency of the account following ISO 4217 format.

    BankAccount

    externalId: string

    The provider account ID for the connected account.

    BankAccount

    id: string

    The unique identifier of the bank account.

    BankAccount

    institutionId?: string

    The provider identifier of the connected institution (Plaid ins_*). Null for connections made before this field was captured.

    BankAccount

    institutionName: string

    The name of the connected financial institution.

    BankAccount

    lastSyncedAt?: Date

    Last successful sync of the backing connection, in UTC, following ISO 8601 format. Pairs with subscriptionState as the freshness signal. Null until the first sync.

    BankAccount

    mask?: string

    The last 4 digits of the account number. For credit accounts this is the card number's last 4; the per-card identity for bank-connected (e.g. American Express) card enrollments. Not guaranteed to be per-card when the institution combines multiple cards into a single account.

    BankAccount

    name: string

    The display name of the bank account (e.g. "Checking", "Savings").

    BankAccount

    Why this credit account has no card. Present ONLY while the account is still cardless; once any card links, the field disappears, so it can never contradict cardIds. See the identically-named field on the bank link response for the full meaning of each value.

    BankAccount

    Current state of the bank account.

    • active: The account is connected and functioning normally.
    • auth_required: The account requires re-authentication.
    • disconnected: The account has been disconnected from the provider.

    BankAccount

    subaccountId: string

    The unique identifier of the subaccount associated with this bank account.

    BankAccount

    The health of the underlying aggregator connection backing this account. The account state above can read active while the connection has errored or needs re-auth, so this field can read "active but dead". Null if no subscription is linked.

    BankAccount

    subtype?: string

    The raw provider account subtype (e.g. Plaid credit card, checking). Null when the provider did not supply one or for accounts connected before this field was captured.

    BankAccount

    The normalized type of bank account. (Correction: the service has always returned normalized values; the previous depository/credit enum understated live behavior. Codegen consumers should regenerate.)

    BankAccount

    updatedAt: Date

    Date and time when this resource was last updated, in UTC, following ISO 8601 format.

    BankAccount