#shivam-singla_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/1407631122736615515
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
are you talking about this Invoice? https://dashboard.stripe.com/acct_1Jzw0GI5vSu94Gk8/invoices/in_1Rxd19I5vSu94Gk8GMlVU5Sg
yes @primal epoch
having a look
the subscription ended on 2025-08-18 at 23:59:59 UTC. and the latest invoice was created on 2025-08-19 at 00:03 UTC.
so it was created about 3 minutes after the end of the Subscription.
a delay of a couple minutes can happen
But why was an invoice created, subscription has already ended right
Hey sorry for the delay here. We took a look and the invoice was generated to reflect the one-time invoice item you added in this request: https://dashboard.stripe.com/logs/req_QJEZP3GsY6A835
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Because that request was made mid-cycle and did not generate a new invoice, we invoiced for the one-time item at the end of the period (which just so happened to be when it was cancelled)
Let me check this and come back.
what would u suggest if:
- Going forward if we want to charge a one time renewal fee and then a monthly subscription fee, if the subscription is renewed.
- on cancellation, this renewal fee should not be invoiced.
You'd need to update the schedule before the cancellation to remove the item (unset add_invoice_items): https://docs.stripe.com/api/subscription_schedules/update?api-version=2025-07-30.basil#update_subscription_schedule-phases-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks, this helps!