#LUKE
1 messages · Page 1 of 1 (latest)
Hi there
hi
So this won't be present in the event itself since line_items are not returned by default. However, if you re-retrieve the Checkout Session and expand line_items then you should see the percentage in line_items.data.taxes.rate.percentage: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-taxes-rate-percentage
I'm not sure how I retrieve this exactly
Ah sorry, you use: https://stripe.com/docs/api/checkout/sessions/retrieve
but when retrieving the session information I get almost the same data as in the webhook
there are no line items returned
The line items purchased by the customer. This field is not included by default. To include it in the response, expand the line_items field.
how do I expand it
@violet copper sorry for the tag
We show how to expand here: https://stripe.com/docs/api/expanding_objects
awesome, thank you so much!!
Actually even better take a look at: https://stripe.com/docs/expand
Thank you a lot for your help buddy, you can close this thread 🙂