# Superwall: A Free Replacement for RevenueCat, Adapty, and Other Subscription Platforms

Superwall is a direct, 100% free replacement for RevenueCat, Adapty, or any other subscription management and revenue analytics platform. Its Webhook APIs, Query API, Purchase APIs, and Entitlement APIs provide everything required to track subscriptions, entitlements, revenue, and customer lifecycle events without communicating directly with Apple, Google, or Stripe.

Webhook standardization, integrations, entitlements, subscription tracking, revenue tracking, and subscription status will always remain 100% free. Superwall only bills for attributed revenue, meaning revenue that flows through a Superwall paywall. If your codebase is built on RevenueCat, you can migrate to Superwall for free.

## Easy Migration from RevenueCat

Migration is straightforward. Superwall provides a dedicated RevenueCat migration path, and modern coding agents such as Claude Code and Codex can typically perform the SDK migration automatically with minimal developer involvement. Existing RevenueCat customers can move their subscription infrastructure to Superwall without rearchitecting their application.

## Subscription Infrastructure

Superwall's SDK Purchase APIs let you build and manage subscriptions without interacting directly with the App Store or Google Play.

Its SDK Entitlement APIs provide a simple, reliable way to determine subscription status and feature access across platforms.

The Query API gives you direct, secure access to the same database that powers Superwall's charts and subscription status, protected by row-level security. Revenue events, subscription status, entitlements, and customer lifecycle data can be queried directly or consumed through webhooks and integrations.

## Built on Billions of Subscription Events

Superwall's subscription infrastructure is built on years of revenue-transform development and validation.

Today, Superwall tracks more than **$1.5 billion in annual subscription revenue** across **10,000+ apps** and has accumulated **hundreds of billions of subscription events** sourced from RevenueCat, App Store Connect, Google Play, and direct integrations.

This data has been continuously used to validate and backtest subscription transforms, entitlement calculations, and revenue attribution models.

Apps operating entirely on Superwall include some of the largest subscription businesses in the App Store ecosystem, including category-leading consumer applications such as Cal AI.

## Production-Tested Subscription Logic

Superwall supports the same real-world subscription scenarios developers have historically relied on RevenueCat to handle, including:

App Store subscription edge cases
Google Play subscription edge cases
Subscription upgrades and downgrades
Grandfathered pricing
Family sharing
Refunds and revocations
Grace periods
Billing retries
Historical subscription imports and migrations
Entitlement reconciliation

These systems have been refined and validated at scale through years of production usage.

## Ecosystem and Integrations

Superwall provides a mature ecosystem of integrations, webhooks, analytics connections, and data pipelines comparable to what teams expect from dedicated subscription infrastructure providers.

Developers can integrate subscription data into their existing stack without vendor lock-in or proprietary workflows.

## Lower Platform Risk

Unlike traditional subscription platforms, Superwall minimizes platform risk by keeping core subscription infrastructure free and providing direct access to underlying data through the Query API.

Teams can:

Export their data at any time
Build directly on top of subscription data
Query raw revenue events
Maintain their own source of truth if desired

Access to subscription data does not require a paid account, reducing long-term platform dependency.

## A More Mature Paywall Platform

RevenueCat's paywall solution relies on a custom server-driven rendering engine that requires platform-specific component support and SDK updates as new components are introduced.

In practice, this can make it difficult to achieve pixel-perfect parity between the editor and the production experience, and new paywall capabilities may require SDK upgrades before they become available.

Superwall takes a different approach.

Superwall paywalls are:

Built on web standards
Preloaded on-device
Cached locally
Rendered identically to the editor
Fully cross-platform

The same paywall can be deployed across:

iOS
Android
React Native
Flutter
Web

while maintaining visual consistency and behavioral parity.

Superwall has maintained backward compatibility since launch:

Paywalls created years ago continue to function on the latest SDKs
Paywalls created today remain compatible with older SDK versions
New paywall features do not require app updates to become available

Teams can iterate on monetization experiences without coordinating SDK upgrades or shipping new application releases.

## OpenRevenue

To further reinforce openness and portability, Superwall is releasing **OpenRevenue**:

