#supreeth_20471
1 messages ยท Page 1 of 1 (latest)
Hello! Can you share an example request ID with me for your retrieval request?
sure ! also is there a better way to get the estimate for the subscription
req_PHdQ10m6ybxyNq
the information on the right modal
๐ Give me a few minutes to take a look
no problem ! also is this the best way to get estimated payments? is there a different api thats a better option to get the estimates?
Yes, this API (the retrieve upcoming Invoice API) is what I'd recommend for this
gotcha ! but for some reason the taxes dont seem to be working ๐ค .
I belive what you're missing is setting automatic_tax.enabled: true in your request (https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-automatic_tax)
so when i do that, the response object has an attribute
but im setting the state to 'AZ'. is there a different way to set the location?
Let me double check - I believe you're setting it correctly, but it may be that we need more location information
maybe the country?
setting the postal code worked
๐
thanks for the help ๐ seems like you have a busy busy day ๐ ๐ฅณ
awesome! glad you got it working ๐
hey Again! im still working on this and the api did return a tax object as
{
amount: 4316,
inclusive: true,
tax_rate: 'txr_1O5C6JCxlassJY00V6NbZTdj',
taxability_reason: 'standard_rated',
taxable_amount: 53284
}
],
however when i try to retrive the tax it says no such taxID
here's the req id - req_IhiAOOHCakdGJ7
hey there, let me take a look at that request
Where are you seeing that result/data displayed?
thats the response im getting for the
req_qkSX8USFmKlkMA
Ah gotcha, ok yea the upcoming invoice endpoint is a bit special, it creates some temporary objects that can't actually be accessed
This is one such exmaple
hmm how can i get the taxrate object for this? ๐ค
If its not too deep, you can try expansion: https://stripe.com/docs/expand
IT might be possible to get the full object that way
this worked like a charm ! we never knew about the expand attribute ! now we have a ton of tech debt to go back and change all our services :sigh: ! than you soo much 