#hellomynameissam - Stripe Fees
1 messages · Page 1 of 1 (latest)
Hello! You can't get fees through the Charge API (a single Charge might have several fees associated with it), but fees are detailed in the Balance Transactions API: https://stripe.com/docs/api/balance_transactions
can I use a stripe charge id for this balance api?
👋 hey there, picking this up so @cursive girder can step away
You can't query those using a Charge ID, no, but instead you can retrieve a charge and use expansion to include the associated balance transaction
https://stripe.com/docs/api/expanding_objects
An example of this via the payment intents API is shown here:
https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
You'd do the same thing with the Charge API except change expansion to use expand[]=balance_transaction
gotcha okay thanks
NP!