#zach_api

1 messages ยท Page 1 of 1 (latest)

paper etherBOT
#

๐Ÿ‘‹ 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/1290654599946047559

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

cold meteor
#

It seems the Invoice.Created e vent, truncates the number of invoice line items to just ~9

#

after that a URL is sent which guides point to using to retrieve all the invoice line items

#

I read through the guides and am unclear how as a python consumer of the API library, i should be interacting with this URL

sweet bronze
#

hi there!

cold meteor
#

helll

#

hello*

sweet bronze
cold meteor
#

I do not see that api call available in my version of stripe.

sweet bronze
#

what programming language is this?

cold meteor
#

this is python

#

python 3.11 to be specific

#

stripe==9.6.0

sweet bronze
#

and which version of stripe-pything are you using?

cold meteor
#

i belive i sent that right as u asked the question, wanted to make sure u saw it and werent waiting on me to answer

sweet bronze
#

thanks, just saw it ๐Ÿ™‚

cold meteor
sweet bronze
cold meteor
#

this is all i see on that object around list

#

OK

sweet bronze
#

so you would need to update your version of stripe-python

cold meteor
#

๐Ÿ™‚

#

oh thats scary

#

qq

#

is everything forward compatible?

#

or am i going to run into all sorts of compatibility issues

sweet bronze
#

no, you'll need to check the changelog I just linked

cold meteor
#

I see

#

ok this explains a lot.

#

I have one other question/issue I am having, not sure if you want me to start a new thread.

sweet bronze
#

you can ask it here

cold meteor
#

Great.

#

I am creating manual Invoice Items (not line items, but invoice items)

#

I do so through the API

#

those items render on the screen where it shows current invoice on the customer.

#

But I am unable to delete them via the UI

#

req_BT0jZhUXVnAWAM

#

is an example of the call

#

i also cannot edit them

#

one interesting this is :

#

the invoice item that it says no such invoice item, has tmp in the item identifier, as well as il_ as the prefix

#

if i remove the _tmp and i change the il to ii, i can delete via api (cant obviously do this on front end)

sweet bronze
#

what exactly are you doing to trigger these requests? can you share a screenshot of the dashboard where you are doing this exactly?

cold meteor
#

callin Stipe.InvoiceItem.create

#

I can get u a request ID

sweet bronze
#

But I am unable to delete them via the UI
by "UI" you mean in the Stripe dashboard no? so can you share a screenshot of the dashboard UI?

cold meteor
#

yes stripe dashboard

#

I can just give me one sec, i had kinda workarounded like I mentioned above so deleted those line items

#

remaking them now

paper etherBOT
cold meteor
#

ok here it is

#

This is from the customers subscriptions creen

#

I changed the quantity from 60 to 61

#

and it throws this error

#

and if i try and delete the line from that page

#

i get the following error:

#

If I take 'il_tmp_1Q55gmCYEIkFpocTTEJqMpKb' and hit the API it gives similar error

#

If i change 'il_tmp_1Q55gmCYEIkFpocTTEJqMpKb' to 'ii_1Q55gmCYEIkFpocTTEJqMpKb'

#

it will let me delete via API

surreal latch
#

hey ther,e just catching up on this, give me a few minutes

cold meteor
#

np

surreal latch
#

Ok i see, thanks. Is this is the "upcoming invoice" lines?

cold meteor
#

Correct

surreal latch
#

So this is a bug that you can reach this, but also expected as a result

#

Those are temporary/fake line items for the upcoming invoice, they dont actually exist yet to be editted/deleted

#

The invoice item you created can be manipulated, as you;ve found

#

If you're creating these invoice items via the API you'll need to manage them via the API too.

cold meteor
#

In general this is no longer blocking me because I found the workaround to editing/deleting these. But pretty confusing, probably you want that UI option disabled.

#

nothing more from my end, thought i would report it as an odd behavior