#logan100

1 messages · Page 1 of 1 (latest)

tight roverBOT
slender plover
#

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

sinful orbit
#

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

slender plover
#

Specifically you will want to read the doc about Expanding Responses

#

Expanding the line_items property will get you the Price IDs you are looking for

sinful orbit
#

Okay thank you

#

I’ll try doing that