#jmontydesign-payouts
1 messages · Page 1 of 1 (latest)
{"object":"list","data":[{"id":"txn_1KYhTJQhQX0ElSYF8nFDwf4l","object":"balance_transaction","amount":-64400,"available_on":1646265600,"created":1646186361,"currency":"usd","description":"STRIPE PAYOUT","exchange_rate":null,"fee":0,"fee_details":[],"net":-64400,"reporting_category":"payout","source":"po_1KYhTJQhQX0ElSYFNPydmqPI","status":"pending","type":"payout"},{"id":"txn_1KYfkUQhQX0ElSYFdAFUQ1Lp","object":"balance_transaction","amount":5000,"available_on":1646179738,"created":1646179738,"currency":"usd","description":null,"exchange_rate":null,"fee":0,"fee_details":[],"net":5000,"reporting_category":"charge","source":"py_1KYfkUQhQX0ElSYFX8kApYno","status":"available","type":"payment"},{"id":"txn_1KYffjQhQX0ElSYFyh174Xp9","object":"balance_transaction","amount":5000,"available_on":1646179443,"created":1646179443,"currency":"usd","description":null,"exchange_rate":null,"fee":0,"fee_details":[],"net":5000,"reporting_category":"charge","source":"py_1KYffiQhQX0ElSYFcTyt6Jp3","status":"available","type":"payment"},{"id":"txn_1KYfZ8QhQX0ElSYFATrZxk4g","object":"balance_transaction","amount":54400,"available_on":1646179034,"created":1646179034,"currency":"usd","description":null,"exchange_rate":null,"fee":0,"fee_details":[],"net":54400,"reporting_category":"charge","source":"py_1KYfZ7QhQX0ElSYFswk0LDtF","status":"available","type":"payment"}],"has_more":false,"url":"/v1/balance_transactions"}
Sorry, for the unformatted data. There is no reference to "tr_..." to link it back to a transaction id.
I believe you'll want to expand data.source.source_transfer to get that information - see https://stripe.com/docs/expand/use-cases#charges-in-payout
thanks
I don't see an example of teh what the balance transaction object would look like wtith this expanded data.? Would it return the whole transfer object or just the id?
It should return the whole transfer object - expanding data.source will expand the py_xxx object with the transfer ID being at source_transaction. So if you expand data.source.source_transaction you should see both the py_xxx object and the nest transfer object also expanded.
balanceTransationList returns an object with a data property that is an array. All of the objects in the data array have a "txn_....". So where would the transfer object be after I pass in expand: ['data.source.source_transfer']? Top level of the data array? or nested in the objects in the data array that have the "txn.." property?
Or are you saying that the "data" object will no longer be an array?
Have you tried it out to see what it looks like? I think a lot of this will be clearer if you try it out and see what the response looks like
The payout happens once a day. So I can only test this daily.? Is there a faster way to trigger a scheduled payment?
You would test this out with a payout that's already happened - you can make a one-off script just to grab the most recent payout and retrieve it with expansion
docs for getting a payout from a connected account?
You'd list the payouts (https://stripe.com/docs/api/payouts/list) with the Stripe-Account header set to the connected account ID
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.