#charlie-fanbase_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1460240453084516480
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there ๐
Hey
for payout reconciliation, if you want to do this manually (rather than relying on a Stripe report/export) then you can log the Balance Transaction ID for each transaction (charge, refund, etc)
to reconcile, you can use this API to list all Balance Transactions for a given Payout: https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-payout
Ok great so the balance transaction will be used for all transactions on the payout report?
yep, exactly!
Ok cool thanks, that should make it easier
We will have to backfill all of our existing transactions to get the blanace transaction id, from a paymentIntentId. Is there a reccomeneded way to do this?
technically there's no direct link between the PaymentIntent ID and the Balance Transaction ID
The PaymentIntent object doesn't have a balance_transaction property, as that's related to the underlying/associated Charge object
https://docs.stripe.com/api/payment_intents/object
https://docs.stripe.com/api/charges/object#charge_object-balance_transaction
so in short, to get from the PaymentIntent ID to the Balance Transaction ID, you'd need to:
- retrieve the PI,
- expand the Charge, and
- get the
balance_transactionfrom the Charge object
you could also do the reverse by listing all Balance Transactions, and identifying the source (i.e. Charge ID) for each: https://docs.stripe.com/api/balance_transactions/list
Ok thanks for your help
any time!
have a nice day!