user2819732
user2819732

Reputation: 11

How to get payments connected with a certain transfer on Stripe through API?

I have transfers that were related with payments. I can see those through dashboard but seems they are not available to get using the API.

This is my charge on dashboard, as you can see it has two connected objects a customer and a transfer

Transfer connected with many payments

Upvotes: 0

Views: 76

Answers (1)

cyberwombat
cyberwombat

Reputation: 40084

Once you have fetched a transfer you can use the transfer ID with the balance transaction method. It's the only parameter you need to pass and it will return all the transactions related to that transfer.

If you are using NodeJS for example then it would be:

stripe.balance.listTransactions({ transfer: 'tr_8ahwq8qw34n' })

Upvotes: 1

Related Questions