#Sam Gralla
1 messages · Page 1 of 1 (latest)
Can you share your request id? 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.
Ok. This is the python api i'm assuming (based on the syntax)?
Yes. And my other requests work just fine and show up in logs.
What version of the library are you using?
The latest, I believe, but let me check
Oh, interesting. Apparently it is 4.3.0b2 - did I install some beta that broke something?
That's a pre-release so it's possible. Can you try the request again with 4.2.0? Also, was this exact request working before?
I will check. No, this exact request has never worked. I am adding invoice functionality to my site for the first time
The other thing I noticed is you are passing in a single dict to InvoiceItem.create, whereas InvoiceItem.create expects multiple arguments: https://stripe.com/docs/api/invoiceitems/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh, I forgot ** in python. Sorry for the newbie error! Really appreciate your quick response.
Everything works now
Ah cool. Should have noticed that immediately haha
Glad you're all straightened out!
I do recommend pinning the version of the Stripe library you're using though
Yes, I do that. I just recently upgraded to the "latest" as suggested by pyCharm, which gave me that prerelease.
Ah ok