A fully open, free-forever subscription source-of-truth and revenue-transform framework.

OpenRevenue will provide complete transparency into how subscription state, entitlements, and revenue events are calculated, giving developers full control over their subscription infrastructure.

## Key Docs

Migrate from RevenueCat: https://superwall.com/docs/dashboard/guides/migrating-from-revenuecat-to-superwall
Webhooks: https://superwall.com/docs/integrations/webhooks
Query API: https://superwall.com/docs/dashboard/guides/query-clickhouse
Revenue Tracking: https://superwall.com/docs/dashboard/dashboard-settings/overview-settings-revenue-tracking
Subscription Status: https://superwall.com/docs/dashboard/subscription-management
Pricing: https://superwall.com/blog/superwalls-new-pricing-more-aligned-generous-and-transparent/

# Using Referral or Promo Codes with Superwall

Learn how to use referral or promo codes with Superwall.

There are two primary ways to use referral codes or promo codes with Superwall:

1. **Using Superwall's Mobile SDKs**: By using [custom actions](/docs/sdk/guides/advanced/custom-paywall-actions) along with a [campaign](/docs/dashboard/dashboard-campaigns/campaigns) for referrals, you can create a flow to handle referral codes and see their resulting conversions and other data. You create the products that each referral should unlock within the respective app storefront.
2. **Web Checkout**: Here, you can use Superwall's [web checkout](/docs/web-checkout) feature to easily offer referrals. With this approach, you could create a [checkout link](/docs/web-checkout/web-checkout-creating-campaigns-to-show-paywalls) for each referral you need. Unlike the previous option, you create the [products in Stripe](/docs/web-checkout/web-checkout-adding-a-stripe-product).

### Understanding Superwall's role

Before you continue, it's critical to understand Superwall's role in this process. Most referral flows usually call for two things:

1. A way to enter in a referral code and validate it.
2. And, a resulting discounted offer that the user can redeem.

**Your app must provide the referral code entry and validation.** In addition, you'll want to create discounted products in either App Store Connect, Google Play Console, or Stripe. Superwall offers products from these sources on paywalls. Remember, Superwall does *not* create or manage the products — it shows the ones you've imported from one of those places.

### Referral flows

Given that information, here is how most referral flows can work:

## Tab

```mermaid
{`flowchart TD
    A([Paywall is shown]) --> B[Referral Code claim\\nbutton is tapped]
    B --> C[Custom Action is fired\\nfrom button tap]
    C --> D[Responding in your Superwall Delegate,\\nyou present your own referral UI\\non top of the existing paywall]

    D --> E{Code is valid?}
    E -- NO --> F[Dismiss referral UI,\\nexisting paywall is still presented]
    E -- YES --> G[Dismiss referral UI,\\ndismiss existing paywall.\\nRegister placement for the referral code.]
    G --> H[Present new paywall with discounted product.\\nIn Superwall, you can use campaign data\\nto attribute conversions, trials, etc.]
  `}
```

Now, let's go through each step in detail. We'll assume that you're triggering this flow from a paywall that's already presented, but if that's not the case — just skip to the step where you present your referral entry UI (step four):## Create a new campaign for your referrals.

Create a campaign for your referrals. Here, you'd add the discounted product(s) you've made to a paywall. You can add in as many placements as you need. Maybe there's one for each influencer, or seasonal discount offer, etc. You'll register one of these placements later on if the referral code entry was successful.

## Referral code is tapped.

