Giter Club home page Giter Club logo

Comments (4)

phoenixy1 avatar phoenixy1 commented on August 16, 2024

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.

sleep9 avatar sleep9 commented on August 16, 2024

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.

phoenixy1 avatar phoenixy1 commented on August 16, 2024

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:

  1. Make sure you are setting days_requested correctly https://plaid.com/docs/api/tokens/#link-token-create-request-transactions-days-requested
  2. 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 a null cursor after it updates)
  3. Try linking a different account to rule out issues with your specific bank

from plaid-node.

phoenixy1 avatar phoenixy1 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.