#Jasuno

1 messages · Page 1 of 1 (latest)

eager slateBOT
hybrid robin
#

Hello 👋
This would typically depend on what kind of fund flow you're building with your connect platform (i.e. direct charges, destination charges etc)

Also, do you want to get this information via the API or the dashboard?

pearl jay
#

I would be using destination charge and it would be via API

hybrid robin
#

Gotcha. So with destination charges, the PaymentIntent objects are generated and owned by the platform.

Quick question: The payments that your tenants will make, will they be subscription payments or just one-off payments?

pearl jay
#

There is a potential for both but at the moment lets say just one offs

hybrid robin
#

Okay, so one option is to use the List all PaymentIntents API and retrieve all the charges on the account
https://stripe.com/docs/api/payment_intents/list

If you want to receive this information in real-time (when a payment is created and succeeds) then you should ideally build a webhook endpoint and listen to relevant events (in this case, instead of you polling the API the information would come to you)
https://stripe.com/docs/connect/webhooks

pearl jay
#

Ok if I understand correctly, if I want a list of transactions that relate to a specific connect account, I would have to track that data? There is no api that would return a transaction list that filters by different connect accounts?

hybrid robin
#

Since destination charges creates PaymentIntent objects on the platform account itself, yes there isn't a simpler way to do this. You could however, set the connected account ID in the metadata and use the Search PaymentIntents API
https://stripe.com/docs/api/payment_intents/search

pearl jay
#

Thanks that’s very helpful, if I could submit a feature request, It would be really helpful to have an api the takes a account number as a param and returns all the transaction in and out of that account that make up the balance. Because we wanted to show the user their balance and show them the transactions that make up that balance

hybrid robin
#

I'd be happy to file the feature request but I doubt that it would be possible to implement this. As with destination charges, you can create a transfer to one (or multiple accounts) at a time. So it gets difficult to track what account actually "owns" the payment itself. This comes down to how the funds flow in the background.

With direct charges, it is possible to list the PaymentIntents just by passing the connected account ID as the PaymentIntent objects are owned by the account itself.

pearl jay
#

Ok great thank you for the context and your time

hybrid robin
#

NP! 🙂 Happy to help