#amoomoo
1 messages · Page 1 of 1 (latest)
i can add much more info if needed 🙂
Do you have the request ID for that request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
req_dri3JLnIoo35rj
do u see how "subscription_items" has a susbcription? And that price id is on a recurring price too.
i'm very confused 
Ahhh, okay. I think what's happening is the Stripe API thinks you're applying the coupon to the Invoice, instead of the Subscription.
From our docs (https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-coupon) on the Upcoming Invoice API:
The code of the coupon to apply. If subscription or subscription_items is provided, the invoice returned will preview updating or creating a subscription with that coupon. Otherwise, it will preview applying that coupon to the customer for the next upcoming invoice from among the customer’s subscriptions. The invoice can be previewed without a coupon by passing this value as an empty string.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what's the object structure here to apply to the sub then?
You applied a discount instead of a coupon which (also from our docs) means: "This only works for coupons directly applied to the invoice."
also, that makes total sense