#amfpaulo_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/1371562816107974776
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
The subscription object has a schedule property that you can expand: https://docs.stripe.com/api/subscriptions/object?api-version=2025-04-30.basil#subscription_object-schedule
So when you receive customer.subscription.created you retrieve the subscription and expand that property.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hello Busmarck, Is my question clear enough ?
In terms of simulating it, you can just create a schedule and then advance your test clock's time.
I was guessing this, my main problem is the simulation, when I open a schedule subscription, I do not have the option to run a simulation, and eventually advancing the clock like I do for subscrition
If you look at the associated Customer is there a Test clock banner at the top?
let me check
Probably not... the ability to advance a Test Clock for a Subscription is a built in feature of the Dashboard. In this case you need to create a Test Clock for that Customer that you are testing with.
If I click to open the customer the banner is not there
You'll need to actually create the Test Clock in this case
Then you can advance time from the Customer page
All help assume the banner will be there , there is no banner , or I am not understanding
You must create the test clock manually for the banner to show up
It only shows up "automatically" for Subscriptions
As that is a built in feature
But if trying to use a test clock in any other scenario... like with a Subscription Schedule, then you need to create the Test Clock first then create the Subscription Schdule then advance time
Read through the doc I just shared and follow those steps
Ok, I got there using the link, I created the clock, now I can see a clock tab. How do I connect this clock to the scheduled subscription, or this clock will afect everything ? I am not understanding
The clock affects everything for the specific Customer
But When I created the clock, therer was no customer involved
sorry, I just see I can Add the customer
๐
Ok, I'll try to do a quick test, can you keep this open just for 5 more minutes ? untils I teste the simulartion ?
Yep no worries
Ok, I found my fisrt problem, I need to use a customer that is already in place, and looks like add customer, creates a new customer
Yep
You are going to need a fresh Customer to associate a Test Clock
You can't add one to an already-existing Customer
humm, My system create the customer on the fly using the API, anyways, I think I have an idea in how to make this work
You can also create Test Clocks using the API!
There is an API tab in the above docs
That shows how to do that
I know, but I am trying to avoid this, its unecessary work
I'll try, just keep this live for few more minutes
All good no rush
Ok, seems to be working, thank you