#rohitbhargav
1 messages · Page 1 of 1 (latest)
Hello Stripe Team, Do we have any api that would return the stripe charge made on the payment made
Hi there, sure you can pass the payment_intent ID to the List Charge API (https://stripe.com/docs/api/charges/list#list_charges-payment_intent) to return the list of charges created in this payment intent.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The API will return a list of charges, you can find a sample response in the API reference that I sent earlier.
I am afraid that in the sample response i dont see a parameter that is displaying stripe fee
do you mean application_fee is the stripe fee
it's not included by default, to get stripe_fee, you need to expand the balance_transaction property when retrieving the charges list
This is how you expand a response -> https://stripe.com/docs/api/expanding_objects#expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay