Skip to main content

Handling Rounding Errors in Usage Reports To Stripe


The current rounding approach is causing discrepancies in the total usage reported to Stripe — it can be either over or under the actual value.

Since the endpoint expects integer values, rounding is necessary.
One solution is to always round down, so any minor discrepancy is absorbed by Aladia.

We should apply this fix consistently across all usage types: AI, storage, and streaming.

Domain
Payment
Action
fix
Department
Backend
Status: Completed

Log in to comment and vote

No comments yet

Be the first to share your thoughts.