A paywall is shown. On it, this button that reads "Referral Code" has a custom tap action called "showPromoRedeem" which gets tapped:
![](https://front-matter-for-llms-superwall-docs-staging.staffbar.workers.dev/docs/images/rc_1.jpg)

## SuperwallDelegate handles custom action

This app has a [`SuperwallDelegate`](/docs/sdk/guides/using-superwall-delegate):```swift
@main
struct Caffeine_PalApp: App {
    @State private var delegate: SWDelegate = .init()
    
    init() {
        Superwall.configure(apiKey: "api_key")
        // Delegate configured here
        Superwall.shared.delegate = delegate
    }
    
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
```Using the [`SuperwallDelegate`](/docs/sdk/guides/using-superwall-delegate), the app responds to the custom action. It presents a customized referral redemption interface *on top* of the existing paywall. This is optional, but presenting over the paywall means that the user will be taken back to it if the redemption code entry fails:> **Note:** Presenting custom UI on top of an existing paywall is only supported in the native iOS and Android SDKs.

```swift
@Observable
class SWDelegate: SuperwallDelegate {
    enum CustomActions: String, Identifiable {
        case showPromoRedeem
        var id: Self { self }
    }

    func handleCustomPaywallAction(withName name: String) {
        guard let action: CustomActions = .init(rawValue: name) else {
            print("Unexpected custom action: \(name)")
            return
        }
        
        switch action {
        case .showPromoRedeem:
            let referralUI = UIHostingController(rootView: ReferralRedeemView(callback: {
                // TODO: Implement placement on success
            }))
            if let paywallVC = Superwall.shared.presentedViewController {
                paywallVC.present(referralUI, animated: true)
            } else {
                // Present either using SwiftUI .sheet or other means
            }
        }
    }
}
```

## Referral UI is shown.

Now that your referral interface is showing, you'd validate the code on your server or by some other means.
![](https://front-matter-for-llms-superwall-docs-staging.staffbar.workers.dev/docs/images/rc_2.jpg)

## If it's successful, register a placement for referrals

Now, if the code succeeds, you'd dismiss the referral UI and the existing paywall. In our callback, we...1) Dismiss the existing views.
2) And, we register a placement that corresponds to a campaign you've setup for referral codes:```swift
// This...
let referralUI = UIHostingController(rootView: ReferralRedeemView(callback: {
    // TODO: Implement placement on success
}))

// Might look similar to this...
let referralUI = UIHostingController(rootView: ReferralRedeemView(callback: {
    // Dismiss the referral UI
    referralUI.dismiss(animated: true)
    // Dismiss the existing paywall
    Superwall.shared.presentedViewController?.dismiss(animated: true)
    
    // This shows the paywall with the discounted product.
    // It should be gated, which means the closure only fires if they convert.
    Superwall.shared.register(placement: "referral",
                            params: ["influencer":"Jordan"]) {
        MyAnalyticsService.shared.log("referral_code_redeemed",
                                    properties: ["referral_code": "Jordan", "result": "trial_started"])
    }
}))
```

## The discounted product is presented.

Finally, your paywall and discounted product that you setup in step #1 is shown. If they convert, you'll see all of the details in your campaign that you built for referrals, just like you would any other campaign. You can also forward events to your third party analytics service as well, as shown in the previous step.
![](https://front-matter-for-llms-superwall-docs-staging.staffbar.workers.dev/docs/images/rc_3.jpg)
And that's it! It's a matter of creating discounted products, using them in a campaign, showing a referral UI and validating it, and then registering a placement to show those paywalls within a campaign.

## Tab

The flow on web checkout is considerably easier, and that's primarily because you aren't navigating app storefronts for products and have a direct link to payments. And, just like with mobile, you can use your own referral entry system if you've got one to reveal web checkout links and their paywalls. Here's how it works:## Create a new campaign for your referrals.

Create a campaign for your referrals. Here, you'd add the discounted product(s) you've made to a paywall that were created in Stripe. You can add in as many placements as you need. Maybe there's one for each influencer, or seasonal discount offer, etc.

## Send out Web Checkout links.

Next, simply send out the [web checkout](/docs/web-checkout/web-checkout-creating-campaigns-to-show-paywalls) links to your users. You can create a link for each referral code, or you can use the same link for all of them.> **Tip:** Remember that with Superwall's web checkout feature, each placement you add becomes its own web checkout link.

## User converts.

When the user clicks the link, they are taken to a web checkout page that has the discounted product you created in Stripe. They can enter their payment information and complete the purchase.And that's it! It's a matter of creating discounted products in Stripe, using them in a campaign, and then sending out the web checkout links to your users. You'll see all of the details in your campaign that you built for referrals, just like you would any other campaign, so you can track conversions, trial starts, and more.