#Salman1802

1 messages · Page 1 of 1 (latest)

summer kilnBOT
terse notch
#

Hi
What is not working exactly? can you share a requestId, InvoiceId ?

alpine ether
#

if we add automatic_tax: {enabled: true}, then its not working

terse notch
#

What do you mean exactly by "its not working"? we need more details, an invoiceId sample and what are. you expecting exactly.

alpine ether
#

If we try this code

#

const invoice = await stripe.invoiceItems.retrieve('ii_1Mg5U8FVALh7mfVT33HGXC6q',
{
"automatic_tax[enabled]":true
});}catch(err){
console.log(err)
}

#

It shoing invalid parameter

#

Now do you getting my point

#

?

terse notch
alpine ether
#

Yes , So how we can retirve with auto caluclated tax?

terse notch
#

you can set the auto calculation at creation time. when you retrieve an invoiceitem you get just the info, this aren't preview mode.

alpine ether
#

So we will have to create customer with auto tax enable?

#

Or we can create invoice with aut tax enable?

terse notch
#

The auto tax is set at invoice level, but the customer object must have some information (like address). Please follow the guide step by step in order to understand the integration.

alpine ether
#

We tried it as well

#

Could you please share the invoice create with auto tax