#adrift
1 messages · Page 1 of 1 (latest)
Hi, taking a look here
I'm unsure how the Dashboard works elated to this question. However, I'm happy to share how you'd achieve this via the API. You can retrieve the Checkout Sessions line items: https://stripe.com/docs/api/checkout/sessions/line_items.
Basically the step I'm stuck on is getting to this step of fetching a given Checkout Session's line items for that specific customer. So from a customer ID, how would I get Checkout Sessions for that given customer?
Not sure if there is a way to get all successful Checkout Sessions for a given customer ID or something like that
I only mention the Dashboard because there, it is pretty easy to click into a customer and see that customer's Payments and from there, look at each Payment's Products
You'd need to make another call to list the Checkout Session made on the customer, https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-customer. Now, you'll have the Checkout session ids to make the retrieve line items request