#steffen-brand_code

1 messages ¡ Page 1 of 1 (latest)

shy sapphireBOT
#

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

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

thorny shoal
#

Yes Subscription now have multiple items, and it depends on your setup. If you always setup only 1 item, then it's good to look at item at index 0

shy sapphireBOT
civic girder
#

hi! I'm taking over this thread. let me know if you have other questions!

left bramble
#

Can you point me to some documentation that explains better what an item is in this context? For me the subscription itself always was "the item". Is each billing period an item?

civic girder
#

A subscription can have multiple prices. and each price is an item. we recently released a feature that allow you that have multiple price with different billing period. for example a subscription could have a yearly price and also a monthly price. in this case, the top-level current_period_end wouldn't make sense. that's why we moved it to the item itself.

#

assuming your subscription has a single price, you still need to use items->data[0]->current_period_end to know the end of the period of the subscription.

#

does that clarify things?