#thebobdresseur_api

1 messages ยท Page 1 of 1 (latest)

grizzled hamletBOT
#

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

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

quartz garnet
#

hi there!

rugged salmon
#

hello ๐Ÿ‘‹

grizzled hamletBOT
rain vault
#

Hello! I'm taking over for soma who had to step away, please give me a moment to catch up ๐Ÿ™‚

rugged salmon
#

hi !

rain vault
rugged salmon
#

I'd like next invoice to have :

  • item A
  • item B prorate for the 15th to 5th period
  • item B prorate for the 5th to 15th period
rain vault
#

Even though the last invoice charged a full month for item B? Which I assume was the item for โ‚ฌ80.00?

rugged salmon
#

the last invoice charged a full month for item A

rain vault
#

Can you clarify the price ID for item A and B?

rugged salmon
#

item A : si_U8Nwb1scvBrqfa
item B : si_U8NyrjfW2XCMkU

#

the timeline here is not the same as the one mentioned in my use case

#

is what I'm trying to do clear enough ?

rain vault
#

Sorry for the delay! I was juggling a few threads. Do I understand correctly that you want to add item B partway through the billing cycle so the full month charge is split accross two invoices?

rugged salmon
#

exactly, the main reason is to have everything on the same invoice for the customer

rain vault
rugged salmon
#

yes but i was not successful, this is why I'm here now ๐Ÿ˜…

rain vault
#

Thanks for your patience, I think I finally see the issue!

When you add an item to a subscription, it should generate a proration for the remainder of the current billing period then include the full charge on the next invoice. But you only want this item to be part of the subscription once. You could remove it from the subscription in the next billing period, but let me quickly search for if there's a better solution.

grizzled hamletBOT
rain vault
#

Is there a reason you aren't using a one-time payment for item B?

rugged salmon
#

it is an upsell in our product, also billed monthly

rain vault
#

But you only want to charge them for a single month, right?

rugged salmon
#

no monthly

#

until the user deactivate the upsell

rain vault
#

Oh, so your billing cycles should look like this which is what you already see, no?

  1. full amount for item A, partial amount for item B
  2. full amount for items A and B

Then, whenever they deactivate the upsell, you'll remove item B from the subscription and there will be a proration to ensure they aren't charged for item B for the remainder of that billing period.

rugged salmon
#

yes but here is the twist : if user activate and deactivate before next billing period, I still want him to pay for a full month. So I have a cron delaying item B deletion to activationDate + 1 month, but in between the user will be charged for a full month

rain vault
rugged salmon
#

Yes but the user is first billed with a full month because deletion happens aftewards. The prorate is applied to the next invoice but it would cleaner if the user is only billed with a prorate as he already requested the upsell deactivation

rain vault
#

I see, I was thinking we billed at the end of the period but we actually bill at the start - my mistake! This means they're being charged for a full month then being credited in the following invoice, but you want them to be charged the correct amount in the previous invoice.

#

Unfortunately, our prorations do not support this. If you need it, you'll have to set proration_behaviour: none and add/remove invoice items yourself.

rugged salmon
#

ok I see !

rain vault
rugged salmon
#

got it thanks !