#kentbrady - Stripe fees
1 messages · Page 1 of 1 (latest)
Yes the fee is on the balance transaction object https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
A successful payment intent will have a list of charges, one of those charges will have a status of succeeded, that charge will have a balance_transaction property
So for example, on the capture charge response it has the balance_transaction id field https://stripe.com/docs/api/charges/capture
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I could then do a get with this endpoint to get the details of the fee object? https://stripe.com/docs/api/balance_transactions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Correct
You can even use expansion to get it all back on the capture call
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think you will want to expand something like charges.data.balance_transaction