#marve_api

1 messages ¡ Page 1 of 1 (latest)

summer kiteBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1388212275965591713

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lyric hinge
#

Hi there

mild jungle
#

Hi

lyric hinge
#

Can you share a link to the docs you're reviewing?

mild jungle
lyric hinge
#

The docs mention updating the InvoiceLineItem for tax amounts, not the InvoiceItem.

mild jungle
#

O sorry my bad, is there any way to update invoice item?

lyric hinge
#

Taking a step back here, is your goal to add manual tax on the Invoice level or to individual line items?

mild jungle
#

Invoice items

#

o i see, to add tax amounts to invoice items i need to do it through invoice line items right

lyric hinge
#

Yep, that's right!

mild jungle
#

O got it thanks! Can't do it directly when creating an invoice item right?

#

And last thing, we're also setting taxBehavior, so by passing tax amounts, will it automatically update the total amount of the invoice and items? We're passing priceIds for the items. Does stripe do this calculation when outside tax rates are used or do we have to do it?

lyric hinge
#

That's right, you can't add tax amounts when creating an Invoice Item. Tax amounts can only be added to the Line Item, and Line Items are automatically created after you add an Invoice Item

#

Can you rephrase your first question? So you're setting tax behavior on a Price when creating the Price but your goal is to set taxes manually anyway? If you're calculating taxes on your end, what do you envision Stripe calculating?

#

If you have a test scenario you can share, that would be helpful. An Invoice ID from test mode/sandbox where you're testing this would work

mild jungle
#

sorry so:

  1. I create a price
  2. I create an invoice
  3. I create an invoice item and set tax behavior to exclude
  4. I update tax amount for the invoice item using the update line items call
#

Just checking if tax behavior is compatible with manual tax rates, ie will the invoice total be updated

#

I can figure this out myself testing it though, I know im taking quite a bit of your time

lyric hinge
#

No, all good! Just wanted to make sure we're on the same page

#

The Invoice total should be updated but I recommend testing to confirm. I can test as well

mild jungle
#

O great thanks! Just wanted to check as I was already asking about tax

#

No problem will do, thanks again for the patience

lyric hinge
#

Yep, okay. Confirmed that updating the tax amount on an Invoice Line Item will automatically take care of updating amount_due and total on the Invoice

#

This is assuming the tax amount is exclusive

mild jungle
#

Thank you!!!