#Dharunkumar Natarajan
1 messages · Page 1 of 1 (latest)
subscription_id : sub_1NJhSkG3LDN6ekHVXLS1k08C
coupon_id: 0CEJW8cM
The price object
It will have the full price on it
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 if the subscription is prorated for the first month, I need to get the prorated amount before the discount from the coupon
Don't think there's a straightforward way to do that
Do you have an example of such a prorated invoice so I can poke around and take a look?
That's a $0 invoice before the discount though
Do you have a different one?
Oh maybe I'm looking at it wrong one sec
Yeah was looking at it wrong
But in that scenario, there's not a way to see the prorated price before the discount
hmm, I use the prorated amount to calculate prorated access to my product, not sure how I can work around this issue
Let me ask a colleague to confirm
So my colleague said that you could use the upcoming invoice endpoint to get this info: https://stripe.com/docs/api/invoices/upcoming
That allows you to pass data to see what an invoice would look like given the data passed in
So you could pass in everything but the discount to see what the pre-discount amount would be