#refikimi_docs

1 messages ¡ Page 1 of 1 (latest)

mystic kettleBOT
#

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

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

prime token
#

this is where I want the tax ID to be

median pulsar
prime token
#

I tried adding it to the Address details in the customer settings page but it is between the Address and City name

#

but it does not

median pulsar
#

Got an example in_xxx?

prime token
#

in_1Ps0hfHzzIMXxbBCbZRiyU0N

#

it renders the TAX ID which I added into the address field

median pulsar
#

To be clear, which tax ID do you want to render? The customer tax ID or your account tax ID?

prime token
#

customer's tax ID, only for this customer

#

which I added in the customer tax field:

median pulsar
#

OK, let me take a look

prime token
#

thank you a lot

median pulsar
#

Looks like you created the invoice on 2024-08-26 (a month ago), yes? Tax IDs were only added to the customer ~today so it won't reflect on the invoice now as it's finalized

#

You'd need to create a new invoice and the IDs should appear

prime token
#

ahh I see, thank you

#

and how can I change the current invoice?

#

so that when the customer clicks and downloads the PDF he has the TAX ID there

#

Can I somehow create a new invoice with this TAX ID, without refunding and charging them again?

median pulsar
median pulsar
#

Then no payment is required, but you have a new invoice PDF with the tax ID

prime token
#

So I use the stripe API import stripe
stripe.api_key = "sk_test_51KWNmwHzzIMXxbBCVGtLqIuyKkAiEpcMGw437vMmaf9WMwGFwt9ragbGuEE29TEgXwU0D8bS5l2KfHNTJ2LWb8nr003K52RSVr"
stripe.Invoice.pay("in_1MtGmCLkdIwHu7ix6PgS6g8S")

and give it the invoice_id and I set the paramtere to true
stripe.Invoice.pay("in_1MtGmCLkdIwHu7ix6PgS6g8S", paid_out_f_band=True)

median pulsar
#

Yep

prime token
#

let me try, thank you, and will the old invoice be deleted?

median pulsar
#

It will not no

prime token
#

ok just let me test it on our test

#

I get this error:

stripe._error.InvalidRequestError: Request req_Wrscqd1zP7mjFh: Received unknown parameter: paid_out_f_band. Did you mean paid_out_of_band?

and my command was:
stripe.Invoice.pay("in_1Q3E9wHzzIMXxbBCakTeiCjx", paid_out_f_band=True)

#

oh I see I made a type

#

*typo

#

OK I get an error, that the invoice was already paid:
stripe._error.InvalidRequestError: Request req_C0u6Oah8j54T8I: Invoice is already paid

median pulsar
#

Yes, because it was generated and paid via a subscription automatically

prime token
#

so I could create a new invoice in stripe, as a draft, and then use the previous command and mark it as paid, but the customer will have two invoices in the payment history list, right?

mystic kettleBOT
median pulsar
#

But the 2nd 'paid out of band' woudn't need an actual payment

prime token
#

so basically when I create it in the dashboard:
it gets automatically charged from the test card, and I want to avoid that, so that I could use the API to ping afterwards

#

or is it possible to create a draft invoice here without it being sent automatically

sullen dew
#

use the API to ping afterwards
You mean to send it to the customer?

prime token
#

no, use the API to mark it as paid stripe.Invoice.pay("in_1Q3E9wHzzIMXxbBCakTeiCjx", paid_out_of_band=True)

#

basically I need to add the TAX ID on an invoice that was added later and after the invoice was paid

sullen dew
sullen dew
prime token
#

but when I did it here through the dashboard, it was paid automatically from the test card

sullen dew
#

If you don't select "Autocharge customer" it shouldn't be paid automatically...

prime token
#

let me try, I think I did that but let me confirm

#

ok when I pressed on the X, it was in a draft mode

#

and I sent the request

#

and it is marked as paid, can I be sure that the customer's credit card won't be charged?

sullen dew
#

No actions will take place if its mark as paid.

prime token
#

so the customer will not be charged but it will be marked as paid

sullen dew
#

Correct

prime token
#

thank you Vanya