#yi_best-practices

1 messages ยท Page 1 of 1 (latest)

lavish mortarBOT
#

๐Ÿ‘‹ 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.

quiet mauve
#

๐Ÿ‘‹ happy to help

#

what exactly would you like me to answer?

somber heath
#

For #1, Why remove subscription level period? How to get a subscription current period end in this billing cycle?

quiet mauve
#

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

somber heath
#

I understand. Isn't there a simpler way? This is difficult to use since our subscriptions typically only have one item.

quiet mauve
#

then you know that the subscription's first item's billing cycle is the billing cycle of the whole subscription

lavish mortarBOT
robust pecan
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

somber heath
#

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?

robust pecan
#

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

somber heath
#

invoice finalized and generate payment intent?

robust pecan
somber heath
#

I roughly understand now.

#

So, the invoice payment needs follow the rule?

robust pecan
#

Yes the same principles appy, none of that has changes. Just the shape of the API structure where these objects reference each other