#agustinm

1 messages · Page 1 of 1 (latest)

fresh axleBOT
median spear
#

Hey there

#

Yeah you would add quantity, not the same Price multiple times

#

What are you trying to do?

earnest vault
#

im ttying to update a subscription with line items

median spear
#

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

earnest vault
#

const update = await stripe.subscriptions.update(subscriptionId, {
items: line_items,
coupon,
})

median spear
#

Can you share the request ID where you see the error?

earnest vault
#

Where can i found that id??

median spear
earnest vault
#

I solve that issue but creating new prices

#

Im using products, and every product have his price. Are a limit for prices use?

median spear
#

Nope

earnest vault
#

It must be a problem in my code, thanks

median spear
#

Sure

earnest vault
#

Are u still here?

median spear
#

Yep

earnest vault
#

req_cQ1bbAOqpDuXJB

#

the request ID

median spear
#

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

earnest vault
#

Perfect!