#SamuelJS
1 messages · Page 1 of 1 (latest)
Hi
You should just include expand: ["source"]
hmm i see, when I try to access source.id now it says that "id" doesn't exist on type string?
Hello 👋
You may need to do data.source instead
We have an example here
https://stripe.com/docs/expand/use-cases#charges-in-payout
You don't need to specify id when you expand
okay gotcha, and this should allow access to the "id" field within source?
Correct
do you know why the source is of type string? im unable to access the id because of this
so once I expanded, i was assuming I can access the source id, by calling source.id but since source is a string its not recognizing it
i've attached an image of the source type above.
im accessing the source from BalanceTransaction
What are you seeing in the response once you expand?
nvm got it thanks!