#zlf_api
1 messages · Page 1 of 1 (latest)
👋 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/1349267069773942797
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Looking into your query.
Do you have the subscription ID of the subscription you updated?
Yes, but for the test environment
That's fine. Can I get the ID?
sub_1QzY6aHiYvn8ZIkem42CBDkn
Looking at your subscription: https://dashboard.stripe.com/test/subscriptions/sub_1QzY6aHiYvn8ZIkem42CBDkn → Under Upcoming invoice you can see there is a proration of the newly added item:
Mar 12 - Apr 6, 2025
Remaining time on Deluxe after 12 Mar 2025 $24.15
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This will be charged in the future invoice on 6 Apr.
Based on the current business, I want to use the update feature of the subscription to add, delete, and modify products within a subscription. However, I am unsure about the potential outcomes after performing these actions, for example:
- Modification: If I change a product in the subscription from 10$ to 30$, will the user be charged 30 yuan during the next renewal?
- Addition: If there is originally a 10$ product and I add a 30$ product, will the user be charged 10 + 30 = 40$ during the next renewal?
- Addition with Monthly Subscription: Suppose the subscription cycle is monthly. On the 1st, I create a subscription that includes a 10$ product. Now it’s the 10th, and I add a 30$ product. This 30$ will be charged during the next renewal on the 1st of next month. How should I account for the charge for the period from the 10th to the end of the month?
- Deletion: If a subscription contains two products, one costing 10$ and the other 30$, and I delete the 10$ product, will the charge for the next cycle only be 30$?
If you want immediate invoicing you can use: https://docs.stripe.com/api/subscriptions/update#update_subscription-proration_behavior and pass always_invoice which always invoices immediately for prorations.
Regarding the modifications, it's always best for you to test it out first because you know your business requirements. You can check in with us if someting doesn't work as expected or you want to check for a different outcome.
Can I understand it this way? For the modification of the goods in the subscription, the default payment will be deducted in the next cycle, and when it is added, the next cycle will include the amount during this period, as shown in the figure:
I am not sure what you mean by default payment. But as you can see in the screenshot, the next invoice on Apr 6 will include 3 items:
- Mar 12 - Apr 6, 2025 → Remaining time on Deluxe after 12 Mar 2025: $24.15 (Prorated amount from the time it was added till the end of the current period of the subscription)
- Apr 6 - May 6, 2025
- Deluxe: $29.90 (Full duration for a month)
- Ultimate: $19.90 (Full duration for a month)
I’ll take a look at this first.