#delgesu1745_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/1347325642860920905
đ 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.
- delgesu1745_api, 1 day ago, 44 messages
- delgesu1745_api, 1 day ago, 4 messages
- delgesu1745_api, 1 day ago, 18 messages
Hello! Have a look at the curl example here to see how to provide expansion parameters to the API: https://docs.stripe.com/api/expanding_objects?lang=curl
Of course, using one of our offical SDKs is recommended.
Ha! I totally overlooked the brackets for the array structure with the expand.
Sadly, I can't because its for an app that uses no-code API setup (kinda like Zapier).
Ah, gotcha.
Thanks for the help!
No problem!
Hey one other question.
How do I get the default payment method on file for a customer via the get customer request?
I tried expanding the default_source, but I don't see anything attached to this customer, even though I know there's a default source.
It is a test customer with a test card, so not sure if that matters.
Can you give me the ID of the Customer so I can take a look?
Having default_source populated would be unusual unless you're using a very old integration; that property has been considered legacy for some time now.
It's more likely the Customer has a default set in invoice_settings.default_payment_method.
Gotcha. Yeah I found it under invoice_settings.default_payment_method
Oh I see why I missed it the first time. This software tool I'm using doesn't seem to parse the nested objects.
Ah.