#asdfgh-tax-id
1 messages ยท Page 1 of 1 (latest)
Hey, taking a look
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you're using the wrong parameter
You need to add the Tax ID to the related Customer: https://stripe.com/docs/api/customers/object#customer_object-tax_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But this is tax id related to customer https://dashboard.stripe.com/test/events/evt_1L7evNDOx9DiEb05clmgETqt
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
Yes
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)?
Can i provide sample of my code?
Yeah, that would help, I may still need to sample requests but we can start with the code snippets.
Hm, nothing is jumping out at me as being problematic with that. What is the error that you're encountering?
No such account_tax_ids: 'txi_1L7euHDOx9DiEb0569HJOP24'
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.
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?
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.
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?
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.
you can set a memo/description that gets included in the invoice
Okay but how this solve my problem?
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?
Okay, so from the beginning
If it's already paid, then you should use the /pay API to mark the invoice paid out of band
I understand if I want to send invoice to customer mail I need to pass collection method as 'send_invoice' right?
COrrect
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?
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
Okay but this is the pdf which my customer will get after, yes?
After what?
If the only PDF generated for the invoice, and that happens at finalization
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
Okay so I cannot hide this button in pdf, yes?
Correct
So now everything is clear, thanks!
NP!