How do you track affiliates for usage-based SaaS billing?
Short answer: Capture the referral when the customer signs up, persist an auditable customer-to-partner relationship, and calculate commissions only from qualifying paid billing transactions. Usage events are inputs to billing, not necessarily paid revenue. Your affiliate ledger needs to distinguish a meter reading, a finalized invoice, an actual collection, and a later credit or refund.
A customer might use 40,000 API calls in a month but pay nothing because of free credits. Another may pay a $99 base fee plus $180 in overage. Paying on the count of API calls alone would misstate earnings. For the wider subscription model, see our recurring commission tracking guide.
Choose which usage revenue is commissionable
Before selecting software, decide whether the program rewards only the fixed subscription, only paid variable usage, or both. A flat monthly plan with an overage line is not the same as a pure pay-as-you-go contract. The customer may have prepaid credits, minimum commitments, discounts or negotiated enterprise rates. The agreement must state whether taxes, pass-through fees, credits, one-time setup charges and negative adjustments are excluded.
| Billing component | Recommended treatment to evaluate | Reason |
|---|---|---|
| Base recurring subscription | Commission if eligible and collected | Predictable qualifying revenue |
| Metered overage | Commission only if policy includes usage and the invoice is paid | Raw meter totals are not cash |
| Prepaid usage credit | Choose a single credit purchase or redemption recognition point | Prevents paying twice |
| Promotional credit or free tier | Exclude non-collected value under a net-revenue policy | No eligible cash collected |
| Refund or credit note | Adjust the related commission | Reconciles to reduced proceeds |
Stripe metered billing: separate usage from invoice collection
Stripe documents usage-based billing models and their billing meters. Its current usage-based billing overview describes Metronome as the recommended starting point for new usage-based integrations and the Meters API as a supported lower-level option for existing integrations. Product selection and compatibility should be checked against the exact Stripe account and API version; do not assume an affiliate plugin automatically supports every metering path.
Use the billing provider as the source of truth for payment status. Stripe's subscription webhook reference distinguishes invoice.created, invoice.finalized, invoice.paid and invoice.payment_failed. A metered invoice can be created and finalized without the customer successfully paying it. Commission approval should therefore wait for the documented payment condition, plus any refund review period.
Paddle usage-based billing: check the exact implementation
Paddle's native usage-based billing guide describes an early-access beta with usage balances and meters. Its AI companies guide also describes third-party metering and adding usage as custom line items to an upcoming transaction. These are not interchangeable integrations. If your affiliate tool claims Paddle compatibility, verify that it tracks the specific paid transaction and line items in your implementation rather than only a subscription-created event.
Do not claim a vendor's Paddle Billing support implies access to Paddle's beta metering feature. Ask whether the affiliate system can receive paid transaction IDs, the correct currency and the net eligible line-item amounts.
Build an event-safe commission pipeline
- Attribution: record the partner key, source, consent context and timestamp when a qualified visitor or account is referred.
- Identity: map that attribution to a stable internal account ID and the billing provider customer ID. Keep the relationship when the customer upgrades or changes plans.
- Billing: record subscription, invoice, transaction and line-item identifiers. Store currency and amounts as minor units or precise decimals.
- Eligibility: apply the written rule to paid eligible line items. Do not pay from a meter event or an unpaid invoice.
- Idempotency: enforce a unique reward key such as program, partner, invoice line and rule version. Replayed webhooks must not create duplicate rewards.
- Review: hold the calculated reward through the stated refund or fraud window.
- Reconciliation: link refunds, credit notes and chargebacks back to the original reward instead of deleting history.
Keep an immutable event log and a separate balance ledger. A late-arriving usage adjustment may change a subsequent invoice rather than the original one; the finance team needs to see which billing transaction actually settled.
Worked example: base plan, overage and credits
Assume a referred account has a $100 base plan and $300 of measured overage. It receives a $50 discount and a $100 promotional usage credit, so the eligible amount actually collected is $250. Under a hypothetical 15% commission on eligible collected subscription and usage revenue, the reward candidate is $37.50. If the policy covers only the base plan and the discount is allocated to that plan, the result is different. Document discount allocation before calculating.
Now suppose the customer receives a $40 refund of an eligible charge. At the same 15% rate, the linked commission adjustment is $6, leaving $31.50 if all other amounts remain eligible. These are illustrative program rules, not Stripe or Paddle default commissions. For reversals, read our commission clawback guide.
Questions to ask affiliate software vendors
- Can the integration distinguish metered usage events from collected subscription invoices?
- Can it exclude taxes, credits, setup fees and non-commissionable invoice lines?
- Does it preserve customer attribution across upgrades, multiple prices and usage plans?
- Can it calculate different rates for base recurring fees and variable usage?
- How are late adjustments, partial refunds and replayed webhooks handled?
- Can finance export a reward-to-invoice audit trail with original currency?
- Does the claimed integration support the exact Stripe or Paddle billing product and version?
Compare these answers against our affiliate tracking API checklist and multiple billing provider guide. A generic integration logo does not establish metered-commission compatibility.
Frequently asked questions
Should affiliates earn on every API call?
Usually not under a revenue-share contract. Metered usage is a billing input. Calculate on eligible paid charges unless the agreement explicitly defines a different metric.
What if a customer prepays for usage credits?
Choose whether the credit purchase or later consumption triggers the reward. Never commission both for the same underlying value.
Does a failed usage invoice erase the original referral?
No. Preserve attribution while withholding a commission until the payment and eligibility rules are met.
Sources and editorial disclosure
Sources checked 2 November 2026: Stripe usage-based billing, Stripe subscription events, and Paddle usage-based billing. SaaSAlways provides documentation-based analysis and hypothetical calculations; no live vendor account testing or guaranteed feature compatibility is claimed. Consult the provider and your own agreement before implementation.