#agustinm
1 messages · Page 1 of 1 (latest)
Hey there
Yeah you would add quantity, not the same Price multiple times
What are you trying to do?
im ttying to update a subscription with line items
Ah you need to pass in the Subscription ID that you are updating from. See: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
If you don't do that then it makes it seem like you are adding a new Price to it
Not changing the current one
const update = await stripe.subscriptions.update(subscriptionId, {
items: line_items,
coupon,
})
Can you share the request ID where you see the error?
Where can i found that id??
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I solve that issue but creating new prices
Im using products, and every product have his price. Are a limit for prices use?
Nope
It must be a problem in my code, thanks
Sure
Are u still here?
Yep
Yeah so see how you aren't passing the Subscription Item ID
If you want to update a current Subscription Item then you need to pass items: [{ id: subscription.items.data[0].id,
That ID is specifically the Subscription Item ID that is associated with the Sub for that Price
Perfect!