#nick_api

1 messages · Page 1 of 1 (latest)

tardy lanceBOT
#

👋 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/1331790360514658365

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

empty solar
#

Happy to link to anything else- I've been messing with trying to get it to always appear so you might see a mix of the $0.01 price and the $0.00 price as I've been debugging

But the true goal here is that both annual & monthly prices are $0.00 per cycle

pallid harbor
#

Hi there, catching up and gimme a few mins here

empty solar
#

No rush!

pallid harbor
#

Um so if you specify amount = 0.01, the created Invoice will immediately have a 0.01 line items, and Upcoming Invoice doesn't have it. But if you specify amount = 0.00, the created Invoice won't have it, but the Upcoming Invoice will

#

Is that correct?

empty solar
#

Basically- I actually assume the upcoming invoice will show it regardless of 0.00 or 0.01

#

Really it’s actually getting a 0.00 line item on an invoice, so that we can inject our 3rd party taxes properly.

I only mentioned the upcoming invoice showing it, since that technically is my expected result (having that line item there)

But getting it on real invoices (not preview or upcoming) doesn’t happen

pallid harbor
#

The Upcoming Invoice represents an Invoice in the future. The already created Invoice is the present Invoice. They are different

#

If I understand correctly, 0.00 items is "pushed" to the Upcoming Invoice, while 0.01 is included in the present Invoice

empty solar
#

Disregard the 0.01

pallid harbor
#

Does that sound correctly describe what you observed?

empty solar
#

That was me validating my thought that stripe is auto removing the 0.00 line item

#

But also yes! Basically the 0.01 ends up on the invoice generated from that subscription update

#

The 0.00 will never appear on the invoice generated from the subscription update

pallid harbor
#

0.01 testing is great 🙂 We want to know if that's the amount matter

empty solar
#

And I understand the difference between upcoming invoices & the an actual invoice being made

I was only pointing out that it’s odd that the upcoming invoice returns the line item with 0.00

Yet the actual invoice that would come out of that won’t

pallid harbor
#

So on 0.01, do you see the line items again on Upcoming Invoice?

empty solar
#

Yep, 0.01 works as any other item it would appear

pallid harbor
#

No I mean, on 0.01, you see it on the present Invoice, but if you look at Upcoming Invoice, you are not seeing it again, right?

empty solar
#

No I see it on both, it’s a recurring charge (technically)

#

So I expect to see 0.01 on both present/generated and the upcoming — and I do see it on both to confirm

pallid harbor
#

I see!

#

Okie going back to 0.00, now you don't see it on the immediate Invoice, but seeing it on the Upcoming Invoice. What happen if you advance the time to the future past the Upcoming Invoice? Would you see it actually have 0.00 as it showed?

empty solar
#

No it still doesn’t appear even if I make it do it’s normal cycle

#

Sorry if I’m also explaining this horribly; been throwing my head against this all day 😭

pallid harbor
#

No worries. I wonder if it is only showing on Upcoming Invoice, but when that Invoice turned into a "real" Invoice it will be missing again

#

Upcoming Invoice is just a preview of future Invoice

empty solar
#

That is what happens- I confirmed

#

0.00 just never shows up unfortunately

#

I actually tried modifying quantity too in a subsequent call, to see if maybe it just won’t show up on the invoice generated from its initial insertion

#

But even in that case it never shows up, so I’m leaning towards it all revolving around the subtotal being 0.00- but I still would’ve imagined this to show up at least while the invoice is in draft, and maybe the stripe logic to remove 0.00 subtotals would kick in after finalization

#

I tried digging for a setting in the dashboard, or any info/docs in general about this behavior and I couldn’t find anything

pallid harbor
#

Yeah that's what I thought too. We normally ignore everything 0.00

#

Sorry for that. I think you could communicate to your customer in that case only, and mention non-zero tax would appear in your Invoices

empty solar
#

But I need to apply the tax to that line item

#

And we really want to avoid a 0.01 charge for them- they’re actually free as part of our platform but we legally need to apply taxes to them (telecom tax is super annoying with regulations)

#

So that 0.00 line item needs to exist- so with stripe not actually including it because it’s a 0.00 charge, it stops us from being able to properly apply taxes to that

pallid harbor
#

Hmm I see. So you need to have that 0.00 item displayed, despite that you don't collect any tax amount

empty solar
#

Basically- I worded it poorly, but the intention is to collect taxes on this item

#

But the actual unit price / subtotal without tax will always be 0

pallid harbor
#

But how can you calculate the tax if the original amount is 0?

#

Sorry I may missunderstand something here

empty solar
#

Telecom has per line fees that are fixed based on quantity

#

Not a percentage based on $

#

So the quantity of that item is always the amount of numbers said customer has- which are all charged fixed fees depending on their location

#

e.g. E911 is a flat rate fee we have to pay per VOIP phone line

#

Those phone lines are free included with our customer subscription, which is why we need the 0.00, but they are charged specific fees on those

pallid harbor
#

Um and your 3rd party will calculate that tax for you? Based on the quantity you give them?

empty solar
#

Yes

#

We use Avalara for communications

pallid harbor
#

Ah Avalara

empty solar
#

Yep! So they give us back the proper taxes off the quantity in this case

#

Fixed amount is I think what stripe refers to them as (these non percentage based taxes)

pallid harbor
#

Um sorry this is something our API is not supporting (display a 0.00 item). Could you write to Support, asking for any "Invoice beta" program? Please mention this Discord thread too.

#

I don't recall such a program, but let's give Support team some time to gather information. Otherwise we will record as a feedback :/

empty solar
#

Sounds good, we have a rep at Stripe that I’ll reach out to this week and I’ll refer back to this thread there to see if there’s something we can do

#

I appreciate you looking into it!