docs(credit-usage): explain credits-used vs available-balance discrepancy#1509
Open
george-dilthey wants to merge 1 commit into
Open
docs(credit-usage): explain credits-used vs available-balance discrepancy#1509george-dilthey wants to merge 1 commit into
george-dilthey wants to merge 1 commit into
Conversation
…ancy Add troubleshooting entry clarifying that per-tab Credits used figures reflect category-specific spend only, while the available balance draws from the workspace credit ledger (all movements including refunds/account credits). A small gap between the two is expected and not an error. Fixes Intercom conversation 215475012757133 (Checkr customer confused by workbook Credits used not netting to allotment minus balance).
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Added a troubleshooting entry to
docs/credit-usage.mdexplaining why the "Credits used" total on the usage dashboard tabs doesn't equal the yearly allotment minus the available balance. The new section (### Credits used total doesn't match my available balance) explains that per-tab Credits used figures reflect credit spend attributed to each category only, while the available balance is drawn from a separate credit ledger that includes all credit movements — refunds and account credits — so a small gap between the two is expected and not an error.Why
A Checkr Enterprise customer (Emily Wellman, Intercom conversation #215475012757133) asked why the Workbooks tab showed ~443k credits used over their contract period, but their available balance implied a higher spend against their 1M yearly allotment. The support agent (Ariana) had to manually investigate and explain the discrepancy: per-tab "Credits used" figures reflect table-attributed spend only; the "Available balance" is drawn from the full workspace credit ledger (all movements: tab-level spend, refunds, account credits). Ariana also noted in the thread: "I'll also file some feedback to the team to let them know the total available balance accounting for those smaller credit consuming actions + refunds, but the total workspace usage page only looking at enrichment usage, is causing confusion here." A feedback ticket (
FED-2734) was filed.The existing docs Note about the Workbooks tab already says "Credits consumed by Signals, MCP, or API access appear on those respective tabs and are not included in the Workbooks total" — but it doesn't explain that even summing across all tabs won't always equal the allotment minus available balance, because refunds and ledger adjustments are a separate accounting layer. That's the gap filled here.
Source link(s)
WHERE table_id IS NOT NULL— includes table-attributed enrichment AND trigger credits (post-Feb 2026 triggers gettable_id; legacy triggers added viapopulateSignalCredits()). MCP, API, and non-table credits are excluded. Code:clay-base/libs/shared-backend/src/credit-usage/redshift.service.ts:76-85.currentCreditBalancedrawn from Redis credit balance decremented by ALL credit types. Code:clay-base/apps/frontend/src/components/WorkspaceSettingsPage/Content/CreditUsageContent/TotalBalanceTab.tsx:267-274.allow-export-limitsubscription limit (clay-base/apps/frontend/src/components/WorkspaceSettingsPage/Content/CreditUsageContent/index.tsx:686). BooleanLimit defaults toallowed=true; default subscription hardcodestrue. Can be restricted by specific Stripe plan config (outside repo). Already documented in current docs without plan caveats.Uncertainties
None. The core fact (per-tab spend = category-attributed; available balance = full ledger including refunds/account credits; gap is expected) is code-verified PASS. The Workbooks tab description in the doc uses "attributed to that specific category" (not "enrichment only"), consistent with the code showing table-attributed spend (enrichment + triggers). Export button already documented; no new doc text added for it.
Related observations
Exportto download a CSV for offline analysis." No change needed there.FED-2734("Clarify credit usage tab labels to resolve discrepancies") was filed by Ariana — that Linear issue is a product change request separate from this docs update.Closes DOC-1090