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

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🛠️

Bug & Fixes

Tags

High Priority

Date

10 months ago

Author

Abdulmelik Ambaw

Subscribe to post

Get notified by email when there are changes.