#Sasukector - tax id
1 messages ยท Page 1 of 1 (latest)
I want a way to get the % of taxes that will apply to a customer based on his shipping_address
At what point in your code are you trying to get this and for what purpose? Just want to know the complete story here
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
Ah ok. You should be able to do this with the upcoming invoice endpoint then: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, without creating like a Draft or so?
Yeah it allows you to pass all hypothetical parameters and then see what the invoice would look like
Ok, let me try
Thank you!
Oh, one question
How can I add InvoiceItems to this Upcoming one?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
I know. That's what the above does
`List of invoice items to add or update in the upcoming invoice preview.
`
Ok