#sarrielek-stripe-tax
1 messages ยท Page 1 of 1 (latest)
Hi there! To clarify โ you are attempting to retrieve the tax rate based on the invoice preview?
yes
That tax rate will be created dynamically once the invoice is created. You can't retrieve any objects from the preview.
I also tried creating a subscription and retrieving that invoice
Oh? And you can't retrieve the tax rate?
Can you provide the request ID for the error?
no. then I try to search on my dashboard and I get this:
the request ID: (Request req_78TrRDO7oW8Qu3)
Taking a look
thanks so much
Can you share the invoice ID where you grabbed that tax rate from?
in_1LIM3GBf3u2dEIRPsY58NPMI
no worries! thanks for taking a look
So I see the tax rate in the invoice. Where are you not seeing it?
when I try to retrieve it with the API.
I just created a new subscription with another address (another tax rate) and now it is showing with active:false
You mean the GET request?
yes
$taxRates = $stripe->taxRates->retrieve(
'txr_1LIM3GBf3u2dEIRPxVpBIZPf',
[]
);
do the automatic created tax_rates always show as inactive?
Can you share that request ID?
request id, how can I check for that
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
it does not show the requests I make to the tax rate api
You may need to clear the filters. We don't show GET requests by default
I see some logs but only on /invoices nothing with /taxrate. I'll try more calls and see if they appear
All of them are successful and don't appear there. So sorry for all the inconvenience
what I am worried a bit is that all those tax rates are as archived on my dashboard
Okay so you are creating the tax rates inline as part of the subscription, yes?
I think, in order to create Tax Rate records that will persist after the subscription, you need to create them with a separate API call.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah, as part of automatic tax, I'm not required to create them manually.
even if those tax rates don't persist I will always be able to retrieve to show the invoice taxes, right?
yeah, just that they show as archived. Will that be a problem when I try to retrieve the tax rate to see the display name?
on my invoice object I get the tax_rate id and the amount but not a display name. I need to make another call for that tax rate. Or is there any other way?
I might not be explaining myself well. When I use the automatic_tax calculation the subscriptions go well and I get the invoice with the correct tax rate applied. But when I go to my dashboard I can't see that tax rate
but if I search by the id I get on the invoice:
how can I keep track of those tax rates that are created dynamically?
sorry for all the questions, I'm quite new with all these tax rates
No that is fair
I suspect dynamic tax rates need to accessed through the Invoice object. I have to step away but my colleague @silk onyx can answer additional questions
sounds good.
hello toby!
as Snufkin said the dynamic tax_rates should be accessed throuhg the Invoice object, the only problem is that the display name is not sent on the object.
Hi ๐ apologies for the delay while I was getting caught up.
Just wanna recap quickly to make sure I understand. You're using Stripe Tax to automatically calculate taxes on your invoices, and you're trying to figure out how to get the display name associated with those tax rates?
yes
and how to see those on my dashboard too, I can only access them if I search by ID
thanks for the quick catch up
Can you double check the API key that you're using when you made this request?
the request ID: (Request req_78TrRDO7oW8Qu3)
It looks like you might have used one that belongs to one of our test accounts, and since the Tax Rate doesn't reside on that account you encounter that error.
I might gave the wrong id as I was testing on various envs...sorry about that.
with my accounts I'm able to get the correct invoice and tax rates in tax_amounts array, but without any name.
Would you mind sharing the output of that request, just so I can be sure we're looking at the same thing?
And when you retrieve that Tax Rate object, you're not seeing a display_name for it?
If I make another call I get it
but is active: false and I can't find it on my dashboard
can you copy/paste that ID here for me?
I'll need a couple minutes to take a closer look (we don't interact with the Stripe Dashboard frequently so I'm not sure how this looks there).
sure, no worries
Hm, I'm not seeing them either, and I think that might be expected since they're being created for you automatically.
Is there something specific that you're trying to accomplish by viewing them in the dashboard?
making sure they exist, but the end goal is that I want to make sure I will be able to retrieve the tax rate info even if it's not showing on the dashboard, I mean, if in 6 months I get that invoice and tax rate, it will still exits and be able to get the name with the api call $stripe->taxRates->retrieve
Yes, you'll be able to retrieve them in the future if you're able to do so now.
thanks so much for your help
Any time!
๐