#nick-yelle_customer-invoice-emails

1 messages ยท Page 1 of 1 (latest)

obsidian vaultBOT
#

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

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

brazen basin
#

HI ๐Ÿ‘‹

We don't store the results of GET requests so I can't see anything from the request you shared. Can you share an example Customer ID?

spiral valley
#

8680333443301

brazen basin
#

BUT I think what you want is actually on the related Payment Methods. Each Payment Method Object has a billing_details property and that has an email

spiral valley
#

Here is a picture of the field I want to access:

brazen basin
#

We store 1 email address on the Customer object and that is the one we use to send Invoices and receipts

#
  1. That isn't a customer ID. Customer IDs start with cus_.
  2. We don't focus on the Dashboard here. We are focused on Stripe APIs and how you can interact with them.

If you can provide a Customer ID I can check the Payment Methods that are saved to that Customer

spiral valley
#

Are the billing emails that are displayed on the Shopify dashboard available via the API?

#

this is what I am really asking.

#

If so what request do I use to get these?

brazen basin
#

I cannot say, I have no idea what powers the Shopify dashboard

spiral valley
#

Sorry *Stripe dashboard

brazen basin
#

I am asking for details to help you where Stripe stores email addresses associated with billing details

#

As I said, that is saved to Payment Method objects

spiral valley
#

Great, where can I find the customer Id that you are asking for?

#

None of the Ids that I am seeing start with cus_

#

I the customer Id that is visible on the dashboard different?

brazen basin
#

When you are looking a t a specific customer, it should be present in the URL

spiral valley
#

I think we have an integration that overwrites the standard Stripe ID when brininging in a customer from Shopify

brazen basin
#

Ah, that may make it difficult to look up. Does this Customer have a saved Payment Method?

spiral valley
#

No they do not

brazen basin
#

Oh, I was able to look up this customer

#

We only have 1 email for this Customer and it's the email stored at Customer.email property

spiral valley
#

how are those billing emails in the dashboard stored?

brazen basin
#

I cannot say

#

We don't specialize in the Dashboard here. This server is for developers coding integrations with Stripe APIs

#

So those of us who staff it from Stripe are focused on Stripe API integrations

spiral valley
#

Yes, I am trying to build an integration

#

Where can I go to find this information?

brazen basin
#

Okay so retrieve the Customer object and inspect the values

spiral valley
#

This is all I'm seeing:

brazen basin
#

Yeah, there's the email

#

That's what we have on the Customer

#

What are you expecting?

spiral valley
#

I want to get the billing emails that are listed on the dashboard

#

The customer email is not always where the invoice is sent

#

They are sent to the billing emails

brazen basin
#

I still don't know what you mean. Since you also can list Invoices by Customer in the API you can retrieve the customer_email value from the Invoice object

spiral valley
#

That is not what I am seeing on my side:

#

The invoice was sent to different emails

#

Ultimately, I want to compare our Shopify Data to our Stripe data. But i have no way of pulling the billing emails that are listed on a customer's Stripe profile. Please help me to do this.

brazen basin
#

I have told you everywhere we store the data that we have

#

Dashboard users can add additional emails be CC'd and that data is not stored on the Customer object

spiral valley
#

Do you know where it is stored?

#

And can I access it via the API?

brazen basin
#

I don't think so. We do not have a 1:1 parity between the Dashboard and API. Looking at the invoice.sent event for this Invoice, I only see the customer_email property which has the email address stored on the customer object

spiral valley
#

Ok that is what I figured. It would be great if this could be part of the API in the future.

#

Do you have any idea how I could get a list of all the billing emails listed for our customers other than the API?

brazen basin
#

Okay I can see the dashboard request that triggered sending this email

spiral valley
#

In an export, or if I call sales, etc...?

brazen basin
#

It has one more email address in the CC field

#

But the reason we don't store that on the Customer is that we have no idea if the emails that users add in the CC field are at all related to that customer.

#

CC'd email addresses, in most cases, are for separate people to be kept informed.

spiral valley
#

Ok, where are they stored?

#

Can I only access that information after the invoice has been sent?...

brazen basin
#

That is the only time this data is entered.

#

AFAIK the STripe API does not store/retrieve this information

obsidian vaultBOT