#kacy_api

1 messages ยท Page 1 of 1 (latest)

marble nacelleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

๐Ÿ”— 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/1212581737075441715

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

โฒ๏ธ 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. Thank you for your patience!

lunar narwhalBOT
#

Hello! We'll be with you shortly. 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.

pearl meadow
#

When call Retrieve Subscription, you want to expand items.data.price

vivid parcel
#

Let me try !

#

Just to check, the right query using Node.JS SDK would be

let _a = await stripe.Stripe.subscriptions.retrieve("sub_1OoywuHKQ1MO1mAIoxnoi1uJ", {expand: ['items.data.price']});
pearl meadow
#

I think so

vivid parcel
#

I still don't have the pricing then ๐Ÿ˜…

#

I think I forgot to mention it, it's a tiered subscription, maybe that's why ?

pearl meadow
#

What does it give you?

#

Just empty array?

vivid parcel
#

I do get the price, but I don't have any amounts, they're all null

pearl meadow
#

You could try expand a bit more

#

like "items.data.price.currency_options"

vivid parcel
#

Still no amount

pearl meadow
#

expand "tiers" under "eur"

#

Maybe it exceeded 4 levels of expanding ๐Ÿ™‚

vivid parcel
#

It does, should I fetch directly items and expand from there ?

pearl meadow
#

You can take the Price Id first and then call Retrieve Price API and expand from there

vivid parcel
#

OK I'll do that, just a sec !

#

I have the tiers now, I guess I could just compare against them now !

#

Thanks for the help !

pearl meadow
#

np and good luck!