#dbarbosa - payout transactions
1 messages ยท Page 1 of 1 (latest)
Hi there. When you retrieve a payout, it will have a balance transaction on it: https://stripe.com/docs/api/payouts/object#payout_object-balance_transaction. You can then retrieve that balance transaction: https://stripe.com/docs/api/balance_transactions/object. That's the closest you can get to achieving this via the API unfortunately.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Unfortunately I need the Tax value from the Invoice of every Transaction... I need this detail for accountant purpose. Balance Transaction is not enough.
Ok I see. And you'll need to tie them to a payout for accounting purposes as well?
Sorry I shared the wrong link initially for what you want
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you can pass a payout and list the balance transactions
Then use expand to expand the charge
(expand the source https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-source)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And that still might not have all the data you want, so you might have to retrieve associated objects on that charge object: https://stripe.com/docs/api/charges/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Nice thanks ๐