#theruv-subscription-preview
1 messages · Page 1 of 1 (latest)
Hey I tried the future invoice preview approach but wasn't sure where to plug in the product id and discount
theruv-subscription-preview
You can use https://stripe.com/docs/api/invoices/upcoming for this
do you know where I would plug product id and promo here?
the Price id goes in subscription_items which mirrors what you pass the the Subscription API and you pass the Coupon id in discounts
I get this error - You cannot update a subscription item without a subscription.
Hello! Hopping in here since koopajah had to head out
Can you share the request ID that's giving you that error?
req_6tD1wduW0tpiua?t=1689701249
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