#HNk - Subscription MRR
1 messages · Page 1 of 1 (latest)
HNk - Subscription MRR
Are you looking for the gross MRR here? You should be able to calculate that with each item in the subscriptions's unit_amount * quantity https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price-unit_amount
https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Did I understand your question correctly?
Hi @crisp robin ! Thank you for your quick response!
Yes, I'm looking for gross MRR, and using Postman I can find these fields you mentioned.
But my issue through this way is that I can find "quantity", but "unit_amount" is always null.
Any idea why? Do you think this is an issue with my account?
Probably not an account issue. Can you send me the ID of the subscription sub_123 that you are looking at?
Thank you! Will look in to that subscription in a moment
Thank you very much!
Oh it looks like that is a tiered price. Can you see the tiers that you set in the tiers property for the items on that subscription? https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price-tiers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@crisp robin , I've added an expand to item "tiers" but still didn't find its amount...
Could you guide me, please?
How should I put this parameter to be expanded at Postman? Sorry for noob question...
Are you getting an error when trying to put in in the expand parameter?
I am not immediately sure. I will try this out myself....
Try passing in items.data.price.tiers
Great to hear! Is that enough to calculate it on your end or do you have further questions on this?