#EdwinZ

1 messages · Page 1 of 1 (latest)

earnest ospreyBOT
pseudo fern
spark spade
#

The context for this is I will have the charges and will need to know the values of these given a specific charge. Will that then be the balance transaction endpoint? The balance endpoint doesn't appear to accept any parameters.

pseudo fern
#

Yeah, Balance Transactions show you the specific granular details of money movement into and out of your Stripe balance.

spark spade
#

Would it be correct to say that it is based off of the status? For example, if the status were "available", then the amount would show under "Available to pay out". If the status is "pending", it would show under "available soon"?

What I'm getting at is I need to recreate that Stripe screen outside of stripe.

pseudo fern
#

Essentially yes, that's correct. You won't be able to make an exact recreation of those values though. The way the Dashboard calculates those numbers is slightly different from the way the API calculates balances, so while the numbers will often be the same they may be slightly off in some cases.

spark spade
#

Thank you for that info. Can you expand upon scenarios where they may not be the same? How would I know if it is "In transit to bank"?

pseudo fern
#

I honestly don't know all of the details and nuance myself. Why do you need to reproduce this information outside of Stripe?

spark spade
#

Our agents are currently using that information to know if they should use reverse_transfer during a refund. We are creating a return process in Salesforce, the goal being for our agents to not have to bounce between systems.

pseudo fern
spark spade
#

Thank you!

#

One more question for you, how would I go about getting a payout Id if I have the charge Id?

pseudo fern
#

However, it's usually better to keep track of this on your end by listening for payout.created Events, checking which Charges are in each one as they happen, and storing that information in your database.

spark spade
#

We were hoping to avoid storing this in Salesforce and only retrieving on an as needed basis, we have a very high volume, and these refunds will only be a very small subset so most of those events to be stored would be unnecessary.

Just to verify, I will need to get the payouts and then match those with the balance transaction, there is no other way to query a specific payout for a charge?

pseudo fern
#

Correct.

spark spade
#

Cool. Thank you for all of your help, have a great weekend!