#footballhero - Billing Email

1 messages ยท Page 1 of 1 (latest)

loud elbow
ionic flax
#

yes, the screenshot is taken from updating a customer object from the dashboard

loud elbow
ionic flax
#

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

loud elbow
#

Is this in the context of a specific payment? Like an Invoice?

ionic flax
#

The billing email is simply set through the dashboard by editing the details of a customer

loud elbow
#

And you're not seeing that same email address on the email property of the Customer object in the API?

ionic flax
#

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

loud elbow
#

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.

ionic flax
#

so there is no way to change it through API?

loud elbow
#

No, there is not.

ionic flax
#

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.

loud elbow
#

How is the email being set initially?

ionic flax
#

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

loud elbow
ionic flax
#

yes, correct

loud elbow
#

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...

ionic flax
#

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..

loud elbow
#

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.

ionic flax
#

yes.. that's correct.. I could not find any way (other than the dashboard) to update the billing email

loud elbow
#

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. ๐Ÿ™‚

ionic flax
#

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

loud elbow
#

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.

ionic flax
#

Unfortunately, it does not work for us. We would like the customer email and the billing email to be different for some customers' cases

loud elbow
fringe stratus
#

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?

loud elbow
#

No, here is fine, but same answer as above; you can't change it via the API.

fringe stratus
#

Oof - Ok, thank you for clarifying.

loud elbow
#

No problem!

fringe stratus
#

Aside from the metadata are there any other work-arounds we can consider? or is that our best bet?

loud elbow
#

What's your use case exactly?

fringe stratus
#

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.

loud elbow
#

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.

fringe stratus
#

Thanks - I understand completely. I will communicate this back to the team and if I think of anything clever, I'll post an update.

ionic flax
#

thanks

loud elbow
#

Sorry I couldn't be of more help! ๐Ÿ˜…

fringe stratus
#

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.