#sarrielek-stripe-tax

1 messages ยท Page 1 of 1 (latest)

ionic hollow
#

Hi there! To clarify โ€” you are attempting to retrieve the tax rate based on the invoice preview?

young moon
#

yes

ionic hollow
#

That tax rate will be created dynamically once the invoice is created. You can't retrieve any objects from the preview.

young moon
#

I also tried creating a subscription and retrieving that invoice

ionic hollow
#

Oh? And you can't retrieve the tax rate?

#

Can you provide the request ID for the error?

young moon
#

no. then I try to search on my dashboard and I get this:

#

the request ID: (Request req_78TrRDO7oW8Qu3)

ionic hollow
#

Taking a look

young moon
#

thanks so much

ionic hollow
#

Can you share the invoice ID where you grabbed that tax rate from?

young moon
#

in_1LIM3GBf3u2dEIRPsY58NPMI

dusty lotus
#

HI ๐Ÿ‘‹

#

sorry for the delay, I'm stepping in

young moon
#

no worries! thanks for taking a look

dusty lotus
#

So I see the tax rate in the invoice. Where are you not seeing it?

young moon
#

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

dusty lotus
#

You mean the GET request?

young moon
#

yes
$taxRates = $stripe->taxRates->retrieve(
'txr_1LIM3GBf3u2dEIRPxVpBIZPf',
[]
);

#

do the automatic created tax_rates always show as inactive?

dusty lotus
#

Can you share that request ID?

young moon
#

request id, how can I check for that

dusty lotus
young moon
#

it does not show the requests I make to the tax rate api

dusty lotus
#

You may need to clear the filters. We don't show GET requests by default

young moon
#

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

dusty lotus
#

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.

young moon
#

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?

dusty lotus
#

The tax rates do show up on the Invoice

#

I could see the one you shared

young moon
#

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

dusty lotus
#

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

young moon
#

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.

silk onyx
#

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?

young moon
#

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

silk onyx
#

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.

young moon
#

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.

silk onyx
#

Would you mind sharing the output of that request, just so I can be sure we're looking at the same thing?

young moon
#

yes, sure, give me one sec

silk onyx
#

And when you retrieve that Tax Rate object, you're not seeing a display_name for it?

young moon
#

If I make another call I get it

#

but is active: false and I can't find it on my dashboard

silk onyx
#

can you copy/paste that ID here for me?

young moon
#

txr_1LIM3GBf3u2dEIRPxVpBIZPf

#

I'm just worried if I'm doing something wrong

silk onyx
#

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).

young moon
#

sure, no worries

silk onyx
#

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?

young moon
#

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

silk onyx
#

Yes, you'll be able to retrieve them in the future if you're able to do so now.

young moon
#

thanks so much for your help

silk onyx
#

Any time!

young moon
#

๐Ÿ˜ƒ