#nstripe0_docs
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/1240404435830702163
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nstripe0_best-practices, 1 day ago, 15 messages
- nstripe0_sub-schedules-upgrade, 1 day ago, 5 messages
- nstripe0_api, 5 days ago, 15 messages
Hello
Hi bismarck
Hmm so you basically want to create another charge to mirror a previous Invoice?
Do you want this to actually be another Invoice, or you just care about the payment?
It would be good to have another invoice if possible, but looking to see what options we have available.
Gotcha in that case I'd likely just create a one-off Invoice using https://docs.stripe.com/api/invoices/create and create Invoice Items (https://docs.stripe.com/api/invoiceitems/create) to mirror the items from the previous Invoice that you want to replicate. Then you pay that Invoice using the Customer's saved PaymentMethod
Is the creation of the one-off invoice going to be something we need to do manually to recreate the subscription line items, etc?
The use case we're dealing with is that customers sometimes (surprisingly often) request that we bill them on a different payment method AFTER we have already processed the payment on the old payment method.
So we issue a refund on the old invoice transaction... and want to now bill them on the new payment method.
It would be great if we can associate that back to the subscription invoice, but a duplicate invoice with all the information would be good also.
Hi there ๐ taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
I think the right workflow here is to refund the paid Invoice, update the default payment method for the customer, create an identical one-off invoice and attach that to the Subscription, pay it, then let the usual billing cycle run its course
Is the creation of the identical one-off invoice something that we would need to do manually?
You could do it programmatically too
Not sure how your process is set up (e.g. if there's some human intervention in the process), but technically it could be made self-serve
Also, when you say "attach that to the Subscription", is that an API operation? I didn't see that one, could you point me to that?
Ah, yeah. More specifically I just meant "include the Subscription ID when creating the Invoice so that it gets created under the existing Subscription"
Oh, I see that in the API (it doesn't seem to appear in the dashboard).
The API docs (https://docs.stripe.com/api/invoices/create#create_invoice-subscription) mention:
If set, the created invoice will only include pending invoice items for that subscription.
What does "pending invoice items" mean for the subscription?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Pending just means that the item will show up on the next Invoice: https://docs.stripe.com/billing/invoices/subscription#previewing
Oh, ok. Cool, thanks for the suggestions, I'll give this approach a try.