#stylish_kiwi_28525
1 messages · Page 1 of 1 (latest)
Hello! Yeah, it would be easiest if you give me an example ID you want to start from and I can show you how to get to the line items starting from there.
absolutely. We're only using Stripe Checkout in a test environment if that is ok
Payment Intents are low-level payment objects that only know about the total amount. To get the line items you need to get the Checkout Session which created this Payment Intent. You can find it by listing Checkout Sessions by Payment Intent: https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent
awesome checking
is it possible to do the reverse of this: https://stripe.com/docs/api/tax/transactions/line_items
Get the tax transaction id related to a line item?
Sorry, not sure I understand. The API you linked to is for calculating tax in custom flows, it's not for use with Checkout.
ah yeah let me provide more context!
We aren't having any issues with Stripe Checkout or tax calculations, so this is more of a reporting question.
We will need the tax breakdown for line items in a report - this is available in the Stripe UI, but references all tax transactions by a line_item_id (li_xxxxx...)
We were hoping to use the Stripe API or Stripe Reporting API to link those transactions to actual payments somehow
Can you give me one of the actual li_ IDs in question?