#hamid_customer-multiple-emails
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/1409574354320363551
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
The request you shared is a GET request. We can't see the payloads for GET requests because we don't store them
can I ask question again here?
What is your question?
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
The Customer only accepts a single Email address
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.
I'm not going to debug ChatGPT answers. Look at the API docs for the Customer https://docs.stripe.com/api/customers/create?api-version=2025-07-30.preview&rds=1#create_customer-invoice_settings and tell me if there's an invoice_settings.email property
okie
can't we use this?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That is a preview API version. Those fields don't exist in the current GA version
so, no possibility, okie, thanks for the help ๐
Happy to shed what ๐ก I can ๐