Investments
API reference for Investments endpoints and webhooks
| Endpoints | |
|---|---|
/investments/holdings/get | Fetch investment holdings |
/investments/transactions/get | Fetch investment transactions |
| In this section | |
|---|---|
HOLDINGS: DEFAULT_UPDATE | New holdings available |
INVESTMENTS_TRANSACTIONS: DEFAULT_UPDATE | New transactions available |
INVESTMENTS_TRANSACTIONS: HISTORICAL_UPDATE | Investments 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.
Request fields and example
client_idclient_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.secretsecret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.access_tokenoptions/investments/holdings/get results. If provided, must not be null.account_idsaccount_ids to retrieve for the Item. An error will be returned if a provided account_id is not associated with the Item.1// Pull Holdings for an Item2const 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 error11}Response fields and example
accountsaccount_idaccount_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/accounts/balance/get.availableFor
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.double currentFor
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.double limitcredit-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.double iso_currency_codeunofficial_currency_code is non-null.unofficial_currency _codeiso_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_datetimeYYYY-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.date-time masknameofficial_nametypeinvestment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.credit: Credit carddepository: Depository accountloan: Loan accountother: Non-specified account typeSee the Account type schema for a full listing of account types and corresponding subtypes.
investment, credit, depository, loan, brokerage, othersubtype401a, 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, nullverification_statuspending_automatic_verification: The Item is pending automatic verificationpending_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 verifiedverification_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.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_failpersistent_account_idholdingssecurities field.account_idaccount_id associated with the holding.security_idsecurity_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_pricedouble institution_price_as _ofinstitution_price was current.date institution_price _datetimeinstitution_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).
date-time institution_valuedouble cost_basisdouble quantityquantity will reflect the total number of options (typically the number of contracts multiplied by 100), not the number of contracts.double iso_currency_codenull if unofficial_currency_code is non-null.unofficial_currency _codenull 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.securitiessecurity_idsecurity_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.isincusipsedolinstitution_security _idinstitution_idinstitution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.proxy_security_idnameticker_symbolis_cash_equivalenttypeIn 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 fundscryptocurrency: Digital or virtual currenciesderivative: Options, warrants, and other derivative instrumentsequity: Domestic and foreign equitiesetf: Multi-asset exchange-traded investment fundsfixed income: Bonds and certificates of deposit (CDs)loan: Loans and loan receivablesmutual fund: Open- and closed-end vehicles pooling funds of multiple investorsother: Unknown or other investment typesclose_priceIf 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.double close_price_as_ofclose_price is accurate. Always null if close_price is null.date update_datetimeclose_price is accurate, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). Always null if close_price is null.date-time iso_currency_codenull if unofficial_currency_code is non-null.unofficial_currency _codenull 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_codeoption_contractFor 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_typeput: for Put option contractscall: for Call option contractsexpiration_datestrike_pricedouble underlying_security _tickeritemitem_iditem_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_idnull for Items created via Same Day Micro-deposits.webhookerrorerror_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_typeINVALID_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_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses 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.statusdocumentation_urlsuggested_actionavailable_productsbilled_products.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_identitybilled_productsavailable_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.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_identityproductsbilled_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.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_identityconsented_productsassets, 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_identityconsent_expiration _timeITEM_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.
date-time update_typebackground - Item can be updated in the backgrounduser_present_required - Item requires user interaction to be updatedbackground, user_present_requiredrequest_idis_investments _fallback_item1{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": null11 },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": null26 },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": null41 },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": null56 },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": null76 },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": null88 },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": null100 },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": null112 },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": null124 },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": null136 },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": null148 },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": null160 }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": null227 },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": null247 },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": null267 },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": null287 },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": null307 },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": null327 }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.
Request fields and example
client_idclient_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.secretsecret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.access_tokenstart_datedate end_datedate options/investments/transactions/get results. If provided, must be non-null.account_idsaccount_ids to retrieve for the Item.count100 1 500 offset0 0 async_updateproducts 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.false 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 error11}Response fields and example
itemitem_iditem_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_idnull for Items created via Same Day Micro-deposits.webhookerrorerror_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_typeINVALID_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_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses 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.statusdocumentation_urlsuggested_actionavailable_productsbilled_products.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_identitybilled_productsavailable_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.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_identityproductsbilled_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.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_identityconsented_productsassets, 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_identityconsent_expiration _timeITEM_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.
date-time update_typebackground - Item can be updated in the backgrounduser_present_required - Item requires user interaction to be updatedbackground, user_present_requiredaccountsaccount_idaccount_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/accounts/balance/get.availableFor
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.double currentFor
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.double limitcredit-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.double iso_currency_codeunofficial_currency_code is non-null.unofficial_currency _codeiso_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_datetimeYYYY-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.date-time masknameofficial_nametypeinvestment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.credit: Credit carddepository: Depository accountloan: Loan accountother: Non-specified account typeSee the Account type schema for a full listing of account types and corresponding subtypes.
investment, credit, depository, loan, brokerage, othersubtype401a, 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, nullverification_statuspending_automatic_verification: The Item is pending automatic verificationpending_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 verifiedverification_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.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_failpersistent_account_idsecuritiessecurity_idsecurity_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.isincusipsedolinstitution_security _idinstitution_idinstitution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.proxy_security_idnameticker_symbolis_cash_equivalenttypeIn 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 fundscryptocurrency: Digital or virtual currenciesderivative: Options, warrants, and other derivative instrumentsequity: Domestic and foreign equitiesetf: Multi-asset exchange-traded investment fundsfixed income: Bonds and certificates of deposit (CDs)loan: Loans and loan receivablesmutual fund: Open- and closed-end vehicles pooling funds of multiple investorsother: Unknown or other investment typesclose_priceIf 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.double close_price_as_ofclose_price is accurate. Always null if close_price is null.date update_datetimeclose_price is accurate, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). Always null if close_price is null.date-time iso_currency_codenull if unofficial_currency_code is non-null.unofficial_currency _codenull 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_codeoption_contractFor 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_typeput: for Put option contractscall: for Call option contractsexpiration_datestrike_pricedouble underlying_security _tickerinvestment _transactionsinvestment _transaction_idinvestment_transaction_id is case sensitive.cancel_transaction_idaccount_idaccount_id of the account against which this transaction posted.security_idsecurity_id to which this transaction is related.namequantitydouble amountdouble pricedouble feesdouble typebuy: 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 transferFor descriptions of possible transaction types and subtypes, see the Investment transaction types schema.
buy, sell, cancel, cash, fee, transfersubtypeaccount 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, withdrawaliso_currency_codenull if unofficial_currency_code is non-null.unofficial_currency _codenull 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 _transactionstotal_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_idis_investments _fallback_item1{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": null11 },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": null26 },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": null41 },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": null65 },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": null81 },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": null97 }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": null138 },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": null158 },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": null178 }179 ],180 "total_investment_transactions": 3181}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_typeHOLDINGSwebhook_codeDEFAULT_UPDATEitem_iditem_id of the Item associated with this webhook, warning, or errorerrorerror_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_typeINVALID_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_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses 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.statusdocumentation_urlsuggested_actionnew_holdingsupdated_holdingsenvironmentdevelopment, sandbox, production1{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_typeINVESTMENTS_TRANSACTIONSwebhook_codeDEFAULT_UPDATEitem_iditem_id of the Item associated with this webhook, warning, or errorerrorerror_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_typeINVALID_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_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses 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.statusdocumentation_urlsuggested_actionnew_investments _transactionscanceled_investments _transactionsenvironmentdevelopment, sandbox, production1{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_typeINVESTMENTS_TRANSACTIONSwebhook_codeHISTORICAL_UPDATEitem_iditem_id of the Item associated with this webhook, warning, or errorerrorerror_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_typeINVALID_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_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses 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.statusdocumentation_urlsuggested_actionnew_investments _transactionscanceled_investments _transactionsenvironmentdevelopment, sandbox, production1{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}