#hamid_customer-multiple-emails

1 messages ยท Page 1 of 1 (latest)

opaque pineBOT
#

๐Ÿ‘‹ 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/1409574354320363551

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

jaunty skiff
#

The request you shared is a GET request. We can't see the payloads for GET requests because we don't store them

agile junco
#

can I ask question again here?

jaunty skiff
#

What is your question?

agile junco
#

Lets say i have stripe customer, i want to add multiple emails in it via api, so that invoice would go out to all those emails

jaunty skiff
#

The Customer only accepts a single Email address

agile junco
#

so can't add multiple emails in even invoice_settings?

#

ChatGPT said:

Stripe supports this by comma-separating the email addresses inside invoice_settings[email].

Example: Creating a Customer with Multiple Invoice Emails
customer = Stripe::Customer.create({
name: "Acme Logistics",
email: "main@acme.com", # optional primary email
invoice_settings: {
email: "billing@acme.com, ap@acme.com"
}
})

Example: Updating an Existing Customer
Stripe::Customer.update(
"cus_123456789", # Replace with real Stripe customer ID
{
invoice_settings: {
email: "billing@acme.com, ap@acme.com"
}
}
)

When Stripe Sends Invoices

Any invoices generated for this customer (manual or automated) will be sent to all emails listed.

without changing email linked to Strpe account.

jaunty skiff
agile junco
#

okie

jaunty skiff
#

That is a preview API version. Those fields don't exist in the current GA version

agile junco
#

so, no possibility, okie, thanks for the help ๐Ÿ™‚

jaunty skiff
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