#nickdnk-payouts

1 messages ยท Page 1 of 1 (latest)

native anvil
wooden depot
#

I did code for inverse payouts, i.e. bank transfers, but this is not that

#

I'm a little confused what's going on there

#

I can DM you a link to the PDF I'm creating if you need some context

native anvil
#

Yeah these are pretty old so it may be tough to find out exactly what's going on - can you clarify a bit more what you mean by one payout being "contained" by the other? Are you making a specific API request (like listing the balance transactions for a payout https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout) that is tying the two together?

wooden depot
#

If you accept me as friend I can DM you the file I'm making as it may help you understand hwat I'm doing

#

or whatever you need to do to accept DM

#

And basically if you browse the "contents" of po_1EIQUXInOrGZTwVITyzN9GjR

#

(it has like 800 lines)

#

you'll find po_1EIQUXInOrGZTwVITyzN9GjR in there deducting from the payout

native anvil
#

Sorry, I don't accept DMs on Discord (I know some other folks do, but that's up to the individual)

#

but if you share as much information as you can here I can help!

wooden depot
#

Okay, I just can't share the lnk publicly

#

as it would be equivalent to sharing the dashboard breakdnwo of the payout

#

So I'm creating essentially a clone of what you see if you browse to the dashboard for po_1EIQUXInOrGZTwVITyzN9GjR

#

because, for some reason, Stripe won't let me download that entire breakdown as a PDF

#

So I figured I could code it. And I could, but it turned out to be a lot more complicated than I initially assumed because of cases like this

#

So now I'm left with a PDF that says:

grossed: 301,996.00kr
fees: -11,558.58kr
refunds: -3,400.00kr

net: 158,016.00kr

#

Because for some reason there are two "transfers" in the payout that deduct from the net

#

and I can't find out why

#

as you can tell, those numbers don't add up

#

one of those transfer objects is po_1CCn4jInOrGZTwVIkdzpV9KP

#

So I guess the question is: Is this something that could happen going forward or is this some legacy transfer logic?

native anvil
#

I can look at the payout on my end so I think I have all the info I need ๐Ÿ‘

#

and just to summarize, the issue here is that there are two extra "transfers" that also need to be subtracted from the gross amount to make the numbers add up, and you're not sure why that's the case

wooden depot
#

Yes

#

I don't know why those are not just separate payouts if they deduct from the amoount

#

Seems like a payout nested in a payout for some odd reason

#

I don't know how to code for that

#

And there are no failed payouts for that account at all, so it's not like it's a failed payout returned and wrapped in another attempt

native anvil
#

I need to do a bit more digging, but do you happen to know if po_1CCn4jInOrGZTwVIkdzpV9KP was a manual payout?

wooden depot
#

it was

#

Aha

#

Okay

#

that makes sense

#

If you perform a manual payout, then that amount is obviously deducted from the upcoming automatic one

#

That's good because I was wondering how I could handle those cases as we use Standard Connect and cannot prevent people from doing manual payouts even though we highly discourage it

native anvil
#

Awesome, I was hoping that po_1CCn4jInOrGZTwVIkdzpV9KP would be manual since that explains what's happening perfectly

wooden depot
#

po_1BiOR5InOrGZTwVImaplCIeS also is

#

and the sum of those is what's missing

native anvil
#

๐Ÿ‘

wooden depot
#

I think I have all the cases now

#

I just figured "gross - fee - refunds" and that would be quickly added up... now here I am 3 days later trying to handle dispute reversals, negative payouts and stripe software fees

#

But it's coming together nicely

#

thanks for helping

native anvil
#

glad it wasn't anything too bad!

wooden depot
#

Followup. If a payout is in one currency, can I assume that all the items in a report for that payout are also in that currency?

#

if I read the currency and not customer_facing_currency columns

native anvil
#

I'm actually heading out, but @fast ruin should be able to help you!

wooden depot
#

Cool

fast ruin
#

Hello ๐Ÿ‘‹
Give me a moment to catch up ๐Ÿ™‚

wooden depot
#

Only last question is relevant

#

just re-used the thread

#

so don't bother

fast ruin
#

Let me take a look as I'm not sure about this.
As far as my understanding goes about reports it should be in the same currency

wooden depot
#

Okay. because handling all this data with the currency varying for each line seems borderline impossible

#

payout_reconciliation.by_id.itemized.1 specifically

fast ruin
#

@wooden depot as far as I can gather, all balance transactions should be in the same currency as the Payout. The original transactions it points to like the Charge might not be. You probably should talk to our support team about this to make sure that's correct
https://support.stripe.com/?contact=true

wooden depot
#

Okay, cool

#

That's good enough. We try hard to enforce one single currency across the accounts anyway

#

i.e. you can only charge in one currency and pay out to one bank in the same currency