#jmontydesign-payouts

1 messages · Page 1 of 1 (latest)

torpid arrow
#

Do you have an example balance transaction I can look at?

feral ember
#

{"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.

torpid arrow
feral ember
#

thanks

feral ember
#

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?

torpid arrow
#

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.

feral ember
#

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?

torpid arrow
#

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

feral ember
#

The payout happens once a day. So I can only test this daily.? Is there a faster way to trigger a scheduled payment?

torpid arrow
#

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

feral ember
#

docs for getting a payout from a connected account?

torpid arrow