#logan100
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you provide an example event ID so we can talk about a concrete example? They will start with evt_
Also the line_items property is expandable in the Checkout Sessionl https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
This means it is not included by default from the API but you can request the data by using the expand parameter when you retrieve the Checkout Session.
https://stripe.com/docs/expand
It is not possible to expand webhook event payloads by default so you will need to make the API call to retrieve the Session object after you receive the webhook if you want to know the line_items
evt_3Nz8utKpOiJyve6n1gVYJeZ2
Sure thing, here’s an example. Just took me a second to find on mobile.
I’m now seeing that there is a charges field directly on the intent, however I’m not seeing a way to get the payment ID.
I do know about expanding the sessions, and that’s been super handy but I’m not sure how I could get this to work from a webhook event
Mostly what I’m looking for is to find the Price ID of the items that were purchased in this payment intent event
Oh sorry I missed your last part about making the API call after the webhook. I can definitely try that
Specifically you will want to read the doc about Expanding Responses
And then take a look at the Object reference in the API ref doc https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
Any property that has the work Expandable next to it isn't included by default but can be expanded to include the data
Expanding the line_items property will get you the Price IDs you are looking for