#Sasukector - tax id

1 messages ยท Page 1 of 1 (latest)

vague jackal
#

What tax id are you referring to?

lost ocean
#

I want a way to get the % of taxes that will apply to a customer based on his shipping_address

vague jackal
#

At what point in your code are you trying to get this and for what purpose? Just want to know the complete story here

lost ocean
#

Yes, don't worry

#

I have a review section that is shown to the user

#

And if everything is good and the user confirms, I create the Invoice and all the stuff

#

But in that review section I show the % of taxes and the amount

#

Soooo, I want a way to get them based on the shipping address of the customer, similar to the automatic_tax when I create an Invoice

vague jackal
lost ocean
#

Oh, without creating like a Draft or so?

vague jackal
#

Yeah it allows you to pass all hypothetical parameters and then see what the invoice would look like

lost ocean
#

Ok, let me try

#

Thank you!

#

Oh, one question

#

How can I add InvoiceItems to this Upcoming one?

vague jackal
lost ocean
#

Nice, thx!

#

No no, but like adding them, not retrieving

#

For example with a regular Invoice you can use stripe.InvoiceItem.create() and then when the Invoice is created they are consumed

vague jackal
#

I know. That's what the above does

#

`List of invoice items to add or update in the upcoming invoice preview.

`

lost ocean
#

Ok

lost ocean
#

It worked, thx!

#

๐Ÿ›

vague jackal
#

No problem!

#

Glad I could help