#hamidm-upcoming-tax
1 messages ยท Page 1 of 1 (latest)
Hello! Proration and tax can be tricky to grasp. Do you have a good summary of the problem with exact code and object ids we can look at?
This is one request that we are getting in response from upcoming invoice endpoint
this is the request ID for that response req_SR88mQ8sD4klu2
catching up, give me a sec
sorry for delay, digging now but can you share an example for what you expect, vs what you receive, with explicit details? that would help me understand with clear examples, thanks!
Let's say the initial subscription has been created with quantity = 15, price per quantity is $5 and the subscription in created a week ago, and the tax for quantity 15 will be $3.60 which is $0.24 tax per quantity. Now, when we want to purchase new seats (increment quantity for 5) so in total will be quantity = 20, when getting the upcoming invoice with proration the prorated amount per quantity will be $4.85, now for this prorated amount we need to get the exact tax amount but the response from upcoming invoice endpoint is returning a totally different amount. How can we get the correct tax amount for the prorated amount?
for the example you linked above, what are you expecting for total tax amount
based on the prorated amount per quantity $4.85 the tax amount per quantity should be around $0.22 so for the incremental quantity of 5 (purchased seats) total tax for them should be $1.14, but on the "tax" attribute from the response we are getting 399 (which is $3.99)
yes 580, sorry
๐ sorry the channel is quite busy. I'll look in a bit but it will take a while
no problem, take your time
okay sorry things calmed down, looking now