Comments (4)
There is not a way to keep the initial transaction pull from being broken into two parts (historical and initial). If you don't want to wait for the webhook, I suppose you could just wait for a few minutes before calling the sync endpoint to have really good odds that the fetch is complete, or alternatively you could poll /transactions/sync
on the item, watch the transactions_update_status
field, wait for it to update toHISTORICAL_UPDATE_COMPLETE
, and then re-call /transactions/sync
on that item with a null
cursor to get all the transactions from the beginning. However, we strongly encourage you to implement webhooks, since they are pretty core to how Plaid handles async behaviors, and the Plaid API has a lot of async behaviors, especially when using the transactions endpoints.
from plaid-node.
Thanks for your reply... I cant seem to find in the documentation how/where to declare the webhook url programmatically for transactions. It seems as though I need to proceed with webhook approach.
Its unfortunate that historical data is not readily available. Even with a debounce + poll it still returns initial.
from plaid-node.
The webhook url is set when calling /link/token/create: https://plaid.com/docs/api/tokens/#link-token-create-request-webhook
If you are not getting historical data ever, I suggest you:
- Make sure you are setting
days_requested
correctly https://plaid.com/docs/api/tokens/#link-token-create-request-transactions-days-requested - Try waiting ~10 minutes before calling the sync endpoint for the first time (if this fixes the issue there's probably a problem in your code regarding how you're handling cursors...see my note about polling the sync endpoint to watch for updates to the
transactions_update_status
field and then calling with anull
cursor after it updates) - Try linking a different account to rule out issues with your specific bank
from plaid-node.
Closing this out as it's not related to the node client library -- if you continue to have trouble, feel free to file a support ticket
from plaid-node.
Related Issues (20)
- Missing endpoint HOT 2
- Webhook is sending empty request body HOT 12
- Error: Income Verification Not Found HOT 3
- Healthcheck endpoint for Plaid API HOT 1
- Axios Dependency Upgrade from 0.21.4 to Latest HOT 1
- Let me connect HOT 1
- Money HOT 1
- Is the error handling code in the README correct ? HOT 4
- TS4114 error on base.ts file HOT 3
- No support for edge runtime environment HOT 4
- Bank Income verification doesn't trigger a webhook HOT 1
- Plaid open with specific institution instead of list HOT 1
- `RemovedTransaction.transaction_id` is optional HOT 2
- Missing property on `LinkTokenCreateRequestAuth` interface HOT 2
- statementsDownload returns corrupted PDF HOT 3
- Server-side implementation HOT 5
- Transaction amount digital counts (Not the same with bank statement) HOT 2
- Add zero_hash to ProcessorTokenCreateRequestProcessorEnum HOT 1
- No support for days_requested on plaid create token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plaid-node.