#blackbearftw_code

1 messages ¡ Page 1 of 1 (latest)

night meteorBOT
#

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

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

near zealot
#

Hey there, you need to retrieve either the session with line_items expanded or retrieve the subscription and inspect the items

quartz flax
#

okay

#

but then how do I get the product id after that

#

just the line item id?

#

or

near zealot
#

With the session,. if you expand the line_items that should also include the expanded price object for each line item, which will have product: prod_123

#

If you need the expanded product object, then you can expand that expand[]=line_items.data.price.product

quartz flax
#

I just need the id

#

please keep this thread open, ill try this one and come back to u

#

because I also need to do the same thing on CustomerSubscriptionUpdated