#Scott-transfers-connect

1 messages · Page 1 of 1 (latest)

vivid sequoia
crystal nacelle
#

So I tried this but I get the gross amount rather than the NET

vivid sequoia
#

What do you mean by that? Do you have an example?

crystal nacelle
#

Here you can see the amount is 920

#

But there are application fees applied and they are not accounted for

vivid sequoia
#

Do you mind sharing that transfer ID here so I can look it up on my end?

crystal nacelle
#

Sure: tr_3Kr8LZBHoAmxvHT40EYRhWkA

vivid sequoia
#

Ah, so you're doing destination charges with an application fee and you want to be able to see how much the connect account keeps after the application fee has been subtracted. Is that right?

crystal nacelle
#

That's correct, I'd like the user to see how much net they made today rather than gross

#

so I loop through the transactions then do other stuff with that

vivid sequoia
#

Would it work for you to retrieve the transfer and expand destination_payment? I believe the destination payment should break down how much was in the application fee and you should be able to get the net from there

crystal nacelle
#

I will give it a go for sure

#

How can I grab the destination payment using the DestinationPaymentID?

vivid sequoia
#

When you retrieve the Transfer you'd use expansion - https://stripe.com/docs/expand. If you're retrieving a single Transfer you'd expand destination_payment, but if you're retrieveing a list then you'd expand data.destination_payment

crystal nacelle
#

Okay perfect, thank you