POST /investments/transactions/get
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.
Servers
- https://production.plaid.com
- https://sandbox.plaid.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
start_date |
String | Yes |
The earliest date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD. |
client_id |
String | No |
Your Plaid API |
end_date |
String | Yes |
The most recent date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD. |
options |
Object | No |
An optional object to filter |
options.count |
Integer | No |
The number of transactions to fetch. Default value: 100 |
options.account_ids[] |
Array | No |
An array of |
options.offset |
Integer | No |
The number of transactions to skip when fetching transaction history Default value: 0 |
options.async_update |
Boolean | No |
If the Item was not initialized with the investments product via the Default value: false |
access_token |
String | Yes |
The access token associated with the Item data is being requested for. |
secret |
String | No |
Your Plaid API |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.