#geeky-mechanic_api

1 messages Β· Page 1 of 1 (latest)

surreal fernBOT
empty falconBOT
#

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.

surreal fernBOT
#

πŸ‘‹ 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/1240605144027103252

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

glacial yoke
#

This is the checkout session ID : cs_test_b1mHXTOS7tQD9h0yZQZclG61KXdT87UenREFhc1IxadVqqDmYD9EH7Z7IG
The payment intent id associated : pi_3PGlrSAfoReX6Tch199Ev7lq
The charge id that was partially refunded : ch_3PGlrSAfoReX6Tch1MfLw0qF
The refund id : re_3PGlrSAfoReX6Tch1KccOSP8

cunning sonnet
#

I'm a tad confused, what part specifically are you trying to handle when refunding payments WRT to tax?

glacial yoke
#

I have made a refund to the customers payment method (partial refund in this case), and in the issuing refunds link I sent, its states :
"If you’re using Stripe Tax and have automatic_tax = enabled for certain transactions, you must use credit notes to accurately shift the tax liability associated with a refund or PaymentIntent cancellation. "

#

Now this is what I'm trying to do

#

Whats confusing me is how to proceed to do that with credit notes, as to be created they require an invoice id (as per the credit-notes api docs) which I do not have

cunning sonnet
#

OK, thanks for context. Let's see

glacial yoke
#

Hey, just checking in, are you still here πŸ‘€

cunning sonnet
#

I am, sorry was speaking with a colleague regarding this. Our understanding is that Checkout payments automatically handle the tax liability shift on refund. Is that not true in your experience?

glacial yoke
#

No problem πŸ™‚

#

I'm still in dev phase, and only run in test mode for the moment, which doesn't enable me to view any tax data through the dashboard so I wouldn't be able to confirm that

cunning sonnet
#

Understood, we're confirming with the tax team

glacial yoke
#

Thanks a lot, you'll notify me here when you get more info?

cunning sonnet
#

Yep

glacial yoke
#

Okay, seems like I still managed to grab some data in CSV format

cunning sonnet
#

Sorry, difficult to grok. What does that data tell you?

glacial yoke
#

Well this is some older data from tests so I don't remember exactly the transactions, but as you can see, the last 4 transactions were of type "refund" with a negative "tax_amount"

#

Seems related to this : pi_3PFgabAfoReX6Tch0Z5ENx4e

#

Yeah rows 2 through 9 (inclusive are all related, the more recent ones representing the refund)

cunning sonnet
#

OK, spoke with the Stripe Tax team and there are processes in place to automate the tax shift once a Checkout payment is refunded

empty falconBOT
glacial yoke
#

Okay, could you just confirm to me how that works? I made a partial refund test yesterday for 2 line_items of 100$ each. Here the sales tax rate is 14.975%, so my logic was to refund the full 230$ (rounded for understanding) to the customer. Will the Tax process understand it was a 200$ sale with 30$ tax? Or will it try to calculate the tax rate for the 230$ and deduce 34.45$ (14.975% of 230$) that from my tax balance instead of the simple 30$?

#

I'm not sure how clear my question is, I can try to clarify if needed

cinder plover
#

apparently we " will understand that it was a full refund (including the tax amount) and adjust only the original tax amount.You can validate your tax liability in your itemized tax export that you can download in the Dashboard"