Skip to main content
Question

Why Metrics in v2 API MRR and Revenue are whole numbers

  • 28 August 2024
  • 1 reply
  • 10 views

Forum|alt.badge.img+3

The Overview metrics in v2 API MRR and Revenue are returning as whole numbers.
This should be in double so that the values can be more precise.

Example, real MRR is 16.82 but the API returns as 16 which is inaccurate.

This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • August 30, 2024

@classycircle Currently our API doesn’t make any guarantees whether it’ll return a double or an integer. For now we return integers but in the future we may change that to better accommodate the underlying data (for example, for smaller amounts we might use double while for larger amounts we round to the nearest integer.)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings