#asdfgh-tax-id

1 messages ยท Page 1 of 1 (latest)

cloud rock
#

Hey, taking a look

#

you're using the wrong parameter

trim mesa
tawdry anvil
#

Hi ๐Ÿ‘‹ sincere apologies for the delay. I'm working on getting caught up as my teammate needed to step away. I'll be with you in just a moment.

#

I recall seeing your code snippets in the main chat, you're creating a tax ID for a customer and then attempting to put that on an invoice, correct?

trim mesa
#

Yes

tawdry anvil
#

Gotcha, could you provide me with a sample request from each of those two steps (creating the ID for the customer, and then trying to attach it to the invoice)?

trim mesa
#

Can i provide sample of my code?

tawdry anvil
#

Yeah, that would help, I may still need to sample requests but we can start with the code snippets.

trim mesa
tawdry anvil
#

Hm, nothing is jumping out at me as being problematic with that. What is the error that you're encountering?

trim mesa
#

No such account_tax_ids: 'txi_1L7euHDOx9DiEb0569HJOP24'

tawdry anvil
#

Hm, I'm not entirely certain, but it looks like that ID may have been in some sort of verification pending state when you attempted to attach it to the invoice.

trim mesa
#

Okay I get it

#

However I would have another two questions if you dont mind

#

If I just create and pay an invoice as in example above, will my customer get an email with this invoice in live mode instantly or I need also to call some endpoint to achieve that?

tawdry anvil
#

I believe that flow is missing the step that finalizes the invoice, and I think the finalization step is the piece that would trigger the email to the customer if you're using collection_method set to send_invoice.

trim mesa
#

Yes, but that is connected to my second question

#

If I am providing send_invoice I also need to provide date_due / due_date, however customer pays for this invoice out of the band so maybe there is possibility to not show my customer info on invoice that he needs to pay this?

pliant carbon
#

If you want something like that you can use the memo/description

#

Until you actually complete the (possibly out-of-band) payment or void the finalized invoice, Stripe expects your customer will pay it.

trim mesa
#

I dont get it

#

Which memo / description?

pliant carbon
#

you can set a memo/description that gets included in the invoice

trim mesa
#

Okay but how this solve my problem?

pliant carbon
#

Which problem exactly? I was addressing your question about indicating a need to pay or not.

however customer pays for this invoice out of the band so maybe there is possibility to not show my customer info on invoice that he needs to pay this?

trim mesa
#

Okay, so from the beginning

pliant carbon
#

If it's already paid, then you should use the /pay API to mark the invoice paid out of band

trim mesa
#

I understand if I want to send invoice to customer mail I need to pass collection method as 'send_invoice' right?

pliant carbon
#

COrrect

trim mesa
#

So I am doing something like this

#

And in invoice PDF there is button with 'Pay online'

#

Even if this is already paid

#

Can I in some way hide this?

pliant carbon
#

Do you have an example invoice ID you can share?

#

But, no, that is the original invoice pdf generated before the invoice was paid

#

Following the link to the hosted invoice page does indicate when the invoice is already paid

#

as i said, you can add a memo if you do not intend for you customer to pay this invoice to let them know

trim mesa
#

Okay but this is the pdf which my customer will get after, yes?

pliant carbon
#

After what?

trim mesa
#

After execution of this code

pliant carbon
#

If the only PDF generated for the invoice, and that happens at finalization

trim mesa
#

So my customer will see another pdf in live mode?

#

I dont understant this

pliant carbon
#

No, the PDF is not updated to reflect the paid status is what i am saying

#

The hosted page (where that link goes) is updated

trim mesa
#

Okay so I cannot hide this button in pdf, yes?

pliant carbon
#

Correct

trim mesa
#

So now everything is clear, thanks!

pliant carbon
#

NP!