#ali_api

1 messages · Page 1 of 1 (latest)

lone flickerBOT
#

👋 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/1265381712330883258

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

stray forum
#

So proration is generated

daring valve
#

OK thanks and Is it possible to disable proration when cancelling a subscription if the cancellation happens after the end of the current billing period? I've set proration_behavior to none, but it doesn't seem to prevent proration in this case.

Any advice on how to handle this situation would be greatly appreciated!

stray forum
#

I've set proration_behavior to none, but it doesn't seem to prevent proration in this case.
Can you share the request id?

daring valve
#

yes : req_tmFCqozr6TC7Jg

stray forum
#

You passed always invoice there too...

daring valve
#

I’ve tried setting the proration_behavior to none when updating a subscription, but proration is still being applied.

I came across this in the Stripe documentation: “If you set a custom cancellation date, you cannot issue a refund. A proration credit will be generated. To prevent generating a proration credit, the custom cancellation date must fall within the current billing period and proration_behavior must be set to none.”

Given this, is there any way to set a custom cancellation date for a subscription without generating a proration, even if the date falls outside of the current billing period?

stray forum
#

Please share an example of this then. The one above you explicitly passed always_invoice not none.

Given this, is there any way to set a custom cancellation date for a subscription without generating a proration, even if the date falls outside of the current billing period?
If it's outside of the current billing period, then I don't believe so.

daring valve
#

Yes sorry here is the request id : req_8sx4L4a8Aez4hj

stray forum
#

Yeah and looks like the cancel at date is outside the current billing period

lone flickerBOT
daring valve
#

Yes, so if I want the cancellation date to be outside the current billing period, I should try to handle it with the credit balance ?

worldly tundra
#

(I'm stepping in@daring valve) not sure I understand, can you explain your last question more?

daring valve
# worldly tundra (I'm stepping in<@474983150716583938>) not sure I understand, can you explain y...

Hello,

I'm encountering an issue with Stripe's proration behavior. I need to cancel a subscription and set a custom cancellation date, but I want to avoid prorated charges for the period outside the current billing cycle. I’ve tried setting proration_behavior to none, but I understand from the documentation that this only prevents prorations if the cancellation date is within the current billing period.

Given this, if I want to set a cancellation date outside the current billing period, is using the customer credit balance the appropriate solution? How should I handle this scenario effectively?

worldly tundra
#

can you flesh out an example with example dates and amounts?

e.g. "Jan 1st $30 sub starts, canceled on Jan 3rd, expected balance $X, etc"

daring valve
#

The subscription costs €60 and begins on July 23rd, with the next billing date on August 23rd.

#

I cancel the subscription effective July 25th, and the invoice for August 23rd is now €3.20.

#

I don't know if it's really clear

worldly tundra
#

a little better but not super clear

#

like is this with no proration? with proration? and what is your desired ideal outcome that you want, that you aren't getting here

#

that will help me understand your problem better

daring valve
#

In this scenario, the subscription costs €60 and begins on July 23rd, with the next billing date on August 23rd. I cancel the subscription effective July 25th, and the invoice for August 23rd is now €2.38. This happens with proration. My desired outcome is that the invoice remains at €60 without applying any prorated adjustments.

worldly tundra
#

and to ask an obvious quesiton - you want the Subscription to end, right? and not have any Aug 23rd Invoice, correct? Simply canceled as of Jul 25th?

daring valve
worldly tundra
#

but isn't the Subscription canceled Jul 25th? why would it continue? (or am I missing something straightforward?)

daring valve
#

I want to cancel the subscription on July 25th, but still have the invoice on August 23rd reflect the full €60, as if there was no proration or partial refund. The goal is to stop the service on July 25th but bill the full amount for the upcoming cycle on August 23rd.

worldly tundra
#

ah wait, are you doing a pending cancelation and then reviving the Subscription?

daring valve
#

No, I'm not doing a pending cancellation and then reviving the subscription. I want to set the cancellation date to July 25th but still have the invoice on August 23rd charge the full €60 without any prorations or partial refunds.

lone flickerBOT
worldly tundra
#

but that isn't possible which is why I'm so confused.

If you cancel a Subscription, it cancels, no more future Invoices. How do you expect a Aug 23rd Invoice if the entire Subscription is canceled

daring valve
#

I understand your confusion. I'm trying to build a subscription cancellation system with a one-month notice period. For example, if a user submits a cancellation request on July 10th and their next billing date is August 1st, the cancellation should take effect on August 10th. However, I want the payment for the August 1st billing to still be the full €60 without any prorations.

solemn kite
#

👋 stepping in for my teammate

#

You're right, you won't be able to use cancel_at with a time stamp in the future as that will cause prorations for the period between August 1 and August 10 (vs. charge them a full €60)