#maxime_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/1277539817722478602
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
What are the Subscription IDs you're expecting to receive?
I don't think the request from the code snippets is the same one you shared with the Request ID
ah no sorry, I tried doing it from the command line after
that was the command line but I get the same result from the command line so we can try to debug whichever one you prefer
Exemple of request from the code req_F5y2wdVLaEBRGJ
And what's the Subscription ID that you do receive? Sorry, we don't save the responses of GET requests on our side
Oh, I see, it's because the other 3 are on Test clock
Ooooh
You gotta pass the test clock explicitly to get those: https://docs.stripe.com/api/subscriptions/list#list_subscriptions-test_clock
Although, it does alternate if I change the status
Maybe because it only get the one from the current test clock then?
I'll try adding a second one
does alternate
What do you mean by this?
Aaaaaaaaaaaah you're right, I've added one (without a test clock) and I get the 2 now ๐ !
Thanks a lot ๐
Happy to help.
Actually ... ๐ค
I've got one more question, if you prefer me to raise a new ticket do let me know as it's not really related.
I want to migrate subscriptions that are on an old price that we don't want anymore to a new price.
What's my best shot at this from the API?
Can I keep the subscription and just update the items in it? Do I have to do something else? Thanks
Best to update the Subscription Item: https://docs.stripe.com/api/subscription_items/update#update_subscription_item-price
You can read more about Subscription updates here: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
Thanks I'll take a look ๐ !