#HNk - Subscription MRR

1 messages · Page 1 of 1 (latest)

crisp robin
#

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

#

Did I understand your question correctly?

supple shale
#

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?

crisp robin
#

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

supple shale
#

Thank you very much!

crisp robin
supple shale
#

@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...

crisp robin
#

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....

supple shale
crisp robin
#

Try passing in items.data.price.tiers

supple shale
#

Thank you very much!!!

#

Now it worked!!!

crisp robin
#

Great to hear! Is that enough to calculate it on your end or do you have further questions on this?