#jakeb_api
1 messages · Page 1 of 1 (latest)
👋 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/1375568197281120376
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
$invoice = $client->invoices->upcoming(
[
'subscription' => $subscription->id,
'subscription_details' => [
'items' => [$newPlanDetails],
'proration_date' => $startDate,
'proration_behavior' => 'always_invoice'
],
],
[
'stripe_account' => $company->getStripeAccountId()
]
);
this is the code I've referenced, Stripe's API seemingly times out when making this request
I have found an archive of this documentation page which no longer exists: https://web.archive.org/web/20250211190255/https://docs.stripe.com/api/invoices/upcoming but does not really help find out why our request is timing out unfortunately
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey there, I'll get to you in a bit. I'm still working another thread.
Thank you!
Do you have a request ID you can share?
I don't believe so, I think they typically come as a header on the response, but I never receive that as it times out
would it show in my dashboard somewhere?
Yeah, that request doesn't seem to be showing up in the developer logs anywhere as far as I can tell
Ok, it looks like we depricated the Upcoming Invoice API methods with Stripe Basil. Looks like that why it's timing out [0].
[0] https://docs.corp.stripe.com/changelog/basil#2025-03-31-billing-deprecations
What API version are you using in your API requests?
Looks like we're not specifying one, and my test account is locked to 2020-08-27
actually - no, looks like we do specify 2023-10-16, sorry
If you're using the Basil API version we recommend using the create preview invoice api [0]
I don't believe we are, it's showing all of my requests are going through 2023-10-16
the version of stripe-php we're using is locked to that
What version of the PHP SDK are you on?
13.10.0
Interesting, I'm not sure why this is the case. I have to drop because discord is closed. This is going to need a deeper investigation, I'm going to trigger a flow that will have our bot send you a DM to create a support ticket that will come right to our team.
Hello @eager narwhal, we have sent you a direct message, please check it at https://discord.com/channels/@me/1375579507255152873
- 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Okay, thank you