#Mephist0

1 messages · Page 1 of 1 (latest)

long mothBOT
drifting idol
#

Sure thing. What's your question?

fallen stream
#

Hello, just to put you a bit on context, we have a NodeJS app that we are using a subscription product created in the dashboard of s

#

Stripe

#

The code looks like this

#

While we managed to add a description that appears in the Stripe dashboard when going to that subscription generated

#

The invoice doesn't show the description at all

#

The only thing that is shown, is the product title that we created in the Stripe dashboard (Which never changes) and nothing else

#

We would need a way to add a description in the invoice but so far I haven't figured any other than creating products for each time a new subscription is created, which will end up in having many subscription products.

#

Is there a way to add a description to be shown in the invoice?

drifting idol
#

So just to clarify, you want a custom description on each invoice a subscription generates? Will every invoice on the subscription need to have the same description?

fallen stream
#

Yes, exactly that, I need a custom description to be shown in each invoice, we thought the description parameter will do the trick, yet it only adds a description that is shown in the Subscription at the Dashboard.

#

Not all the subscriptions have the same description, it must be dynamic.

#

Yet the product we created in the dashboard to use for the subscription called "Subscription", shows only that fixed in each invoice.

drifting idol
#

Got it. So there's not a super easy way to do this, but you could achieve this by listening to invoice.created webhook events. Subscription invoices remain in a draft state for 1 hour after they're created. During this window, you can edit them. So, upon receiving an invoice.created event, you could make an API call to update the invoice and change the description: https://stripe.com/docs/api/invoices/update#update_invoice-description

fallen stream
#

Ok, I will see what we can do with that. Thank you very much!!!

drifting idol
#

No problem!