#gordysc

1 messages ยท Page 1 of 1 (latest)

river impBOT
orchid olive
#

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?

restive basalt
#

I have not, I'll give that a whirl ๐Ÿ‘

#

Doesn't look like the line list items API supports expanding?

orchid olive
restive basalt
#

Ah, so you're doing it off the session, gotcha

orchid olive
#

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

restive basalt
#

Oh nice! Looks like we barely got by that 4 level limitation. This works, thanks!