Skip to content
recurring-billingstablecoin
Joshua C.

How to Change an Active USDC Subscription Cap Onchain

Learn how to update a recurring USDC billing cap for an active subscription onchain, covering the approval mechanics, user experience, and webhook-driven sync.

How to Change an Active USDC Subscription Cap Onchain

Recurring USDC subscriptions with capped approvals are a safer way to automate SaaS billing in crypto. But requirements change. A customer upgrades, usage increases, or a pricing plan shifts. Sometimes, you need to raise or lower the recurring billing cap for an active onchain subscription. This guide shows how to handle that scenario end-to-end: from triggering the new approval to syncing the result.

Understanding Recurring Billing Caps Onchain

The cap is the maximum USDC amount a customer’s wallet has approved for recurring pulls per period. This cap is visible and explicit. The customer signs an ERC-20 approval transaction for your settlement address and the specified amount. Each renewal, your billing logic can transfer up to that amount in USDC. If you try to collect more, the transfer fails onchain.

The ERC-20 approval is not unlimited. The customer can revoke or modify it at any time. If your billing needs change, you cannot move funds above the cap until the customer signs a new transaction with the updated allowance.

When to Update a Recurring Billing Cap

  • The customer upgrades to a higher plan and needs a higher cap.
  • The customer wants to reduce exposure and lowers their cap.
  • You switch from flat to metered or usage-based pricing.
  • Regulatory or business requirements dictate new limits on recurring charges.

You cannot increase the cap unilaterally. The customer must always sign a new approval with the new limit. Any workflow must surface the new limit and prompt for a fresh onchain signature.

The Update Flow: Step By Step

1. Detect the Need for a Cap Change

This step happens in your business logic. For example, the user clicks “Upgrade Plan” or usage exceeds the current cap. Your backend determines the new required cap and triggers an update flow.

2. Generate a New Approval Request

You need to prompt the user to sign a new ERC-20 approval for the new cap. This can be done in several ways:

  • Hosted checkout or approval page
  • An embeddable widget
  • A deep link to a wallet
  • A custom UI built on Reclack’s API

The core task: present the new cap and settlement address, and generate the correct approval transaction for the user to sign.

Example: Customer Upgrades From $100 to $400 Cap

Suppose Alice is on a $100/month subscription. She upgrades to an enterprise plan at $400/month. You must request a new cap of 400 USDC for the subscription’s settlement address.

API Example:

POST /v1/subscriptions/{subscription_id}/cap-update
Content-Type: application/json
{
  "new_cap_usdc": 400
}

This returns a new approval payload or hosted link, which you show to the user for signature. The payload contains: - The new cap (400 USDC) - The settlement address (your contract or account) - The ERC-20 contract address for USDC - The chain (e.g. Base, Polygon)

3. Customer Signs the New Cap Onchain

The user signs the approval transaction. This sets the ERC-20 allowance for your settlement address to the new cap. The wallet shows the cap and prompts for confirmation. No hidden or unlimited approvals are possible.

If the customer is lowering the cap, the new approval reduces your maximum pull. If raising it, you cannot transfer above the old cap until the new approval is mined.

4. Confirm the Approval

Once the transaction confirms onchain, your backend (or Reclack, if using its API/webhooks) receives an event. You now have the updated allowance, and the next billing cycle can proceed up to the new cap.

If the transaction fails or is rejected, the old cap stays in force. No update happens.

5. Sync and Record the Cap Change

You must store the new cap and transaction hash in your system. This is vital for reconciling billing attempts and customer support. If using Reclack, webhook events will deliver the cap update status, including the new limit and block confirmation.

Handling Edge Cases

Customer Never Signs the New Approval

If the customer does not complete the signature, the previous cap stays active. Your system should: - Retry the prompt at billing time - Notify the user of the incomplete upgrade - Allow fallback to the old plan (if relevant)

Customer Tries to Lower Cap Below Outstanding Usage

If you meter usage and a customer tries to lower the cap below accrued charges, block the downgrade or collect the outstanding amount before allowing the change. Do not allow caps that let customers underpay for usage already delivered.

Revocation or Manual Cap Changes

If a customer revokes the approval or manually sets a lower cap via their wallet, your billing attempts will fail onchain. Listen for failed transfer events and notify the customer. Merchants must never attempt to transfer above the current allowance.

Full Example: Cap Increase for a SaaS Account

Let’s walk through a real scenario:

  • Alice is billed 100 USDC monthly. She wants to upgrade to a 400 USDC/month plan on Polygon.
  • Your backend receives the upgrade event.
  • You call Reclack’s API to generate a new cap approval request for 400 USDC.
  • Reclack returns a hosted approval link or a JSON payload with the necessary fields.
  • You send Alice the link. She opens it in her wallet, sees the new cap, and signs the transaction. Her wallet submits an ERC-20 approval for 400 USDC to your Polygon billing address.
  • Reclack emits a webhook event confirming the new cap.
  • Your system updates Alice’s record: cap is now 400 USDC, effective from block N.
  • Billing continues at the new rate next cycle.

Updating Caps Programmatically: API and Webhook Patterns

If you automate billing with Reclack, use the cap update API. You do not need to write your own ERC-20 approval logic. The update process is: 1. Call the cap update endpoint with the new limit and subscription ID. 2. Present the returned approval link or payload to the user. 3. Wait for confirmation via webhook or poll for onchain status. 4. Update your internal records.

If you build your own integration, ensure you: - Always present the new cap and address to the user for signature - Never attempt to transfer more than the approved amount - Store the new cap and approval tx hash for each subscription - Watch for failed payment attempts and expired approvals

Security and UX Considerations

  • Never request unlimited approvals. All caps must be explicit and visible to the customer.
  • Use clear, branded signing prompts so customers know what they are approving.
  • Always provide a path to lower or revoke a cap.
  • Notify users if their cap is insufficient for upcoming charges, and prompt for an update before the next cycle.

What Happens On Failure?

  • If the new approval is not signed, the previous cap remains.
  • If the customer revokes their approval, billing halts until a new cap is set.
  • If a transfer fails due to insufficient cap, notify both your ops team and the user.
  • No one, including Reclack, can reverse a settled transaction. All flows must handle payment finality.

We designed Reclack to make cap updates predictable, visible and non-custodial. Our API and webhooks surface every cap change, and our hosted checkout flows always show the new cap for explicit approval. To learn more or explore live flows, start with https://reclack.com.

recurring-billingstablecoin