#kasturi-more_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1364685454695207022
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kasturi-more_api, 1 day ago, 35 messages
Hi ๐ the exact syntax fluctuates from language to language, but we have examples showing how to use our expand feature for each of our SDKs within our API ref here:
https://docs.stripe.com/api/expanding_objects
Since you're working with a List endpoint, I'm going to pull this pertinent part out of the description provided there:
Expansions on list requests start with the
dataproperty. For example, you can expanddata.customerson a request to list charges and associated customers. Performing deep expansions on numerous list requests might result in slower processing times.
Hey Toby, This is the req ID - req_U1extBqLnmiyzo
In the response, destination is not nil. but inside destination, bank account & card is nil. Could you please help me understand it?
It's in a test mode
I don't see expand being used in the request you shared. Have you tried making a request where you use expand, and pass it ['data.destination']?
how can we add this expand in following sdk usage type payoutsClienter interface {
Get(id string, params *stripe.PayoutParams) (*stripe.Payout, error)
List(listParams *stripe.PayoutListParams) *payout.Iter
}
This is for go?
yes
Here's the Go example from the API reference that I linked to initially:
params := &stripe.ChargeParams{}
params.AddExpand("customer")
params.AddExpand("invoice.subscription")
ch, err := charge.Get("ch_123", params)```
Using that as a template, we see that you need to use `AddExpand("data.destination")` between creating your params object and calling `.List()` to add the use of our expand feature.
perfect. I'll give it a try. Thank you! ๐