#yi_best-practices
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/1401863845491773471
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
For #1, Why remove subscription level period? How to get a subscription current period end in this billing cycle?
because in the new subscription mode flexible we will allow different durations and billing cycles on the same subscription
How to get a subscription current period end in this billing cycle?
instead you can see on a per subscription item billing cycle
I understand. Isn't there a simpler way? This is difficult to use since our subscriptions typically only have one item.
then you know that the subscription's first item's billing cycle is the billing cycle of the whole subscription
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
then you know that the subscription's first item's billing cycle is the billing cycle of the whole subscription
Got it
For #2, Under what circumstances will an invoice payment be generated?
Whenever a payment is due, e.g. amount > 0
The invoice will still generate a Payment Intent when necessary, there's just no direct property that references it now as an invoice can have multiple payments
invoice finalized and generate payment intent?
You'd look in the payments property instead: https://docs.stripe.com/api/invoices/object?api-version=2025-03-31.basil#invoice_object-payments
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I roughly understand now.
I remember the Charge object was created until paymen intent was confirmed. see: https://docs.stripe.com/payments-api/tour#:~:text=In most cases,to move money.
So, the invoice payment needs follow the rule?
Yes the same principles appy, none of that has changes. Just the shape of the API structure where these objects reference each other