#YTB-metadata
1 messages · Page 1 of 1 (latest)
Hi! This request returns a balance transaction, and balance transactions don't have a metadata field. So what exactly are you trying to retreive?
I was hoping for the metadata of the payment intent related to this transaction.
The balance transaction has a source field, that should contain the PaymentIntent. https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-source
And then in the PaymentIntent you will find the metadata.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can use expand to get the metadata in a single API call https://stripe.com/docs/expand