#pierre06-subscription

1 messages · Page 1 of 1 (latest)

junior ravine
fleet laurel
#

Hello soma thank you for your help : req_wVxN4knpBP7BOg

#

I had a hard time finding the good log

junior ravine
#

Thanks! Give me a few minutes to look into this.

fleet laurel
#

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

junior ravine
#

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.
fleet laurel
#

ok good, I'm trying to update the 2 products at same time

junior ravine
fleet laurel
#

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?

junior ravine
#

Can you share a request ID of this?

fleet laurel
#

yes ok...

#

req_pNYQRS4Obyu1DO

junior ravine
#

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.

fleet laurel
#

ah ok so I must do 2 prices at creation of the prices ?

#

I understood I need to update both after

junior ravine
#

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.

fleet laurel
#

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)

onyx cobalt
fleet laurel
#

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

onyx cobalt
#

i.e. a Price belongs to a Product

fleet laurel
#

Ok thanks I'm gonna try