#geeky-mechanic_api
1 messages Β· Page 1 of 1 (latest)
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.
- geeky-mechanic_api, 15 hours ago, 13 messages
π 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.
I consulted these pages :
https://docs.stripe.com/refunds?dashboard-or-api=api#issuing
https://docs.stripe.com/invoicing/dashboard/credit-notes
https://docs.stripe.com/invoicing/integration/programmatic-credit-notes
https://docs.stripe.com/api/credit_notes/create#create_credit_note-invoice
Which all seem to point towards needing an invoice to use credit notes, which I do not have, because I processed a live payment
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
I'm a tad confused, what part specifically are you trying to handle when refunding payments WRT to tax?
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
OK, thanks for context. Let's see
Hey, just checking in, are you still here π
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?
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
Understood, we're confirming with the tax team
Thanks a lot, you'll notify me here when you get more info?
Yep
Sorry, difficult to grok. What does that data tell you?
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)
OK, spoke with the Stripe Tax team and there are processes in place to automate the tax shift once a Checkout payment is refunded
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
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"