#aarti3874
1 messages · Page 1 of 1 (latest)
Hello aarti3874, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• aarti3874, 2 days ago, 8 messages
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I tried experimenting with many different configurations of this API. But I wasn't able to find a combination of parameters that worked for me
Can you share with me the request ID?
I used the terminal on Stripe dashboard and so I don't have a request ID for it unfortunately. I can share the configurations I used if that helps?
Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
So essentially, I am trying to get an upcoming invoice of a "subscription phase" without scheduling this phase.
If you can't find the request ID, share with me your Stripe account ID and I'll take a look at your recent logs
You can find it from the Stripe Dashboard -> Settings ->Account Details
https://dashboard.stripe.com/test/logs/req_VGnGFRVStAAbBr OK, so this is the most recent request for getting an upcoming invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I am not sure if this will help because the I was sending API requests through the Stripe shell. Those API requests are not logged in the events list
But I don't see you set anything to update the subscription rather than setting the customer
Like I said - API requests made through the Stripe shell are not registered in the list of API requests. So you will likely not find it there
I don't see any recent requests from CLI, all these requests were coming from Stripe Go SDK
This is the Stripe shell I am talking about (on the Stripe website) - I am pretty sure this doens't get logged in the list of requests
okay, I think we can ignore this line of conversation for now. Can we talk about how I can retrieve an upcoming invoice for a "phase" that is not created yet?
Even if you execute the requests from Web CLI, the requests will still be logged in your Stripe account which you can access in https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
how I can retrieve an upcoming invoice for a "phase" that is not created yet? -> you can by specifying the schedule param (https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-schedule)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmm I see. Let me try that
But the schedule field is a "string" and not a hash
It takes in only the scheduleID
Yes you need to set the schedule ID
So then that means I need to create a schedule before I can get an upcoming invoice with a potential schedule set as a phase?
Yes you are right
Does creating a schedule automatically mean it is going to get attached to a subscription? Or can I create a "hypothetical" schedule for the sake of getting an upcoming invoice?
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription you can use this to create a schedule from a exsting subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.