#gordysc
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Unfortunately, I don't think there's a way to do that.
I can add metadata to the product_data inside price_data, but that doesn't get returned when retrieving line items for a session
I don't know if expanding gets too deep here.Have you tried expanding properties?
I have not, I'll give that a whirl ๐
Doesn't look like the line list items API supports expanding?
Line items on session object are expandable properties
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
Ah, so you're doing it off the session, gotcha
yup, ideally the path would be something like
line_items.data.price.product
However, I feel like the expansion is going to complain about the nesting being too deep
Oh nice! Looks like we barely got by that 4 level limitation. This works, thanks!