#redstone-accounting-exchangerate
1 messages · Page 1 of 1 (latest)
@timid galleon hello! Can you provide more context about what you are trying to do? What's a "payout payment" what "currency fee" are you referring to?
Payout payment would be associated payment intents/charges that make up a payout. By currency fee I meant the foreign exchange fee or just the exchange rate at time of processing.
gotcha
so a Payout can have 1 or many payments/money movements aggregated/bundled together
you can use the https://stripe.com/docs/api/balance_transactions/list API and pass payout: 'po_123' to see all the transactions bundled in that Payout
and the BalanceTransaction API resource https://stripe.com/docs/api/balance/balance_transaction has information about our fee (see fee_details and the exchange_rate used (if any happened)
you can also look at the source property to see what caused the money movement (a Charge, a Refund, a Dispute, etc.)
You can use the Expand feature https://stripe.com/docs/expand to retrieve/expand multiple linked objects at once. See this concrete example: https://stripe.com/docs/expand/use-cases#charges-in-payout
Thank you so much for your help!