Skip to content
onchain-engineeringstablecoin-billing
Joshua C.

Revoking an Onchain USDC Billing Cap: What Actually Changes?

If a customer revokes an ERC-20 approval for a recurring USDC payment cap before the period ends, what happens? A practical, worked-through explanation.

Revoking an Onchain USDC Billing Cap: What Actually Changes?

Onchain recurring billing with stablecoins is built on ERC-20 approvals. Customers approve a capped amount, which lets a merchant contract pull USDC for a set period. Sometimes, a customer may revoke this approval before the billing period ends. What actually happens in this case? How should merchants and engineers handle it?

The Mechanics: ERC-20 Approval and Revoke

ERC-20 tokens use the approve function to set an allowance for a spender. In recurring billing, this allowance is the billing cap per period. The customer signs a transaction that authorizes a smart contract to spend up to N USDC. If the customer wants to cut off this access, they submit another transaction, either setting the allowance to zero or to a lower amount.

The revoke is final as soon as it is confirmed onchain. The smart contract cannot pull any more funds beyond the new (possibly zero) allowance. There are no pending or queued transactions for the merchant to rely on. This is not a card network hold or pre-authorization. The blockchain state is always up-to-date and public.

What Actually Breaks: Payment Collection Mid-Period

Suppose a SaaS customer has approved a 100 USDC monthly billing cap. The subscription charges 25 USDC every week. The contract is set up to pull each installment as it comes due. If the customer revokes the approval after week two, what happens?

  • The contract has already pulled 50 USDC (two installments).
  • The merchant attempts to collect the third payment.
  • If the approval is now zero, the transaction reverts. No funds move. The merchant cannot collect the remaining installments this period.

There is no fallback. The merchant cannot force collection, cannot draw down the remaining cap, and cannot retroactively claim what the customer originally approved.

Example: Step-by-Step with Real Figures

Let’s say the customer grants an approval of 100 USDC for the period.

Timeline:

  1. Day 0: Customer approves 100 USDC for the contract.
  2. Day 7: Merchant pulls 25 USDC (remaining allowance: 75 USDC).
  3. Day 14: Merchant pulls 25 USDC (remaining allowance: 50 USDC).
  4. Day 15: Customer revokes approval (sets allowance to zero).
  5. Day 21: Merchant tries to pull 25 USDC.

Result:

// Solidity snippet
IERC20(usdc).transferFrom(customer, merchant, 25e6); // reverts with 'insufficient allowance'

The call to transferFrom fails. The merchant receives nothing for week three. If this charge triggers a webhook or an internal event, it should be marked as failed, not pending.

Merchant Response: Detection and Communication

Because ERC-20 approvals are public, a merchant or billing platform can detect revoked or reduced allowances. Merchants should not retry indefinitely. If the allowance is zero, retries will always fail.

Instead, a merchant can notify the customer. This could be an email, an in-app message, or a webhook to the operator. The message should state that collection failed due to an approval change, and the customer must re-approve to continue service. No further charges can be attempted until a new cap is signed onchain.

This is different from a failed card payment, where retries might make sense. Onchain, the smart contract cannot override the customer’s change.

Handling Partial Payment for the Period

In our example, the merchant has already collected 50 USDC. The customer may have received two weeks of service. The merchant can credit the customer for only what was paid, or suspend service until the approval is restored. The onchain record is clear: only settled transactions count. There is no dispute or chargeback.

Impact on Usage-Based or Variable Billing

When billing is metered or variable, the risk is higher. If the customer revokes the cap before usage is reported, the merchant cannot collect for that period’s usage. For example, if usage is tallied at the end of the month:

  • Cap is approved for 200 USDC.
  • Usage is 150 USDC, but the customer revokes the approval before the merchant collects.
  • The merchant receives nothing. The customer keeps service rendered up to that point, unless access is gated by payment.

This pattern is common in API services or infrastructure providers. The merchant can minimize exposure by collecting more frequently, or by gating service until payment is confirmed.

Customer Perspective: Why Revoke Early?

A customer might revoke an approval if they want to:

  • Cancel the subscription mid-period.
  • Limit risk if they are concerned about the merchant or platform.
  • Manage wallet security after a device change or compromise.

This is a right customers retain with onchain billing. It is visible and immediate. There is no hidden or delayed effect.

How We Handle Revokes at Reclack

We monitor ERC-20 approvals for every active subscription. If a customer revokes or reduces their cap before the period ends, our system detects this at the next scheduled collection. We do not retry failed pulls when the allowance is zero. Instead, we surface a clear status in the merchant dashboard and trigger a webhook event. Merchants can notify customers and prompt for a new approval if service should continue. Only settled transactions count as paid.

Read more about non-custodial USDC billing at reclack.com.

onchain-engineeringstablecoin-billing