#tony-mf-python
1 messages · Page 1 of 1 (latest)
I get this data back:
"data": [],
"has_more": false,
"object": "list",
"url": "/v1/checkout/sessions"
}```
when trying to retrieve a Checkout Session for a real PaymentIntent ID
It works great on my test API key
Hmm can you provide a request ID for that retrieval?
Thanks, give me a moment.
i'm realizing there may not have been a Checkout Session for that PaymentIntent
Yep
You don't pass a PaymentIntent parameter when retrieving a Checkout Session
You want https://stripe.com/docs/api/payment_intents/retrieve for that
I'm basically trying to go through all Checkout Sessions and glean data from those with a specific item name
In that case you likely want to use https://stripe.com/docs/api/checkout/sessions/list
And you can expand objects using https://stripe.com/docs/api/expanding_objects
When you list
Thank you, I'm going to dig in more. I think it must have been working on my test API key because there were fewer PaymentIntents to go through.