#val_customer-guest

1 messages ¡ Page 1 of 1 (latest)

unborn skiffBOT
#

👋 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. Thank you for your patience!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.

🔗 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/1213240936902168657

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

elfin flowerBOT
lofty tree
#

Yeah unfortunately you can't retrieve guest customers via the api since they're not real customers

old pelican
#

val_customer-guest

lofty tree
#

It's just a way to group payments in the dashboard

old pelican
plush kernel
#

Sure, I do understand. But one thing I was thinking about was since it groups payments by email, phone number, or cc, is there an API that contains the guest payment (/v1/checkout/sessions maybe) That I could then cross reference with a customer id or customer email, phone number or cc, to link the two together to get that guest checkout session as well?

old pelican
#

Unfortunately no there's nothing like this

plush kernel
#

I see, understood.

#

One more quick question related to API's for a customer. In my Stripe instance for a customer I see a Spend column (Table has "Customer", "Email", "Spend", "Last Charge", and "Created"). I am getting customers via /v1/customers but I do not see a property for the spend column. Is this accesible via API?

old pelican
#

No that is a Dashboard only feature.

#

You can calculate this yourself in the API using the List Charges API https://docs.stripe.com/api/charges/list and passing customer: 'cus_123' and summing all the successful ones, but we don't have an API for the pre-calculated spend