Determine which credit grant a purchase consumes before stating what balance remains after an expiry. A total opening balance and a known charge are insufficient when grants differ in eligibility, effective time, expiration or priority. The same purchase can leave different usable remnants under different allocation rules.
Build a grant-level waterfall that preserves each credit's identity. Keep this separate from calculating a workload's credit cost, evaluating a headline award or treating a credit as additional cash. Here the eligible charge is already known; the question is which balances it actually draws down.
Identify grants before adding their amounts
Record each grant's identifier, amount, issue time, effective time, expiry, applicable charges and priority. Distinguish issued balance from usable balance. A future-effective or ineligible grant cannot automatically settle the current charge.
Stripe's billing-credit documentation specifies application rules and a priority hierarchy for multiple grants. It lists explicit priority first, followed by expiration and further tie-breakers. It also describes invoice-finalization behavior. That is a particular provider contract, not evidence that every system uses simple earliest-expiry-first or first-issued-first allocation.
The fictional alternatives below isolate the effect of priority. They do not describe Stripe's complete hierarchy or authorize a customer to select an allocation that the platform does not support.
Freeze a complete two-grant example
Assume older grant Y contains USD 20 and expires at the start of day ten. Newer grant X contains USD 30 and expires at the start of day five. Both are already effective and fully eligible for the same USD 25 purchase on day four.
Use day labels as explicit positions in this invented timeline, not relative statements about an actual account. There are no other purchases, credits, fees, refunds or adjustments. Expiration removes any unused balance of the affected grant at its stated boundary.
The opening total is USD 50. Immediately after the purchase, USD 25 remains in either alternative. That equal aggregate hides a difference in which grant holds the remaining value and whether it survives day five.
Calculate issue-order allocation
Under fictional Policy I, consume the older issued grant first. The purchase draws all USD 20 from Y, then USD 5 from X. Y is depleted, while X retains USD 25.
At the start of day five, X's remaining USD 25 expires. The usable total becomes zero. Y cannot contribute later value because its balance was already consumed, even though its expiry date is later.
| Policy I Stage | Y Balance | X Balance | Usable Total |
|---|---|---|---|
| Before purchase | USD 20 | USD 30 | USD 50 |
| After USD 25 purchase | USD 0 | USD 25 | USD 25 |
| After X expires | USD 0 | USD 0 | USD 0 |
The cash or product value of the purchase is not being estimated here. The table records only the declared grant drawdown and expiration events.
Calculate earliest-expiry allocation
Under fictional Policy E, consume the earliest-expiring eligible grant first. The whole USD 25 purchase comes from X. X retains USD 5 and Y retains USD 20.
At the start of day five, X's USD 5 expires. Y's USD 20 remains usable under the stated assumptions until its own expiration or another eligible draw. The post-expiry total is USD 20.
| Policy E Stage | Y Balance | X Balance | Usable Total |
|---|---|---|---|
| Before purchase | USD 20 | USD 30 | USD 50 |
| After USD 25 purchase | USD 20 | USD 5 | USD 25 |
| After X expires | USD 20 | USD 0 | USD 20 |
The difference after day five is USD 20, despite identical opening totals, purchase amounts and expiration dates. It comes from the allocation operator, not from a changed amount of work.
Do not infer the policy from the preferred result
Earliest-expiry allocation preserves more value in this fixture. That does not establish a right to use it. The actual provider or agreement determines priority, including any restrictions and tie-breakers.
If an answer promises USD 20 remaining after day five while the source specifies Policy I, it has substituted a different policy. If the source supplies no allocation rule, the balance is unresolved between the stated possibilities rather than verified by whichever forecast looks prudent.
Use the commercial claim ledger to connect the promise to the actual grant terms. An advertised credit amount is not sufficient evidence for a particular drawdown sequence.
Apply eligibility before priority
Suppose a real grant covers only a named product or charge category. Exclude it from the candidate set for ineligible charges before applying its priority. A high-priority grant cannot settle a charge outside its documented scope.
Likewise, preserve future-effective and expired states. Do not use a balance merely because it appears in an account list. A grant's visible existence and its current ability to settle the charge are different facts.
The workload model can derive how much a job consumes when the conversion rules are known. This waterfall begins afterward and allocates that consumption among eligible grants; it does not change the workload conversion to make a balance fit.
Preserve application time and independent invoices
A grant can be usable when work occurs but unavailable when the actual application event happens, depending on the documented system. Record which event controls eligibility instead of assuming issuance, usage and settlement share one timestamp.
Stripe's credit documentation explains that invoices can finalize independently and that finalization order is not guaranteed. Do not silently transfer a deterministic purchase sequence from the fictional fixture into a real multi-invoice account.
Use the effective-interval review to establish whether a right or grant is active at the controlling instant. Then retain the separate allocation calculation. Knowing a grant is active does not determine which of several active grants is consumed first.
Keep corrections and refunds distinct
A refund, voided invoice or correction may have a provider-specific effect on applied credits. Do not assume it creates cash, restores an expired grant or recreates the same usable balance. Verify the actual documented operation.
The teaching example has no reversal event. Adding one requires a new ledger row with its own evidence. Rewriting the original purchase as though it never happened would erase the history needed to explain the remaining grant balances.
Release a grant-level reconciliation
Retain the charge identity, eligible grants, priority rule, per-grant debits, expiration events and usable closing balance. Have another reviewer reconcile opening value to consumption, expiration and remaining value in each branch.
Use the source worksheet for the actual hierarchy and timing rules. A faithful answer should identify the controlling policy or state that it remains unknown.
The useful conclusion explains why Policy I leaves zero and Policy E leaves USD 20 after the same expiry. A single combined credit balance cannot establish that result without its grant-level history.
