#richie138-automatically-invoice

1 messages · Page 1 of 1 (latest)

sterile mural
#

Unfortunately there is not a bulk update way to do that. You will have to do it per-account

oak violet
#

What do you mean?

#

I want it to be per-account, I just want the receipts to go automatically so I don't have to manually send them each month

sterile mural
#

Apologies there is some confusion here

#

So this is a setting on a subscription itself

#

Accounts themselves aren't specifically enabled/disabled for it

oak violet
#

Where is the setting?

sterile mural
#

Apologies meant to link it

#

You want charge_automatically

oak violet
#

It does charge automatically

#

I want it to send the receipt automatically

#

But only to certain customers or subscriptions

sterile mural
#

Oh sorry that is send_invoice

#

do you currntly have it set to that and the emails are not being sent?

oak violet
#

Is that a property of the subscription object?

#

I don't see it?

sterile mural
#

send_invoice is a value that collection_method can have

oak violet
#

Oh

#

Ok I think i should re-describe my problem

sterile mural
#

Yes apologies, it seems like we aren't quite on the same page

oak violet
#

I have 1000+ subscribers, they all are charged automatically every month, this is a requirement

#

Right now no one receives a receipt

#

I want the receipt to be automatically sent after successful automatic charge ONLY to certain customers

#

Right now I see there is a setting I can enable in dashboard to automatically send receipts to ALL customers - I do not want that, I only want it for certain customers or subscriptions

sterile mural
#

Ah thank you. That was very helpful. Looking in to this, I am only aware of the account-wide setting myself

oak violet
#

Yes, I think that is probably the case, although it would be helpful to many I'm sure if it could be configured more granularly

#

So, how would you suggest I go about it programatically? Or does some code exist that can help?

#

I see there are webhooks for successful payments, I thought about setting metadata on the customer or subscription object, but then I'd have to go back and query stripe for the customer or subscription. Updating the paymentIntent with an email triggers the receipt to be sent. So it's possible to build but seems inefficient this way, any suggetions?

sterile mural
#

Unfortunately I'm not seeing a more granular setting or built in way to send Stripe emails like this.

#

That webhook solution and sending your own receipts can definitely work well

#

If you don't want to query Stripe so much you can always record customer IDs/emails in your own DB

#

But yes otherwise metadata would probably be the best way to store that on the Stripe side

oak violet
#

Are you aware of any code or places to look that someone would have already done this?

sterile mural
#

Unfortunately not. We have demos and whatnot on our webhooks but not this specific usecase

oak violet
#

Ok thanks