#pierre06-subscription
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Hello soma thank you for your help : req_wVxN4knpBP7BOg
I had a hard time finding the good log
Thanks! Give me a few minutes to look into this.
Oups !!! I think it is probably this one, sorry soma ! req_tkgAdkHZl4vXh0
in fact I create the price and after I update the subscription with the new price, I think the update failed and not the price creation
For the last request ID you shared:
- You have a subscription with 2 prices, each recurring every month (
interval_count: 1) - And they you try to update one of the price, that is recurring once every 2 months (
interval_count: 2)
This is not possible, all prices of a subscription must have the same billing interval. That's why you are getting an error.
ok good, I'm trying to update the 2 products at same time
So you need to update the two price at once, by passing the two price in the items property https://stripe.com/docs/api/subscriptions/update#update_subscription-items
ok thaks a lot soma 🙂
ah in fact it fails when I try to create the prices so I don't understand well how to update the subscription with theses prices?
Can you share a request ID of this?
This request is not creating a price, it's updating a subscription.
Here it fails because you need to pass both price at the same time, like I said earlier.
ah ok so I must do 2 prices at creation of the prices ?
I understood I need to update both after
First you create the 2 prices (in the dashboard or with the API), and then you update the subscription once with the 2 price included in the item property.
ok I'm going to try to create these prices in dashboard because it fails when I try to create with API
I can't find where to create a price in dashboard could you help me for this please ?
in fact if I could change the interval_count in dashboard it would be perfect (without API)
You likely can't update this if it's an existing Price object, they're mostly immutable
Ah ok
Where can I create a price in dashboard ?
if I create the two prices in dahsboard and I update subscription with the 2 prices at same time it should be good
Under the Products section: https://dashboard.stripe.com/products
i.e. a Price belongs to a Product
Ok thanks I'm gonna try