Skip to main content
objectUsageMeasurementCredit

Fields

consumed
Float!

The credits this single reportUsage call deducted, in credit units — scoped to this one measurement (0 for idempotency duplicates). Contrast currentUsage, which is the wallet-wide running total shared across all features on this currency. Use it to reconcile expected per-call deductions.

currencyId
String!

The credit currency identifier

currentUsage
Float!

The wallet's total consumed credits for this currency (optimistic — includes not-yet-reconciled usage), shared across every feature that draws on the currency. This is the running balance, not this call's deduction — see consumed for that.

timestamp
DateTime!

The grant-version timestamp of this balance, used by the SDK for last-write-wins reconciliation

usageLimit
Float!

The total credits granted

usagePeriodEnd
DateTime

End of the current credit grant period (when recurring credits reset), if applicable