#marve_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hi there
Hi
Can you share a link to the docs you're reviewing?
dont think i cando it direclty in create invoice item:
https://docs.stripe.com/api/invoiceitems/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The docs mention updating the InvoiceLineItem for tax amounts, not the InvoiceItem.
O sorry my bad, is there any way to update invoice item?
Taking a step back here, is your goal to add manual tax on the Invoice level or to individual line items?
Invoice items
o i see, to add tax amounts to invoice items i need to do it through invoice line items right
Yep, that's right!
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?
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
sorry so:
- I create a price
- I create an invoice
- I create an invoice item and set tax behavior to exclude
- 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
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
O great thanks! Just wanted to check as I was already asking about tax
No problem will do, thanks again for the patience
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
Thank you!!!