#footballhero - Billing Email
1 messages ยท Page 1 of 1 (latest)
Hello! I'm not sure exactly where that screenshot is from, but I'm thinking that might be the email set on the Customer object: https://stripe.com/docs/api/customers/update#update_customer-email
yes, the screenshot is taken from updating a customer object from the dashboard
It may be the email on a specific Payment Method as well: https://stripe.com/docs/api/payment_methods/update#update_payment_method-billing_details-email
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it does not seem that the Customer API exposing the billing email for fetching or updating.
I see.. let me do a quick check on payment_methods
the billing emails in the Payment method is still the account email itself.. not the billing email I set through the dashboard
Is this in the context of a specific payment? Like an Invoice?
The billing email is simply set through the dashboard by editing the details of a customer
And you're not seeing that same email address on the email property of the Customer object in the API?
the email is the same as the one of the customer .. not the billing one. I don't see the billing details in the Customer object through the API
Let me pull up that Customer, one sec...
Ah, looks like the Dashboard is updating special email values that are Dashboard-only. You're correct, that email is not exposed in the API.
so there is no way to change it through API?
No, there is not.
What I learned from our Sales is that it is quite common that our customer wants the billing/invoices to be sent to their controller directly. So it will be super useful that this can be achieved programmatically. Setting it through the dashboard manually is not scalable.
How is the email being set initially?
through payment link
and this email is used as the user id for logging on to our platform.. so ideally, this email matches the user id
Through a Stripe Payment Link? As in one of these? https://stripe.com/docs/payments/payment-links
yes, correct
That's surprising to me; I didn't think anything but the Dashboard could alter that particular email address. Let me look at the history for this Customer...
Okay, looks like that email address was not set by the Payment Link. It was set here, by a Dashboard request: https://dashboard.stripe.com/test/logs/req_YdIpM7qfdmKb4C
The Payment Link set the Customer's email here: https://dashboard.stripe.com/test/logs/req_IxNFVE7eIxvAIj
just the billing email we would like to update programatically.. but if the billing email can be set in the payment link workflow, that's good as well..
As long as you don't modify the email via the Dashboard you shouldn't have a problem; the email_to property is not populated by default and the Customer's email will be used.
yes.. that's correct.. I could not find any way (other than the dashboard) to update the billing email
Sorry, I think I may be misunderstanding something. Does the information above resolve your issue, or is there still an outstanding question/problem? I want to make sure I unblock you, but I think I may have gotten turned around. ๐
I am looking for programmatic ways to add/update billing email for a customer
so based on our conversation, it is not possible
but it would be super useful for us in terms of our integration with Stripe
The billing email for a Customer defaults to the email on the Customer object in the API unless there's a specific billing email provided via the Dashboard.
You can use the email on the Customer for your purposes as long as it is not changed via the Dashboard.
Unfortunately, it does not work for us. We would like the customer email and the billing email to be different for some customers' cases
Ah, I see. That's not something we support via the API today. A workaround would be to use metadata on the Customer to store an alternative email and use that based on your own logic: https://stripe.com/docs/api/customers/update#update_customer-metadata
Oh man - I came here to ask a very similar question as you folks are discussing: Our issue is setting programmatically setting the Emails to CC field on the Customer. It's possible in the UI here:
Should I ask in a new thread?
No, here is fine, but same answer as above; you can't change it via the API.
Oof - Ok, thank you for clarifying.
No problem!
Aside from the metadata are there any other work-arounds we can consider? or is that our best bet?
What's your use case exactly?
I'm importing a bunch of customer data into Stripe. Our finance team has prepared a spreadsheet with our customer data (pulled from QuickBooks) This spreadsheet includes several different "Billing Emails" for customers. Sometimes our customers require that invoices are sent to multiple internal teams.
Our finance folks saw the CC Emails in the UI and planned to have the import set those programmatically.
Gotcha. Unfortunately that's not possible with the API. We only support a single email address on the Customer in the API. I bumped this feature request internally as a result of the previous conversation in this thread, but there's no timeline or anything for this changing in the future.
The best workaround I can think of is to use metadata and your own email logic.
Thanks - I understand completely. I will communicate this back to the team and if I think of anything clever, I'll post an update.
thanks
Sorry I couldn't be of more help! ๐
No worries - getting a solid answer is helpful even if the specific feature isn't available. I looked through docs and came up empty. Even if you aren't able to prioritize exposing this via the API - it may be worthwhile to clarify this in the API docs.
Also - there's this SO where someone's having a very similar issue: https://stackoverflow.com/questions/71319021/stripe-one-customer-need-to-send-invoice-to-multiple-email-addresses