#richard_api

1 messages ยท Page 1 of 1 (latest)

glossy moatBOT
humble crownBOT
#

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.

glossy moatBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

raven oak
#

Sorry got caught up in something and the thread got closed.

I think my primary question is how to initiate a subscription where the payment is taken at the end of the cycle. This is actually happening via the product?

dire igloo
#

Hi there ๐Ÿ‘‹ that isn't possible to control. Our metered Prices will always bill in arrears (at the end of the billing period once usage has been reported), and licensed Prices will always bill at the beginning of the billing period.

So it sounds like you'd need to build a way to work around that behavior. Two approaches come to mind:

  1. Create the Subscription without the flat fees, but with the metered Price. Later add the flat-fee Prices to the Subscription, so they start charging at the beginning of the next billing period which is also the end of the first billing period. The concern here is that I'm pretty sure this approach causes two invoices to be generated each billing period, since they need to have different billing period dates on them.
  2. Create your flat fee prices as metered Prices rather than licensed ones. Report a usage of 1 for those. This way they'll be billed at the end of the billing period like you're describing.
raven oak
#

I see...

#

I'm thinking option 2. since I need to adjust the flat fee based on usage

#

I have existing subscriptions with licensed products. To migrate them I'd change their line items to contain metered products instead

#

?

dire igloo
#

Correct

raven oak
#

Thanks will do that.

I'm guessing the Stripe checkout experience is going to be a bit weird for this implementation? It'll ask for $0

dire igloo
#

Yup, with this approach the first Invoice will be for $0, since everything will be billed at the end of the billing period, and our Checkout UI should show that.

raven oak
#

Right

#

Setting up the product, do I need a meter? I kind of want to do it myself?

dire igloo
#

With metered Prices, you need to either use a Billing Meter or Usage Records to report your usage information to us. Billing Meters are our newer way of reporting usage.

raven oak
#

ah usage records are the docs marked as legacy?

dire igloo
#

Correct

raven oak
#

Is it an option to do what I want by using items with quantity

dire igloo
raven oak
#

to set it at the end of the billing cycle

dire igloo
dire igloo
raven oak
#

thanks Toby, I appreciate borrowing your impressive billing mental model