#jovana_api

1 messages · Page 1 of 1 (latest)

deep estuaryBOT
#

đź‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1356270655972315277

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

placid oasis
#

Hi, taking look here

lilac crow
#

Hi @rancid zephyr đź‘‹ jumping in as my teammate needs to step away soon. Can you try retrieving your Checkout Session, and when doing so use expand to include total_details.breakdown.taxes, and see if that has the information you're looking for?
https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-total_details-breakdown-taxes
https://docs.stripe.com/api/expanding_objects
That's the only field I'm aware of that might have the information you're looking for, and am pretty sure it isn't included unless you use expand to include it.

rancid zephyr
#

Hello, I’ll try it right away and let you know.

#

I tried, but the taxes object in total_details.breakdown is null (it doesn’t exist).

lilac crow
#

Oh, I'm sorry, I thought you were asking about Stripe Tax. It slipped my mind that Dynamic Tax Rates are their own thing.

#

I'm looking to see if there is anything that may do what you're hoping for Dynamic Tax Rates, but am not finding a solution.

rancid zephyr
#

So, there’s no way to find out which tax rate was dynamically applied? It doesn’t have to be in the session object—could it be in the payment object or somewhere else?

lilac crow
#

One more thing to try, if this doesn't give the information you need, then I don't think the association is surfaced.

Can you retrieve the line items for your Checkout Session:
https://docs.stripe.com/api/checkout/sessions/line_items
while doing so use expand to include and expand data.taxes

Or you can retrieve the Checkout Session and use expand to include and expand line_items.data.taxes

rancid zephyr
#

I will try now

#

I tried, and there is not additional tax rate information, only tax amout

#

i need either tax rate object or id of the object

lilac crow
#

Can you paste the full contents of that taxes hash here?
Do you see the taxes.rate field within that hash being set to null?

rancid zephyr
#

I am not sure that i understand you. I tried to retrieve checkout session object with line item expanded. Do you want me to send that object?

lilac crow
#

Can you share the ID of the most recent request you made, so I can take a look at what you expanded?

rancid zephyr
#

Ok, i can see all information now. Thank you so much!