#Benoît

1 messages · Page 1 of 1 (latest)

jagged shuttleBOT
carmine void
#

👋 happy to help

quiet wing
#

Hello @carmine void 🙌

carmine void
#

please give me a moment to read through your message

quiet wing
#

Of course !

#

Just in case :

My subscription is sub_1NLwJqAYYvne95SH1eURL4nK, and the new added item is si_O8O3JhyOroTAlL.

And the prorated invoice is in_1NM7HOAYYvne95SH9ELawQ6S. I was expecting it to be to its full price : 10€, and no 9.84€

carmine void
#

if you don't want proprations to be calculated then you need to use proration_behavior: 'none'

quiet wing
#

I already test it, and no payment is done immediately. Should it have been ?

quiet wing
#

With proration_behavior: 'none', the item is just added to the subscription, ready for the next upcoming invoice, but the customer has not paid immediately

carmine void
#

I'm looking into this, just give me a second please

quiet wing
#

No problem, thank you

carmine void
#

do you want the proration to happen but to be deducted from the next invoice?

quiet wing
#

To be simple, i need the strict opposite of proration_behavior: 'always_invoice'.
Instead of having a prorated payment now, and the full price in the next upcoming invoice, i need my customer to pay the full price now, and be charge of the remaining in the next upcoming invoice

#

You see ?

carmine void
#

so basically pay 10€ now and 9.84€ next invoice?

quiet wing
#

Exactly !

#

(And for the next next invoice, all would be reinitialized to 10€)

carmine void
#

I'm trying to see whether it's possible to do it with the Subscription Schedule

quiet wing
#

Ok thank you

carmine void
#

it's the same behavior with Subscription Schedule

#

I really don't see a way of achieveing this, unless you want to charge the 10-9.84 as an add_invoice_item on the subscription

#

and add that as a Customer Credit Balance

#

so it would be deducted from the next invoice

quiet wing
#

😟

#

Unfortunately, we can't overcharge our customers

carmine void
#

it's not overcharging

#

you can call it upfront payment or something like that

#

so basically you prorate it will get you an amount of 9.84

#

then you add a one-time fee called something like upfront prorated payment having an amount of 0.16

#

then you add a Customer Credit Balance of 0.16 to the customer

#

which will be deducted from the next invoice 10 - 0.16 so your customer is paying 9.84 in the next invoice

jagged shuttleBOT
quiet wing
#

I'm trying to understand

#

But with this method, i still have the same problem of not being able to make a 10€ payment now, have i ?

carmine void
#

you will be able to

#

because you will have the prorated value of 9.84 plus a one time fee of 0.16

#

making it a total of 10

quiet wing
#

Ah yes, sorry ! So, by using proration_behavior: 'always_invoice'. and adding 0.16 as a one-time fee

#

I see

carmine void
#

yes exactly

quiet wing
#

Interesting workaround, thank you !

carmine void
#

but don't forget to add the Customer Credit Balance

#

this way the Customer will have 0.16 in their credit balance, ready to be used in the next invoice

quiet wing
#

Could i simply use invoiceItems.create to attach a 0.16€ invoice to my customer, that will be paid in the same time of the subscription item when i will make the subscriptions.update ?

#

This way, my customer would have a unique invoice, with 2 lines : 9.84€ + 0.16€

crude basin
quiet wing
#

Indeed. So you confirm that @carmine void suggestion or mine (by using add_invoice_items) would do the same thing ?

crude basin
#

Yep, just one less API call

quiet wing
#

Ok