#quipeace_best-practices

1 messages Β· Page 1 of 1 (latest)

bronze glenBOT
#

πŸ‘‹ 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/1391767460918726667

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

jagged path
#

Hi, can you share more? What is the subscription id where you see this behavior?

narrow thistle
#

I don't have a sub ready, so I'll generate one now that you can see the behaviour in. However, this behaviour can be seen in any subscription with metered and non-metered items and a subscription schedule.

jagged path
#

The expected behavior is that if you report the usage, it would bill you for that usage for the given time frame. However, without an example it is hard to say for sure.

narrow thistle
#

See sub_1RiEox2TQEjyGjZMBHSvEBDF

You can see that the upcoming invoice ONLY covers the usage, instead of the usage for the previous month and the base fee for the next one.

#

This is contrary to how billing normally works, where one invoice covers both the charge in arrears and the fee for next month, e.g. sub_1RgQt42TQEjyGjZMKIDhAfzZ

jagged path
#

This is working as expected, for sub_1RiEox2TQEjyGjZMBHSvEBDF you have price_1MMq962TQEjyGjZMnPSMUyAZ which is free from 2025-07-07 - 2025-07-21 so there is a $0 invoice: in_1RiEox2TQEjyGjZMVYqGqpsb on https://dashboard.stripe.com/test/logs/req_puj3IV8Z0V8i8r

Then, you're billing for the base fee: in_1RiEpT2TQEjyGjZMzNLkf0Ca on https://dashboard.stripe.com/test/logs/req_LkDnwFrFSfqGy2 about a minute later

On this subscription, sub_1RgQt42TQEjyGjZMKIDhAfzZ you're passing both of the free and the base prices on the subscription creation: https://dashboard.stripe.com/test/logs/req_ZLj0kF0agQOWvU. Can you add both of the prices on the creation request for the other subscription flow as well?

jagged path
#

@narrow thistle are you still here? Have you already tried?

narrow thistle
#

Hi! Had to step out for a second

#

I'm not sure if I'm following. I'm not looking at the 0 euro invoice for that free period. That's all functioning as expected. I'm referring to the subscription's current state where it has a subscription schedule.

Subscription sub_1RiEox2TQEjyGjZMBHSvEBDF's upcoming invoice is €8.47, the only charge being the "data sources" charge.

Subscription sub_1RgQt42TQEjyGjZMKIDhAfzZ's upcoming invoice has both the data sources charge (2 Jul 2025 - 2 Aug 2025) as well as the "base fee" charge for the following cycle (2 Aug 2025 - 2 Sept 2025)

The first subscription's upcoming invoice is lacking the base fee charge for the next billing cycle.

jagged path
#

The way you created both subscriptions is different. The first one was created a single price, then you updated it with another price. On the second subscription, you passed both of the prices at the same time on the subscription creation request.

#

What I'm asking is to match the way you create the subscriptions

narrow thistle
#

I don't see why that would matter if both subscriptions are currently equipped with both prices I'll recreate a subscription that has both charges from scratch, but that's not going to change the outcome.

#

sub_1RiFhv2TQEjyGjZMf72PWtMJ

#

Same behaviour. Note how the upcoming invoice does not include the base fee.

jagged path
#

Hmm, the invoice: in_1RiFhv2TQEjyGjZM3BOwT9oO does charge for €49.00 which is the base fee.

You mentioned the upcomoing invoice, what do you expect exactly? Maybe I do not understand the desired behavior here.

narrow thistle
#

I expect the upcoming invoice to include both the data sources charge for the previous period, and the base fee charge for the upcoming period.

bronze glenBOT
narrow thistle
#

As soon as I apply a subscription schedule as per the migration guide, the base fee disappears from the upcoming invoice.

jagged path
narrow thistle
#

I'm looking at the dashboard.
However, this upcoming invoice is also how it will eventually play out. Our customers will be getting two invoices, one after the other. The first charges for the "data sources" fee (arrears) and the second one will charge the base fee.

candid bluff
#

Hello
Taking over and looking

narrow thistle
#

Thanks both!

candid bluff
#

This is a test mode subscription right? If possible, can you use a test clock and forward the clock to the next month?

Just want to check how the invoice behaves

narrow thistle
#

Need to step out for ~30mins, I'll run the sim!

narrow thistle
#

I ran the sim. As you can see, two invoices were created.

Our customers aren't expecting multiple invoices. This'll increase the odds payments fail and understandably cause questions from our customers 😦

candid bluff
#

Gotcha. Thanks.. Looking

#

Hmm so based on the invoice object, the base fee invoice is for subscription cycle & the other invoice was generated due a subscription update.

Still trying to figure out what's going on but that's likely the root cause here πŸ€”

candid bluff
#

Hmm I asked a colleague to look and we're stumped at this as well. We need to talk to the product team and figure out what's going on.

bronze glenBOT
#

Hello @narrow thistle, we have sent you a direct message, please check it at https://discord.com/channels/@me/1391802141596844142

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
candid bluff
#

Can you write in using the URL you should've received in DM?