#pegasus009
1 messages · Page 1 of 1 (latest)
Hi there, are these pending invoice items to be included in the upcoming invoice of the cancelled subscription?
@hasty flame let's chat here
Yes
Did you try passing invoice_now when canceling? https://stripe.com/docs/api/subscriptions/cancel#cancel_subscription-invoice_now
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay, First let me try this one
np
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Can we do the same thing at the end of subscription period
do you mean cancel at subscription end period?
yes and also create the invoice of pending invoice iteams
ok
In case any user changes his/her subscription between the subscription period than can we shift the pending invoice items of cancelled invoice to new invoice ?
Can you provide examples?
For example
link: https://dashboard.stripe.com/test/subscriptions/sub_1Mdti5HXEKM6qqKNGDEssLsL
this user has current subscription of €10.00 a month and usage of €0.02 which will be charged in next invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
But in between the period user changes his/her subscription to €200.00 a year then how i can add this €0.02 usage to the invoice charging €200.00 in total €200.02
You'd pass proration_behavior: 'always_invoice' when doing the update: https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok