#theruv-subscription-preview

1 messages · Page 1 of 1 (latest)

reef fieldBOT
zenith lotus
#

Hey I tried the future invoice preview approach but wasn't sure where to plug in the product id and discount

bleak epoch
#

theruv-subscription-preview

zenith lotus
#

do you know where I would plug product id and promo here?

bleak epoch
#

the Price id goes in subscription_items which mirrors what you pass the the Subscription API and you pass the Coupon id in discounts

reef fieldBOT
zenith lotus
#

I get this error - You cannot update a subscription item without a subscription.

real tartan
#

Hello! Hopping in here since koopajah had to head out

#

Can you share the request ID that's giving you that error?

zenith lotus
#

req_6tD1wduW0tpiua?t=1689701249

real tartan
#

So you're trying to preview the upcoming Invoice BEFORE having to create a subscription, right?
Instead of setting the Price ID as subscription_items[0][id] you'll want to set it as subscription_items[0][price]

#

subscription_items[0][id] is only for when you have an existing subscription and you want to model what changing/updating that subscription would look like

zenith lotus
#

Makes sense!

#

Thank you, that worked - do you know where I could plug in a customer facing coupon?