#jco_code

1 messages ¡ Page 1 of 1 (latest)

drifting chasmBOT
#

👋 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/1388115143845478554

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

vernal nymph
#

hi there!

real yew
#

Hi

real yew
#

yes

vernal nymph
#

by default it's just a string with a Price ID (price_xxx), unless you use expand and in this case it would be a full Price object.

real yew
#

Can I expand on retrieve? The docs say you cant.

#

As in they say there are no params accepted by it.

vernal nymph
#

Can I expand on retrieve? The docs say you cant.
of course. where did you see that it's not possible?

real yew
#

Am I just not understanding the API docs? I take the params having nothing as in I cannot pass things like expand to it?

vernal nymph
#

I don't understand the issue. you can absolutely do something like this:

const product = await stripe.products.retrieve('prod_xxx', {
   expand: [ 'default_price' ]
});

real yew
vernal nymph
#

got it, but expand works on all endpoints.