#alexsch_subs-proration

1 messages ยท Page 1 of 1 (latest)

earnest pollenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1261369158180798578

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

fallow dirge
#

hi

#
  • we have a subscription
  • it contains 1 product with quantity 5
  • I want to change the quantity to 4, get proration, and create a new subscription based on prorated amount
#

i can't understand, where to place 'proration_behavior' => 'create_prorations',
in subscriptionItems update?
or in subscription update?

earnest pollenBOT
median sail
#

You would add it in the Subscription update

fallow dirge
#

ok, let me check please

#

the prorated amount must appear in there ?

mystic pagoda
#

Hi ๐Ÿ‘‹

#

I'm stepping in as my colleague needs to go soon

#

No that is not where you would necessarily expect the proration to show up

fallow dirge
#

hi

#

can i see the prorated amount somewhere?

mystic pagoda
#

Downgrading your Subscription (using the Update API) will automatically create the prorations

#

can i see the prorated amount somewhere?
What have you done so far and what do you want to get?

fallow dirge
#

I need to create a new subscription after prorating the previous one
I would like to use a prorated amount for this

#

does this look right?

mystic pagoda
#

Sorry that doesn't make any sense.

  1. Prorations aren't something that happens to a Subscription. They occur as the result of changes to Subscriptions but they show up on Invoices
  2. Why are you creating a second Subscription? Did you cancel the first one?
#

does this look right?
I have no idea because I don't understand what you are doing

fallow dirge
#

well, is a very long story and business requirements

we are selling a subscription with a quantity of 10, for example
after that, in couple of months, we need to activate the subscription, because is when we receive the genetic data for this customer

so our appoach is

create a new subscription with qty of 10
user will pay for this subscription

in 2 months (+-), we receive the activation for the subscription (one of them)

so, i;m getting the initial, paid subscription, doing a minus 1 for each activation and getting the prorated amount

after that, with prorated amount, i'm creating a new subscription which starts on date of the activation

mystic pagoda
#

SOrry that doesn't make any sense to me. I still don't understand why you would need to create a new subscription in that case.

fallow dirge
#

ok, nevermind

#

thank you

mystic pagoda
#

Have you been testing this via the API?