Plaid logo
Docs
ALL DOCS

API

  • Overview
  • Libraries
  • API versioning
  • Postman Collection
  • Webhooks
Product API reference
  • Transactions
  • Auth
  • Balance
  • Identity
  • Assets
  • Investments
  • Liabilities
  • Payment Initiation
  • Virtual Accounts
  • Transfer
  • Income
  • Identity Verification
  • Monitor
  • Beacon
  • Signal
  • Enrich
  • Statements (beta)
Other API reference
  • Item endpoints and webhooks
  • Account endpoints and schemas
  • Institution endpoints
  • Token flow and endpoints
  • Processor token endpoints
  • Sandbox endpoints
  • Processor partner endpoints
  • Reseller partner endpoints
Plaid logo
Docs
Close search modal
Ask Bill!
Ask Bill!
Hi! I'm Bill! You can ask me all about the Plaid API. Try asking questions like:
    Note: Bill isn't perfect. He's just a robot platypus that reads our docs for fun. You should treat his answers with the same healthy skepticism you might treat any other answer on the internet. This chat may be logged for quality and training purposes. Please don't send Bill any PII -- he's scared of intimacy. All chats with Bill are subject to Plaid's Privacy Policy.
    Plaid.com
    Log in
    Get API Keys
    Open nav

    Investments

    API reference for Investments endpoints and webhooks

    Endpoints
    /investments/holdings/getFetch investment holdings
    /investments/transactions/getFetch investment transactions
    In this section
    HOLDINGS: DEFAULT_UPDATENew holdings available
    INVESTMENTS_TRANSACTIONS: DEFAULT_UPDATENew transactions available
    INVESTMENTS_TRANSACTIONS: HISTORICAL_UPDATEInvestments data ready

    Endpoints

    /investments/holdings/get

    Get Investment holdings

    The /investments/holdings/get endpoint allows developers to receive user-authorized stock position data for investment-type accounts.

    investments/holdings/get

    Request fields and example

    client_id
    string
    Your Plaid API client_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.
    secret
    string
    Your Plaid API secret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.
    access_token
    requiredstring
    The access token associated with the Item data is being requested for.
    options
    object
    An optional object to filter /investments/holdings/get results. If provided, must not be null.
    account_ids
    [string]
    An array of account_ids to retrieve for the Item. An error will be returned if a provided account_id is not associated with the Item.
    Select group for content switcher
    Select Language
    1// Pull Holdings for an Item
    2const request: InvestmentsHoldingsGetRequest = {
    3 access_token: accessToken,
    4};
    5try {
    6 const response = await plaidClient.investmentsHoldingsGet(request);
    7 const holdings = response.data.holdings;
    8 const securities = response.data.securities;
    9} catch (error) {
    10 // handle error
    11}
    investments/holdings/get

    Response fields and example

    accounts
    [object]
    The accounts associated with the Item
    account_id
    string
    Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new account_id will be assigned to the account.
    The account_id can also change if the access_token is deleted and the same credentials that were used to generate that access_token are used to generate a new access_token on a later date. In that case, the new account_id will be different from the old account_id.
    If an account with a specific account_id disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API.
    Like all Plaid identifiers, the account_id is case sensitive.
    balances
    object
    A set of fields describing the balance for an account. Balance information may be cached unless the balance object was returned by /accounts/balance/get.
    available
    nullablenumber
    The amount of funds available to be withdrawn from the account, as determined by the financial institution.
    For credit-type accounts, the available balance typically equals the limit less the current balance, less any pending outflows plus any pending inflows.
    For depository-type accounts, the available balance typically equals the current balance less any pending outflows plus any pending inflows. For depository-type accounts, the available balance does not include the overdraft limit.
    For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the available balance is the total cash available to withdraw as presented by the institution.
    Note that not all institutions calculate the available balance. In the event that available balance is unavailable, Plaid will return an available balance value of null.
    Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /accounts/balance/get.
    If current is null this field is guaranteed not to be null.


    Format: double
    current
    nullablenumber
    The total amount of funds in or owed by the account.
    For credit-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder.
    For loan-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (ins_116944). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest.
    For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the current balance is the total value of assets as presented by the institution.
    Note that balance information may be cached unless the value was returned by /accounts/balance/get; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the available balance as provided by /accounts/balance/get.
    When returned by /accounts/balance/get, this field may be null. When this happens, available is guaranteed not to be null.


    Format: double
    limit
    nullablenumber
    For credit-type accounts, this represents the credit limit.
    For depository-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe.
    In North America, this field is typically only available for credit-type accounts.


    Format: double
    iso_currency_code
    nullablestring
    The ISO-4217 currency code of the balance. Always null if unofficial_currency_code is non-null.
    unofficial_currency_code
    nullablestring
    The unofficial currency code associated with the balance. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
    See the currency code schema for a full listing of supported unofficial_currency_codes.
    last_updated_datetime
    nullablestring
    Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) indicating the oldest acceptable balance when making a request to /accounts/balance/get.
    This field is only used and expected when the institution is ins_128026 (Capital One) and the Item contains one or more accounts with a non-depository account type, in which case a value must be provided or an INVALID_REQUEST error with the code of INVALID_FIELD will be returned. For Capital One depository accounts as well as all other account types on all other institutions, this field is ignored. See account type schema for a full list of account types.
    If the balance that is pulled is older than the given timestamp for Items with this field required, an INVALID_REQUEST error with the code of LAST_UPDATED_DATETIME_OUT_OF_RANGE will be returned with the most recent timestamp for the requested account contained in the response.


    Format: date-time
    mask
    nullablestring
    The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.
    name
    string
    The name of the account, either assigned by the user or by the financial institution itself
    official_name
    nullablestring
    The official name of the account as given by the financial institution
    type
    string
    investment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.
    credit: Credit card
    depository: Depository account
    loan: Loan account
    other: Non-specified account type
    See the Account type schema for a full listing of account types and corresponding subtypes.


    Possible values: investment, credit, depository, loan, brokerage, other
    subtype
    nullablestring
    See the Account type schema for a full listing of account types and corresponding subtypes.

    Possible values: 401a, 401k, 403B, 457b, 529, brokerage, cash isa, crypto exchange, education savings account, ebt, fixed annuity, gic, health reimbursement arrangement, hsa, isa, ira, lif, life insurance, lira, lrif, lrsp, non-custodial wallet, non-taxable brokerage account, other, other insurance, other annuity, prif, rdsp, resp, rlif, rrif, pension, profit sharing plan, retirement, roth, roth 401k, rrsp, sep ira, simple ira, sipp, stock plan, thrift savings plan, tfsa, trust, ugma, utma, variable annuity, credit card, paypal, cd, checking, savings, money market, prepaid, auto, business, commercial, construction, consumer, home equity, loan, mortgage, overdraft, line of credit, student, cash management, keogh, mutual fund, recurring, rewards, safe deposit, sarsep, payroll, null
    verification_status
    string
    The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.
    pending_automatic_verification: The Item is pending automatic verification
    pending_manual_verification: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the micro-deposit.
    automatically_verified: The Item has successfully been automatically verified
    manually_verified: The Item has successfully been manually verified
    verification_expired: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link.
    verification_failed: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link.
    database_matched: The Item has successfully been verified using Plaid's data sources. Note: Database Match is currently a beta feature, please contact your account manager for more information.
    database_insights_pass: The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.
    database_insights_pass_with_caution: The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.
    database_insights_fail: The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.


    Possible values: automatically_verified, pending_automatic_verification, pending_manual_verification, manually_verified, verification_expired, verification_failed, database_matched, database_insights_pass, database_insights_pass_with_caution, database_insights_fail
    persistent_account_id
    string
    A unique and persistent identifier for accounts that can be used to trace multiple instances of the same account across different Items for depository accounts. This is currently only supported for Chase Items. Because Chase accounts have a different account number each time they are linked, this field may be instead of the account number to uniquely identify a Chase account across multiple Items for payments use cases, helping to reduce duplicate Items or attempted fraud.
    holdings
    [object]
    The holdings belonging to investment accounts associated with the Item. Details of the securities in the holdings are provided in the securities field.
    account_id
    string
    The Plaid account_id associated with the holding.
    security_id
    string
    The Plaid security_id associated with the holding. Security data is not specific to a user's account; any user who held the same security at the same financial institution at the same time would have identical security data. The security_id for the same security will typically be the same across different institutions, but this is not guaranteed. The security_id does not typically change, but may change if inherent details of the security change due to a corporate action, for example, in the event of a ticker symbol change or CUSIP change.
    institution_price
    number
    The last price given by the institution for this security.

    Format: double
    institution_price_as_of
    nullablestring
    The date at which institution_price was current.

    Format: date
    institution_price_datetime
    nullablestring
    Date and time at which institution_price was current, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ).
    This field is returned for select financial institutions and comes as provided by the institution. It may contain default time values (such as 00:00:00).


    Format: date-time
    institution_value
    number
    The value of the holding, as reported by the institution.

    Format: double
    cost_basis
    nullablenumber
    The total cost basis of the holding (e.g., the total amount spent to acquire all assets currently in the holding).

    Format: double
    quantity
    number
    The total quantity of the asset held, as reported by the financial institution. If the security is an option, quantity will reflect the total number of options (typically the number of contracts multiplied by 100), not the number of contracts.

    Format: double
    iso_currency_code
    nullablestring
    The ISO-4217 currency code of the holding. Always null if unofficial_currency_code is non-null.
    unofficial_currency_code
    nullablestring
    The unofficial currency code associated with the holding. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
    See the currency code schema for a full listing of supported iso_currency_codes.
    securities
    [object]
    Objects describing the securities held in the accounts associated with the Item.
    security_id
    string
    A unique, Plaid-specific identifier for the security, used to associate securities with holdings. Like all Plaid identifiers, the security_id is case sensitive. The security_id may change if inherent details of the security change due to a corporate action, for example, in the event of a ticker symbol change or CUSIP change.
    isin
    nullablestring
    12-character ISIN, a globally unique securities identifier. A verified CUSIP Global Services license is required to receive this data. This field will be null by default for new customers, and null for existing customers starting March 12, 2024. If you would like access to this field, please start the verification process here.
    cusip
    nullablestring
    9-character CUSIP, an identifier assigned to North American securities. A verified CUSIP Global Services license is required to receive this data. This field will be null by default for new customers, and null for existing customers starting March 12, 2024. If you would like access to this field, please start the verification process here.
    sedol
    nullablestring
    7-character SEDOL, an identifier assigned to securities in the UK.
    institution_security_id
    nullablestring
    An identifier given to the security by the institution
    institution_id
    nullablestring
    If institution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.
    proxy_security_id
    nullablestring
    In certain cases, Plaid will provide the ID of another security whose performance resembles this security, typically when the original security has low volume, or when a private security can be modeled with a publicly traded security.
    name
    nullablestring
    A descriptive name for the security, suitable for display.
    ticker_symbol
    nullablestring
    The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.
    is_cash_equivalent
    nullableboolean
    Indicates that a security is a highly liquid asset and can be treated like cash.
    type
    nullablestring
    The security type of the holding.
    In rare instances, a null value is returned when institutional data is insufficient to determine the security type.
    Valid security types are:
    cash: Cash, currency, and money market funds
    cryptocurrency: Digital or virtual currencies
    derivative: Options, warrants, and other derivative instruments
    equity: Domestic and foreign equities
    etf: Multi-asset exchange-traded investment funds
    fixed income: Bonds and certificates of deposit (CDs)
    loan: Loans and loan receivables
    mutual fund: Open- and closed-end vehicles pooling funds of multiple investors
    other: Unknown or other investment types
    close_price
    nullablenumber
    Price of the security at the close of the previous trading session. Null for non-public securities.
    If the security is a foreign currency this field will be updated daily and will be priced in USD.
    If the security is a cryptocurrency, this field will be updated multiple times a day. As crypto prices can fluctuate quickly and data may become stale sooner than other asset classes, refer to update_datetime with the time when the price was last updated.


    Format: double
    close_price_as_of
    nullablestring
    Date for which close_price is accurate. Always null if close_price is null.

    Format: date
    update_datetime
    nullablestring
    Date and time at which close_price is accurate, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). Always null if close_price is null.

    Format: date-time
    iso_currency_code
    nullablestring
    The ISO-4217 currency code of the price given. Always null if unofficial_currency_code is non-null.
    unofficial_currency_code
    nullablestring
    The unofficial currency code associated with the security. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
    See the currency code schema for a full listing of supported iso_currency_codes.
    market_identifier_code
    nullablestring
    The ISO-10383 Market Identifier Code of the exchange or market in which the security is being traded.
    option_contract
    nullableobject
    Details about the option security.
    For the Sandbox environment, this data is currently only available if the item is using a custom configuration object, and the ticker field of the custom security follows the OCC Option Symbol standard with no spaces.
    contract_type
    string
    The type of this option contract. It is one of:
    put: for Put option contracts
    call: for Call option contracts
    expiration_date
    string
    The expiration date for this option contract, in ISO 8601 format.

    Format: date
    strike_price
    number
    The strike price for this option contract, per share of security.

    Format: double
    underlying_security_ticker
    string
    The ticker of the underlying security for this option contract.
    item
    object
    Metadata about the Item.
    item_id
    string
    The Plaid Item ID. The item_id is always unique; linking the same account at the same institution twice will result in two Items with different item_id values. Like all Plaid identifiers, the item_id is case-sensitive.
    institution_id
    nullablestring
    The Plaid Institution ID associated with the Item. Field is null for Items created via Same Day Micro-deposits.
    webhook
    nullablestring
    The URL registered to receive webhooks for the Item.
    error
    nullableobject
    We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
    error_type
    string
    A broad categorization of the error. Safe for programmatic use.

    Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
    error_code
    string
    The particular error code. Safe for programmatic use.
    error_message
    string
    A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
    display_message
    nullablestring
    A user-friendly representation of the error code. null if the error is not related to user action.
    This may change over time and is not safe for programmatic use.
    request_id
    string
    A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
    causes
    array
    In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
    causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
    status
    nullableinteger
    The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
    documentation_url
    string
    The URL of a Plaid documentation page with more information about the error
    suggested_action
    nullablestring
    Suggested steps for resolving the error
    available_products
    [string]
    A list of products available for the Item that have not yet been accessed. The contents of this array will be mutually exclusive with billed_products.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    billed_products
    [string]
    A list of products that have been billed for the Item. The contents of this array will be mutually exclusive with available_products. Note - billed_products is populated in all environments but only requests in Production are billed. Also note that products that are billed on a pay-per-call basis rather than a pay-per-Item basis, such as balance, will not appear here.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    products
    [string]
    A list of products added to the Item. In almost all cases, this will be the same as the billed_products field. For some products, it is possible for the product to be added to an Item but not yet billed (e.g. Assets, before /asset_report/create has been called, or Auth or Identity when added as Optional Products but before their endpoints have been called), in which case the product may appear in products but not in billed_products.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    consented_products
    [string]
    A list of products that have gone through consent collection for the Item. Only present for those enabled in the Data Transparency beta. If you are not enrolled in Data Transparency, this field is not used.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    consent_expiration_time
    nullablestring
    The RFC 3339 timestamp after which the consent provided by the end user will expire. Upon consent expiration, the item will enter the ITEM_LOGIN_REQUIRED error state. To circumvent the ITEM_LOGIN_REQUIRED error and maintain continuous consent, the end user can reauthenticate via Link’s update mode in advance of the consent expiration time.
    Note - This is only relevant for certain OAuth-based institutions. For all other institutions, this field will be null.


    Format: date-time
    update_type
    string
    Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication.
    background - Item can be updated in the background
    user_present_required - Item requires user interaction to be updated


    Possible values: background, user_present_required
    request_id
    string
    A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
    is_investments_fallback_item
    boolean
    When true, this field indicates that the Item's portfolio was manually created with the Investments Fallback flow.
    1{
    2 "accounts": [
    3 {
    4 "account_id": "5Bvpj4QknlhVWk7GygpwfVKdd133GoCxB814g",
    5 "balances": {
    6 "available": 43200,
    7 "current": 43200,
    8 "iso_currency_code": "USD",
    9 "limit": null,
    10 "unofficial_currency_code": null
    11 },
    12 "mask": "4444",
    13 "name": "Plaid Money Market",
    14 "official_name": "Plaid Platinum Standard 1.85% Interest Money Market",
    15 "subtype": "money market",
    16 "type": "depository"
    17 },
    18 {
    19 "account_id": "JqMLm4rJwpF6gMPJwBqdh9ZjjPvvpDcb7kDK1",
    20 "balances": {
    21 "available": null,
    22 "current": 110.01,
    23 "iso_currency_code": "USD",
    24 "limit": null,
    25 "unofficial_currency_code": null
    26 },
    27 "mask": "5555",
    28 "name": "Plaid IRA",
    29 "official_name": null,
    30 "subtype": "ira",
    31 "type": "investment"
    32 },
    33 {
    34 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
    35 "balances": {
    36 "available": null,
    37 "current": 23631.9805,
    38 "iso_currency_code": "USD",
    39 "limit": null,
    40 "unofficial_currency_code": null
    41 },
    42 "mask": "6666",
    43 "name": "Plaid 401k",
    44 "official_name": null,
    45 "subtype": "401k",
    46 "type": "investment"
    47 },
    48 {
    49 "account_id": "ax0xgOBYRAIqOOjeLZr0iZBb8r6K88HZXpvmq",
    50 "balances": {
    51 "available": 48200.03,
    52 "current": 48200.03,
    53 "iso_currency_code": "USD",
    54 "limit": null,
    55 "unofficial_currency_code": null
    56 },
    57 "mask": "4092",
    58 "name": "Plaid Crypto Exchange Account",
    59 "official_name": null,
    60 "subtype": "crypto exchange",
    61 "type": "investment"
    62 }
    63 ],
    64 "holdings": [
    65 {
    66 "account_id": "JqMLm4rJwpF6gMPJwBqdh9ZjjPvvpDcb7kDK1",
    67 "cost_basis": 1,
    68 "institution_price": 1,
    69 "institution_price_as_of": "2021-04-13",
    70 "institution_price_datetime": null,
    71 "institution_value": 0.01,
    72 "iso_currency_code": "USD",
    73 "quantity": 0.01,
    74 "security_id": "d6ePmbPxgWCWmMVv66q9iPV94n91vMtov5Are",
    75 "unofficial_currency_code": null
    76 },
    77 {
    78 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
    79 "cost_basis": 1.5,
    80 "institution_price": 2.11,
    81 "institution_price_as_of": "2021-04-13",
    82 "institution_price_datetime": null,
    83 "institution_value": 2.11,
    84 "iso_currency_code": "USD",
    85 "quantity": 1,
    86 "security_id": "KDwjlXj1Rqt58dVvmzRguxJybmyQL8FgeWWAy",
    87 "unofficial_currency_code": null
    88 },
    89 {
    90 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
    91 "cost_basis": 10,
    92 "institution_price": 10.42,
    93 "institution_price_as_of": "2021-04-13",
    94 "institution_price_datetime": null,
    95 "institution_value": 20.84,
    96 "iso_currency_code": "USD",
    97 "quantity": 2,
    98 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
    99 "unofficial_currency_code": null
    100 },
    101 {
    102 "account_id": "JqMLm4rJwpF6gMPJwBqdh9ZjjPvvpDcb7kDK1",
    103 "cost_basis": 0.01,
    104 "institution_price": 0.011,
    105 "institution_price_as_of": "2021-04-13",
    106 "institution_price_datetime": null,
    107 "institution_value": 110,
    108 "iso_currency_code": "USD",
    109 "quantity": 10000,
    110 "security_id": "8E4L9XLl6MudjEpwPAAgivmdZRdBPJuvMPlPb",
    111 "unofficial_currency_code": null
    112 },
    113 {
    114 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
    115 "cost_basis": 23,
    116 "institution_price": 27,
    117 "institution_price_as_of": "2021-04-13",
    118 "institution_price_datetime": null,
    119 "institution_value": 636.309,
    120 "iso_currency_code": "USD",
    121 "quantity": 23.567,
    122 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
    123 "unofficial_currency_code": null
    124 },
    125 {
    126 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
    127 "cost_basis": 15,
    128 "institution_price": 13.73,
    129 "institution_price_as_of": "2021-04-13",
    130 "institution_price_datetime": null,
    131 "institution_value": 1373.6865,
    132 "iso_currency_code": "USD",
    133 "quantity": 100.05,
    134 "security_id": "nnmo8doZ4lfKNEDe3mPJipLGkaGw3jfPrpxoN",
    135 "unofficial_currency_code": null
    136 },
    137 {
    138 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
    139 "cost_basis": 1,
    140 "institution_price": 1,
    141 "institution_price_as_of": "2021-04-13",
    142 "institution_price_datetime": null,
    143 "institution_value": 12345.67,
    144 "iso_currency_code": "USD",
    145 "quantity": 12345.67,
    146 "security_id": "d6ePmbPxgWCWmMVv66q9iPV94n91vMtov5Are",
    147 "unofficial_currency_code": null
    148 },
    149 {
    150 "account_id": "ax0xgOBYRAIqOOjeLZr0iZBb8r6K88HZXpvmq",
    151 "cost_basis": 92.47,
    152 "institution_price": 0.177494362,
    153 "institution_price_as_of": "2022-01-14",
    154 "institution_price_datetime": "2022-06-07T23:01:00Z",
    155 "institution_value": 4437.35905,
    156 "iso_currency_code": "USD",
    157 "quantity": 25000,
    158 "security_id": "vLRMV3MvY1FYNP91on35CJD5QN5rw9Fpa9qOL",
    159 "unofficial_currency_code": null
    160 }
    161 ],
    162 "item": {
    163 "available_products": [
    164 "balance",
    165 "identity",
    166 "liabilities",
    167 "transactions"
    168 ],
    169 "billed_products": [
    170 "assets",
    171 "auth",
    172 "investments"
    173 ],
    174 "consent_expiration_time": null,
    175 "error": null,
    176 "institution_id": "ins_3",
    177 "item_id": "4z9LPae1nRHWy8pvg9jrsgbRP4ZNQvIdbLq7g",
    178 "update_type": "background",
    179 "webhook": "https://www.genericwebhookurl.com/webhook"
    180 },
    181 "request_id": "l68wb8zpS0hqmsJ",
    182 "securities": [
    183 {
    184 "close_price": 0.011,
    185 "close_price_as_of": "2021-04-13",
    186 "cusip": null,
    187 "institution_id": null,
    188 "institution_security_id": null,
    189 "is_cash_equivalent": false,
    190 "isin": null,
    191 "iso_currency_code": "USD",
    192 "name": "Nflx Feb 01'18 $355 Call",
    193 "proxy_security_id": null,
    194 "security_id": "8E4L9XLl6MudjEpwPAAgivmdZRdBPJuvMPlPb",
    195 "sedol": null,
    196 "ticker_symbol": "NFLX180201C00355000",
    197 "type": "derivative",
    198 "unofficial_currency_code": null,
    199 "update_datetime": null,
    200 "market_identifier_code": "XNAS",
    201 "option_contract": {
    202 "contract_type": "call",
    203 "expiration_date": "2018-02-01",
    204 "strike_price": 355,
    205 "underlying_security_ticker": "NFLX"
    206 }
    207 },
    208 {
    209 "close_price": 27,
    210 "close_price_as_of": null,
    211 "cusip": "577130834",
    212 "institution_id": null,
    213 "institution_security_id": null,
    214 "is_cash_equivalent": false,
    215 "isin": "US5771308344",
    216 "iso_currency_code": "USD",
    217 "name": "Matthews Pacific Tiger Fund Insti Class",
    218 "proxy_security_id": null,
    219 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
    220 "sedol": null,
    221 "ticker_symbol": "MIPTX",
    222 "type": "mutual fund",
    223 "unofficial_currency_code": null,
    224 "update_datetime": null,
    225 "market_identifier_code": "XNAS",
    226 "option_contract": null
    227 },
    228 {
    229 "close_price": 2.11,
    230 "close_price_as_of": null,
    231 "cusip": "00448Q201",
    232 "institution_id": null,
    233 "institution_security_id": null,
    234 "is_cash_equivalent": false,
    235 "isin": "US00448Q2012",
    236 "iso_currency_code": "USD",
    237 "name": "Achillion Pharmaceuticals Inc.",
    238 "proxy_security_id": null,
    239 "security_id": "KDwjlXj1Rqt58dVvmzRguxJybmyQL8FgeWWAy",
    240 "sedol": null,
    241 "ticker_symbol": "ACHN",
    242 "type": "equity",
    243 "unofficial_currency_code": null,
    244 "update_datetime": null,
    245 "market_identifier_code": "XNAS",
    246 "option_contract": null
    247 },
    248 {
    249 "close_price": 10.42,
    250 "close_price_as_of": null,
    251 "cusip": "258620103",
    252 "institution_id": null,
    253 "institution_security_id": null,
    254 "is_cash_equivalent": false,
    255 "isin": "US2586201038",
    256 "iso_currency_code": "USD",
    257 "name": "DoubleLine Total Return Bond Fund",
    258 "proxy_security_id": null,
    259 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
    260 "sedol": null,
    261 "ticker_symbol": "DBLTX",
    262 "type": "mutual fund",
    263 "unofficial_currency_code": null,
    264 "update_datetime": null,
    265 "market_identifier_code": "XNAS",
    266 "option_contract": null
    267 },
    268 {
    269 "close_price": 1,
    270 "close_price_as_of": null,
    271 "cusip": null,
    272 "institution_id": null,
    273 "institution_security_id": null,
    274 "is_cash_equivalent": true,
    275 "isin": null,
    276 "iso_currency_code": "USD",
    277 "name": "U S Dollar",
    278 "proxy_security_id": null,
    279 "security_id": "d6ePmbPxgWCWmMVv66q9iPV94n91vMtov5Are",
    280 "sedol": null,
    281 "ticker_symbol": "USD",
    282 "type": "cash",
    283 "unofficial_currency_code": null,
    284 "update_datetime": null,
    285 "market_identifier_code": null,
    286 "option_contract": null
    287 },
    288 {
    289 "close_price": 13.73,
    290 "close_price_as_of": null,
    291 "cusip": null,
    292 "institution_id": "ins_3",
    293 "institution_security_id": "NHX105509",
    294 "is_cash_equivalent": false,
    295 "isin": null,
    296 "iso_currency_code": "USD",
    297 "name": "NH PORTFOLIO 1055 (FIDELITY INDEX)",
    298 "proxy_security_id": null,
    299 "security_id": "nnmo8doZ4lfKNEDe3mPJipLGkaGw3jfPrpxoN",
    300 "sedol": null,
    301 "ticker_symbol": "NHX105509",
    302 "type": "etf",
    303 "unofficial_currency_code": null,
    304 "update_datetime": null,
    305 "market_identifier_code": "XNAS",
    306 "option_contract": null
    307 },
    308 {
    309 "close_price": 0.140034616,
    310 "close_price_as_of": "2022-01-24",
    311 "cusip": null,
    312 "institution_id": "ins_3",
    313 "institution_security_id": null,
    314 "is_cash_equivalent": true,
    315 "isin": null,
    316 "iso_currency_code": "USD",
    317 "name": "Dogecoin",
    318 "proxy_security_id": null,
    319 "security_id": "vLRMV3MvY1FYNP91on35CJD5QN5rw9Fpa9qOL",
    320 "sedol": null,
    321 "ticker_symbol": "DOGE",
    322 "type": "cryptocurrency",
    323 "unofficial_currency_code": null,
    324 "update_datetime": "2022-06-07T23:01:00Z",
    325 "market_identifier_code": "XNAS",
    326 "option_contract": null
    327 }
    328 ]
    329}
    Was this helpful?

    /investments/transactions/get

    Get investment transactions

    The /investments/transactions/get endpoint allows developers to retrieve up to 24 months of user-authorized transaction data for investment accounts.
    Transactions are returned in reverse-chronological order, and the sequence of transaction ordering is stable and will not shift.
    Due to the potentially large number of investment transactions associated with an Item, results are paginated. Manipulate the count and offset parameters in conjunction with the total_investment_transactions response body field to fetch all available investment transactions.
    Note that Investments does not have a webhook to indicate when initial transaction data has loaded (unless you use the async_update option). Instead, if transactions data is not ready when /investments/transactions/get is first called, Plaid will wait for the data. For this reason, calling /investments/transactions/get immediately after Link may take up to one to two minutes to return.
    Data returned by the asynchronous investments extraction flow (when async_update is set to true) may not be immediately available to /investments/transactions/get. To be alerted when the data is ready to be fetched, listen for the HISTORICAL_UPDATE webhook. If no investments history is ready when /investments/transactions/get is called, it will return a PRODUCT_NOT_READY error.

    investments/transactions/get

    Request fields and example

    client_id
    string
    Your Plaid API client_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.
    secret
    string
    Your Plaid API secret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.
    access_token
    requiredstring
    The access token associated with the Item data is being requested for.
    start_date
    requiredstring
    The earliest date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD.

    Format: date
    end_date
    requiredstring
    The most recent date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD.

    Format: date
    options
    object
    An optional object to filter /investments/transactions/get results. If provided, must be non-null.
    account_ids
    [string]
    An array of account_ids to retrieve for the Item.
    count
    integer
    The number of transactions to fetch.

    Default: 100
    Minimum: 1
    Maximum: 500
    offset
    integer
    The number of transactions to skip when fetching transaction history

    Default: 0
    Minimum: 0
    async_update
    boolean
    If the Item was not initialized with the investments product via the products array when calling /link/token/create, and async_update is set to true, the initial Investments extraction will happen asynchronously. Plaid will subsequently fire a HISTORICAL_UPDATE webhook when the extraction completes. When false, Plaid will wait to return a response until extraction completion and no HISTORICAL_UPDATE webhook will fire. Note that while the extraction is happening asynchronously, calls to /investments/transactions/get and /investments/refresh will return PRODUCT_NOT_READY errors until the extraction completes.

    Default: false
    Select group for content switcher
    Select Language
    1const request: InvestmentsTransactionsGetRequest = {
    2 access_token: accessToken,
    3 start_date: '2019-01-01',
    4 end_date: '2019-06-10',
    5};
    6try {
    7 const response = await plaidClient.investmentsTransactionsGet(request);
    8 const investmentTransactions = response.data.investment_transactions;
    9} catch (error) {
    10 // handle error
    11}
    investments/transactions/get

    Response fields and example

    item
    object
    Metadata about the Item.
    item_id
    string
    The Plaid Item ID. The item_id is always unique; linking the same account at the same institution twice will result in two Items with different item_id values. Like all Plaid identifiers, the item_id is case-sensitive.
    institution_id
    nullablestring
    The Plaid Institution ID associated with the Item. Field is null for Items created via Same Day Micro-deposits.
    webhook
    nullablestring
    The URL registered to receive webhooks for the Item.
    error
    nullableobject
    We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
    error_type
    string
    A broad categorization of the error. Safe for programmatic use.

    Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
    error_code
    string
    The particular error code. Safe for programmatic use.
    error_message
    string
    A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
    display_message
    nullablestring
    A user-friendly representation of the error code. null if the error is not related to user action.
    This may change over time and is not safe for programmatic use.
    request_id
    string
    A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
    causes
    array
    In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
    causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
    status
    nullableinteger
    The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
    documentation_url
    string
    The URL of a Plaid documentation page with more information about the error
    suggested_action
    nullablestring
    Suggested steps for resolving the error
    available_products
    [string]
    A list of products available for the Item that have not yet been accessed. The contents of this array will be mutually exclusive with billed_products.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    billed_products
    [string]
    A list of products that have been billed for the Item. The contents of this array will be mutually exclusive with available_products. Note - billed_products is populated in all environments but only requests in Production are billed. Also note that products that are billed on a pay-per-call basis rather than a pay-per-Item basis, such as balance, will not appear here.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    products
    [string]
    A list of products added to the Item. In almost all cases, this will be the same as the billed_products field. For some products, it is possible for the product to be added to an Item but not yet billed (e.g. Assets, before /asset_report/create has been called, or Auth or Identity when added as Optional Products but before their endpoints have been called), in which case the product may appear in products but not in billed_products.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    consented_products
    [string]
    A list of products that have gone through consent collection for the Item. Only present for those enabled in the Data Transparency beta. If you are not enrolled in Data Transparency, this field is not used.

    Possible values: assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identity
    consent_expiration_time
    nullablestring
    The RFC 3339 timestamp after which the consent provided by the end user will expire. Upon consent expiration, the item will enter the ITEM_LOGIN_REQUIRED error state. To circumvent the ITEM_LOGIN_REQUIRED error and maintain continuous consent, the end user can reauthenticate via Link’s update mode in advance of the consent expiration time.
    Note - This is only relevant for certain OAuth-based institutions. For all other institutions, this field will be null.


    Format: date-time
    update_type
    string
    Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication.
    background - Item can be updated in the background
    user_present_required - Item requires user interaction to be updated


    Possible values: background, user_present_required
    accounts
    [object]
    The accounts for which transaction history is being fetched.
    account_id
    string
    Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new account_id will be assigned to the account.
    The account_id can also change if the access_token is deleted and the same credentials that were used to generate that access_token are used to generate a new access_token on a later date. In that case, the new account_id will be different from the old account_id.
    If an account with a specific account_id disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API.
    Like all Plaid identifiers, the account_id is case sensitive.
    balances
    object
    A set of fields describing the balance for an account. Balance information may be cached unless the balance object was returned by /accounts/balance/get.
    available
    nullablenumber
    The amount of funds available to be withdrawn from the account, as determined by the financial institution.
    For credit-type accounts, the available balance typically equals the limit less the current balance, less any pending outflows plus any pending inflows.
    For depository-type accounts, the available balance typically equals the current balance less any pending outflows plus any pending inflows. For depository-type accounts, the available balance does not include the overdraft limit.
    For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the available balance is the total cash available to withdraw as presented by the institution.
    Note that not all institutions calculate the available balance. In the event that available balance is unavailable, Plaid will return an available balance value of null.
    Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /accounts/balance/get.
    If current is null this field is guaranteed not to be null.


    Format: double
    current
    nullablenumber
    The total amount of funds in or owed by the account.
    For credit-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder.
    For loan-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (ins_116944). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest.
    For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the current balance is the total value of assets as presented by the institution.
    Note that balance information may be cached unless the value was returned by /accounts/balance/get; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the available balance as provided by /accounts/balance/get.
    When returned by /accounts/balance/get, this field may be null. When this happens, available is guaranteed not to be null.


    Format: double
    limit
    nullablenumber
    For credit-type accounts, this represents the credit limit.
    For depository-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe.
    In North America, this field is typically only available for credit-type accounts.


    Format: double
    iso_currency_code
    nullablestring
    The ISO-4217 currency code of the balance. Always null if unofficial_currency_code is non-null.
    unofficial_currency_code
    nullablestring
    The unofficial currency code associated with the balance. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
    See the currency code schema for a full listing of supported unofficial_currency_codes.
    last_updated_datetime
    nullablestring
    Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) indicating the oldest acceptable balance when making a request to /accounts/balance/get.
    This field is only used and expected when the institution is ins_128026 (Capital One) and the Item contains one or more accounts with a non-depository account type, in which case a value must be provided or an INVALID_REQUEST error with the code of INVALID_FIELD will be returned. For Capital One depository accounts as well as all other account types on all other institutions, this field is ignored. See account type schema for a full list of account types.
    If the balance that is pulled is older than the given timestamp for Items with this field required, an INVALID_REQUEST error with the code of LAST_UPDATED_DATETIME_OUT_OF_RANGE will be returned with the most recent timestamp for the requested account contained in the response.


    Format: date-time
    mask
    nullablestring
    The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.
    name
    string
    The name of the account, either assigned by the user or by the financial institution itself
    official_name
    nullablestring
    The official name of the account as given by the financial institution
    type
    string
    investment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.
    credit: Credit card
    depository: Depository account
    loan: Loan account
    other: Non-specified account type
    See the Account type schema for a full listing of account types and corresponding subtypes.


    Possible values: investment, credit, depository, loan, brokerage, other
    subtype
    nullablestring
    See the Account type schema for a full listing of account types and corresponding subtypes.

    Possible values: 401a, 401k, 403B, 457b, 529, brokerage, cash isa, crypto exchange, education savings account, ebt, fixed annuity, gic, health reimbursement arrangement, hsa, isa, ira, lif, life insurance, lira, lrif, lrsp, non-custodial wallet, non-taxable brokerage account, other, other insurance, other annuity, prif, rdsp, resp, rlif, rrif, pension, profit sharing plan, retirement, roth, roth 401k, rrsp, sep ira, simple ira, sipp, stock plan, thrift savings plan, tfsa, trust, ugma, utma, variable annuity, credit card, paypal, cd, checking, savings, money market, prepaid, auto, business, commercial, construction, consumer, home equity, loan, mortgage, overdraft, line of credit, student, cash management, keogh, mutual fund, recurring, rewards, safe deposit, sarsep, payroll, null
    verification_status
    string
    The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.
    pending_automatic_verification: The Item is pending automatic verification
    pending_manual_verification: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the micro-deposit.
    automatically_verified: The Item has successfully been automatically verified
    manually_verified: The Item has successfully been manually verified
    verification_expired: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link.
    verification_failed: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link.
    database_matched: The Item has successfully been verified using Plaid's data sources. Note: Database Match is currently a beta feature, please contact your account manager for more information.
    database_insights_pass: The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.
    database_insights_pass_with_caution: The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.
    database_insights_fail: The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.


    Possible values: automatically_verified, pending_automatic_verification, pending_manual_verification, manually_verified, verification_expired, verification_failed, database_matched, database_insights_pass, database_insights_pass_with_caution, database_insights_fail
    persistent_account_id
    string
    A unique and persistent identifier for accounts that can be used to trace multiple instances of the same account across different Items for depository accounts. This is currently only supported for Chase Items. Because Chase accounts have a different account number each time they are linked, this field may be instead of the account number to uniquely identify a Chase account across multiple Items for payments use cases, helping to reduce duplicate Items or attempted fraud.
    securities
    [object]
    All securities for which there is a corresponding transaction being fetched.
    security_id
    string
    A unique, Plaid-specific identifier for the security, used to associate securities with holdings. Like all Plaid identifiers, the security_id is case sensitive. The security_id may change if inherent details of the security change due to a corporate action, for example, in the event of a ticker symbol change or CUSIP change.
    isin
    nullablestring
    12-character ISIN, a globally unique securities identifier. A verified CUSIP Global Services license is required to receive this data. This field will be null by default for new customers, and null for existing customers starting March 12, 2024. If you would like access to this field, please start the verification process here.
    cusip
    nullablestring
    9-character CUSIP, an identifier assigned to North American securities. A verified CUSIP Global Services license is required to receive this data. This field will be null by default for new customers, and null for existing customers starting March 12, 2024. If you would like access to this field, please start the verification process here.
    sedol
    nullablestring
    7-character SEDOL, an identifier assigned to securities in the UK.
    institution_security_id
    nullablestring
    An identifier given to the security by the institution
    institution_id
    nullablestring
    If institution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.
    proxy_security_id
    nullablestring
    In certain cases, Plaid will provide the ID of another security whose performance resembles this security, typically when the original security has low volume, or when a private security can be modeled with a publicly traded security.
    name
    nullablestring
    A descriptive name for the security, suitable for display.
    ticker_symbol
    nullablestring
    The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.
    is_cash_equivalent
    nullableboolean
    Indicates that a security is a highly liquid asset and can be treated like cash.
    type
    nullablestring
    The security type of the holding.
    In rare instances, a null value is returned when institutional data is insufficient to determine the security type.
    Valid security types are:
    cash: Cash, currency, and money market funds
    cryptocurrency: Digital or virtual currencies
    derivative: Options, warrants, and other derivative instruments
    equity: Domestic and foreign equities
    etf: Multi-asset exchange-traded investment funds
    fixed income: Bonds and certificates of deposit (CDs)
    loan: Loans and loan receivables
    mutual fund: Open- and closed-end vehicles pooling funds of multiple investors
    other: Unknown or other investment types
    close_price
    nullablenumber
    Price of the security at the close of the previous trading session. Null for non-public securities.
    If the security is a foreign currency this field will be updated daily and will be priced in USD.
    If the security is a cryptocurrency, this field will be updated multiple times a day. As crypto prices can fluctuate quickly and data may become stale sooner than other asset classes, refer to update_datetime with the time when the price was last updated.


    Format: double
    close_price_as_of
    nullablestring
    Date for which close_price is accurate. Always null if close_price is null.

    Format: date
    update_datetime
    nullablestring
    Date and time at which close_price is accurate, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). Always null if close_price is null.

    Format: date-time
    iso_currency_code
    nullablestring
    The ISO-4217 currency code of the price given. Always null if unofficial_currency_code is non-null.
    unofficial_currency_code
    nullablestring
    The unofficial currency code associated with the security. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
    See the currency code schema for a full listing of supported iso_currency_codes.
    market_identifier_code
    nullablestring
    The ISO-10383 Market Identifier Code of the exchange or market in which the security is being traded.
    option_contract
    nullableobject
    Details about the option security.
    For the Sandbox environment, this data is currently only available if the item is using a custom configuration object, and the ticker field of the custom security follows the OCC Option Symbol standard with no spaces.
    contract_type
    string
    The type of this option contract. It is one of:
    put: for Put option contracts
    call: for Call option contracts
    expiration_date
    string
    The expiration date for this option contract, in ISO 8601 format.

    Format: date
    strike_price
    number
    The strike price for this option contract, per share of security.

    Format: double
    underlying_security_ticker
    string
    The ticker of the underlying security for this option contract.
    investment_transactions
    [object]
    The transactions being fetched
    investment_transaction_id
    string
    The ID of the Investment transaction, unique across all Plaid transactions. Like all Plaid identifiers, the investment_transaction_id is case sensitive.
    cancel_transaction_id
    deprecatednullablestring
    A legacy field formerly used internally by Plaid to identify certain canceled transactions.
    account_id
    string
    The account_id of the account against which this transaction posted.
    security_id
    nullablestring
    The security_id to which this transaction is related.
    date
    string
    The ISO 8601 posting date for the transaction.

    Format: date
    name
    string
    The institution’s description of the transaction.
    quantity
    number
    The number of units of the security involved in this transaction. Positive for buy transactions; negative for sell transactions.

    Format: double
    amount
    number
    The complete value of the transaction. Positive values when cash is debited, e.g. purchases of stock; negative values when cash is credited, e.g. sales of stock. Treatment remains the same for cash-only movements unassociated with securities.

    Format: double
    price
    number
    The price of the security at which this transaction occurred.

    Format: double
    fees
    nullablenumber
    The combined value of all fees applied to this transaction

    Format: double
    type
    string
    Value is one of the following: buy: Buying an investment sell: Selling an investment cancel: A cancellation of a pending transaction cash: Activity that modifies a cash position fee: A fee on the account transfer: Activity which modifies a position, but not through buy/sell activity e.g. options exercise, portfolio transfer
    For descriptions of possible transaction types and subtypes, see the Investment transaction types schema.


    Possible values: buy, sell, cancel, cash, fee, transfer
    subtype
    string
    For descriptions of possible transaction types and subtypes, see the Investment transaction types schema.

    Possible values: account fee, adjustment, assignment, buy, buy to cover, contribution, deposit, distribution, dividend, dividend reinvestment, exercise, expire, fund fee, interest, interest receivable, interest reinvestment, legal fee, loan payment, long-term capital gain, long-term capital gain reinvestment, management fee, margin expense, merger, miscellaneous fee, non-qualified dividend, non-resident tax, pending credit, pending debit, qualified dividend, rebalance, return of principal, request, sell, sell short, send, short-term capital gain, short-term capital gain reinvestment, spin off, split, stock distribution, tax, tax withheld, trade, transfer, transfer fee, trust fee, unqualified gain, withdrawal
    iso_currency_code
    nullablestring
    The ISO-4217 currency code of the transaction. Always null if unofficial_currency_code is non-null.
    unofficial_currency_code
    nullablestring
    The unofficial currency code associated with the holding. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
    See the currency code schema for a full listing of supported iso_currency_codes.
    total_investment_transactions
    integer
    The total number of transactions available within the date range specified. If total_investment_transactions is larger than the size of the transactions array, more transactions are available and can be fetched via manipulating the offset parameter.
    request_id
    string
    A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
    is_investments_fallback_item
    boolean
    When true, this field indicates that the Item's portfolio was manually created with the Investments Fallback flow.
    1{
    2 "accounts": [
    3 {
    4 "account_id": "5e66Dl6jNatx3nXPGwZ7UkJed4z6KBcZA4Rbe",
    5 "balances": {
    6 "available": 100,
    7 "current": 110,
    8 "iso_currency_code": "USD",
    9 "limit": null,
    10 "unofficial_currency_code": null
    11 },
    12 "mask": "0000",
    13 "name": "Plaid Checking",
    14 "official_name": "Plaid Gold Standard 0% Interest Checking",
    15 "subtype": "checking",
    16 "type": "depository"
    17 },
    18 {
    19 "account_id": "KqZZMoZmBWHJlz7yKaZjHZb78VNpaxfVa7e5z",
    20 "balances": {
    21 "available": null,
    22 "current": 320.76,
    23 "iso_currency_code": "USD",
    24 "limit": null,
    25 "unofficial_currency_code": null
    26 },
    27 "mask": "5555",
    28 "name": "Plaid IRA",
    29 "official_name": null,
    30 "subtype": "ira",
    31 "type": "investment"
    32 },
    33 {
    34 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
    35 "balances": {
    36 "available": null,
    37 "current": 23631.9805,
    38 "iso_currency_code": "USD",
    39 "limit": null,
    40 "unofficial_currency_code": null
    41 },
    42 "mask": "6666",
    43 "name": "Plaid 401k",
    44 "official_name": null,
    45 "subtype": "401k",
    46 "type": "investment"
    47 }
    48 ],
    49 "investment_transactions": [
    50 {
    51 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
    52 "amount": -8.72,
    53 "cancel_transaction_id": null,
    54 "date": "2020-05-29",
    55 "fees": 0,
    56 "investment_transaction_id": "oq99Pz97joHQem4BNjXECev1E4B6L6sRzwANW",
    57 "iso_currency_code": "USD",
    58 "name": "INCOME DIV DIVIDEND RECEIVED",
    59 "price": 0,
    60 "quantity": 0,
    61 "security_id": "eW4jmnjd6AtjxXVrjmj6SX1dNEdZp3Cy8RnRQ",
    62 "subtype": "dividend",
    63 "type": "cash",
    64 "unofficial_currency_code": null
    65 },
    66 {
    67 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
    68 "amount": -1289.01,
    69 "cancel_transaction_id": null,
    70 "date": "2020-05-28",
    71 "fees": 7.99,
    72 "investment_transaction_id": "pK99jB9e7mtwjA435GpVuMvmWQKVbVFLWme57",
    73 "iso_currency_code": "USD",
    74 "name": "SELL Matthews Pacific Tiger Fund Insti Class",
    75 "price": 27.53,
    76 "quantity": -47.74104242992852,
    77 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
    78 "subtype": "sell",
    79 "type": "sell",
    80 "unofficial_currency_code": null
    81 },
    82 {
    83 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
    84 "amount": 7.7,
    85 "cancel_transaction_id": null,
    86 "date": "2020-05-27",
    87 "fees": 7.99,
    88 "investment_transaction_id": "LKoo1ko93wtreBwM7yQnuQ3P5DNKbKSPRzBNv",
    89 "iso_currency_code": "USD",
    90 "name": "BUY DoubleLine Total Return Bond Fund",
    91 "price": 10.42,
    92 "quantity": 0.7388014749727547,
    93 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
    94 "subtype": "buy",
    95 "type": "buy",
    96 "unofficial_currency_code": null
    97 }
    98 ],
    99 "item": {
    100 "available_products": [
    101 "assets",
    102 "balance",
    103 "identity",
    104 "transactions"
    105 ],
    106 "billed_products": [
    107 "auth",
    108 "investments"
    109 ],
    110 "consent_expiration_time": null,
    111 "error": null,
    112 "institution_id": "ins_12",
    113 "item_id": "8Mqq5rqQ7Pcxq9MGDv3JULZ6yzZDLMCwoxGDq",
    114 "update_type": "background",
    115 "webhook": "https://www.genericwebhookurl.com/webhook"
    116 },
    117 "request_id": "iv4q3ZlytOOthkv",
    118 "securities": [
    119 {
    120 "close_price": 27,
    121 "close_price_as_of": null,
    122 "cusip": "577130834",
    123 "institution_id": null,
    124 "institution_security_id": null,
    125 "is_cash_equivalent": false,
    126 "isin": "US5771308344",
    127 "iso_currency_code": "USD",
    128 "name": "Matthews Pacific Tiger Fund Insti Class",
    129 "proxy_security_id": null,
    130 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
    131 "sedol": null,
    132 "ticker_symbol": "MIPTX",
    133 "type": "mutual fund",
    134 "unofficial_currency_code": null,
    135 "update_datetime": null,
    136 "market_identifier_code": "XNAS",
    137 "option_contract": null
    138 },
    139 {
    140 "close_price": 10.42,
    141 "close_price_as_of": null,
    142 "cusip": "258620103",
    143 "institution_id": null,
    144 "institution_security_id": null,
    145 "is_cash_equivalent": false,
    146 "isin": "US2586201038",
    147 "iso_currency_code": "USD",
    148 "name": "DoubleLine Total Return Bond Fund",
    149 "proxy_security_id": null,
    150 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
    151 "sedol": null,
    152 "ticker_symbol": "DBLTX",
    153 "type": "mutual fund",
    154 "unofficial_currency_code": null,
    155 "update_datetime": null,
    156 "market_identifier_code": "XNAS",
    157 "option_contract": null
    158 },
    159 {
    160 "close_price": 34.73,
    161 "close_price_as_of": null,
    162 "cusip": "84470P109",
    163 "institution_id": null,
    164 "institution_security_id": null,
    165 "is_cash_equivalent": false,
    166 "isin": "US84470P1093",
    167 "iso_currency_code": "USD",
    168 "name": "Southside Bancshares Inc.",
    169 "proxy_security_id": null,
    170 "security_id": "eW4jmnjd6AtjxXVrjmj6SX1dNEdZp3Cy8RnRQ",
    171 "sedol": null,
    172 "ticker_symbol": "SBSI",
    173 "type": "equity",
    174 "unofficial_currency_code": null,
    175 "update_datetime": null,
    176 "market_identifier_code": "XNAS",
    177 "option_contract": null
    178 }
    179 ],
    180 "total_investment_transactions": 3
    181}
    Was this helpful?

    Webhooks

    Updates are sent to indicate that new holdings or investment transactions are available.

    HOLDINGS: DEFAULT_UPDATE

    Fired when new or updated holdings have been detected on an investment account. The webhook typically fires in response to any newly added holdings or price changes to existing holdings, most commonly after market close.

    webhook_type
    string
    HOLDINGS
    webhook_code
    string
    DEFAULT_UPDATE
    item_id
    string
    The item_id of the Item associated with this webhook, warning, or error
    error
    object
    We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
    error_type
    string
    A broad categorization of the error. Safe for programmatic use.

    Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
    error_code
    string
    The particular error code. Safe for programmatic use.
    error_message
    string
    A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
    display_message
    string
    A user-friendly representation of the error code. null if the error is not related to user action.
    This may change over time and is not safe for programmatic use.
    request_id
    string
    A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
    causes
    array
    In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
    causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
    status
    integer
    The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
    documentation_url
    string
    The URL of a Plaid documentation page with more information about the error
    suggested_action
    string
    Suggested steps for resolving the error
    new_holdings
    number
    The number of new holdings reported since the last time this webhook was fired.
    updated_holdings
    number
    The number of updated holdings reported since the last time this webhook was fired.
    environment
    string
    The Plaid environment the webhook was sent from

    Possible values: development, sandbox, production
    1{
    2 "webhook_type": "HOLDINGS",
    3 "webhook_code": "DEFAULT_UPDATE",
    4 "item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
    5 "error": null,
    6 "new_holdings": 19,
    7 "updated_holdings": 0,
    8 "environment": "production"
    9}
    Was this helpful?

    INVESTMENTS_TRANSACTIONS: DEFAULT_UPDATE

    Fired when new transactions have been detected on an investment account.

    webhook_type
    string
    INVESTMENTS_TRANSACTIONS
    webhook_code
    string
    DEFAULT_UPDATE
    item_id
    string
    The item_id of the Item associated with this webhook, warning, or error
    error
    object
    We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
    error_type
    string
    A broad categorization of the error. Safe for programmatic use.

    Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
    error_code
    string
    The particular error code. Safe for programmatic use.
    error_message
    string
    A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
    display_message
    string
    A user-friendly representation of the error code. null if the error is not related to user action.
    This may change over time and is not safe for programmatic use.
    request_id
    string
    A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
    causes
    array
    In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
    causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
    status
    integer
    The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
    documentation_url
    string
    The URL of a Plaid documentation page with more information about the error
    suggested_action
    string
    Suggested steps for resolving the error
    new_investments_transactions
    number
    The number of new transactions reported since the last time this webhook was fired.
    canceled_investments_transactions
    number
    The number of canceled transactions reported since the last time this webhook was fired.
    environment
    string
    The Plaid environment the webhook was sent from

    Possible values: development, sandbox, production
    1{
    2 "webhook_type": "INVESTMENTS_TRANSACTIONS",
    3 "webhook_code": "DEFAULT_UPDATE",
    4 "item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
    5 "error": null,
    6 "new_investments_transactions": 16,
    7 "canceled_investments_transactions": 0,
    8 "environment": "production"
    9}
    Was this helpful?

    INVESTMENTS_TRANSACTIONS: HISTORICAL_UPDATE

    Fired after an asynchronous extraction on an investments account.

    webhook_type
    string
    INVESTMENTS_TRANSACTIONS
    webhook_code
    string
    HISTORICAL_UPDATE
    item_id
    string
    The item_id of the Item associated with this webhook, warning, or error
    error
    object
    We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
    error_type
    string
    A broad categorization of the error. Safe for programmatic use.

    Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
    error_code
    string
    The particular error code. Safe for programmatic use.
    error_message
    string
    A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
    display_message
    string
    A user-friendly representation of the error code. null if the error is not related to user action.
    This may change over time and is not safe for programmatic use.
    request_id
    string
    A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
    causes
    array
    In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
    causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
    status
    integer
    The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
    documentation_url
    string
    The URL of a Plaid documentation page with more information about the error
    suggested_action
    string
    Suggested steps for resolving the error
    new_investments_transactions
    number
    The number of new transactions reported since the last time this webhook was fired.
    canceled_investments_transactions
    number
    The number of canceled transactions reported since the last time this webhook was fired.
    environment
    string
    The Plaid environment the webhook was sent from

    Possible values: development, sandbox, production
    1{
    2 "webhook_type": "INVESTMENTS_TRANSACTIONS",
    3 "webhook_code": "HISTORICAL_UPDATE",
    4 "item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
    5 "error": null,
    6 "new_investments_transactions": 16,
    7 "canceled_investments_transactions": 0,
    8 "environment": "production"
    9}
    Was this helpful?
    Developer community
    GitHub
    GitHub
    Stack Overflow
    Stack Overflow
    YouTube
    YouTube
    Discord
    Discord