#manu.elb0507

1 messages ยท Page 1 of 1 (latest)

quick lilyBOT
proven panther
round wadi
#

oooh okay, ty

#

I asked that since I currently want to modify a subscription that has a number of tools and I want more to be added to that quantity but I was getting an error

#

so i thought deleting that item by the stripe id and putting it back would work

proven panther
#

You should just be able to update the sub without needing to delete the item explicitly

round wadi
#

hmm๐Ÿค”

#

i got this error when i was trying: "Request req_kK2v51jnhuuKsW: Cannot add multiple subscription items with the same plan"

proven panther
#

Can you double check the request ID? I'm unable to load it on my end

round wadi
#

req_vq9iW2dgWvO5AY

proven panther
round wadi
#

oooh ok, yeah it makes more sense to me

#

thank you! ill try it and let you know anything else

proven panther
#

๐Ÿ‘

round wadi
#

If it is for the quantity, it would be done with the SubscriptionItem, but if it is to add a new item, can I do it with the same SubscriptionItem or update the subscription directly with Subscription.modify()?

proven panther
#

I haven't tested it myself but you can do either I think

#

I think that's what you were missing as you were passing in the price ID instead

round wadi
#

yes of course, that's exactly how I was sending it but still I kept getting the error that I sent you a while ago

#

its a list with the dictionary with the price ID and the quantity number

#

[{"price": price_ID, "quantity": 1 }] <- something like that

proven panther
#

If you're trying to update an existing subscription item then you can't pass a price ID in, you'd need to pass in a subscription item ID

like

[{ id: 'si_xxxx', quantity: 10 }]

round wadi
#

no, i was talking about updating the subscription with Subscription.modify() not the SubscriptionItem hehe๐Ÿ˜…

proven panther
#

I am talking about the Subscription.modify() too
If you look at the API ref I shared above, you can pass in subscription item ID to subscriptions API endpoint

round wadi
#

with the docs you sent about the SubscriptionItem i can update the quantity, thank you so much btw!

round wadi
#

ooh ok, i see now what im doing wrong

#

thank you!!

proven panther
#

Yeah sorry for the confusion earlier ๐Ÿ™‚

round wadi
#

yeah dont worry haha๐Ÿ˜