# Superwall: Subscription Infrastructure for iOS, Android, and Web

Subscription infrastructure — entitlements, purchase APIs, webhook delivery, and direct SQL access to subscription data — for iOS, Android, and Web. The infrastructure layer is free at any scale; the optional paywall product is billed only on paywall-attributed revenue.

## Pricing

- **Infrastructure: free at any scale, every plan.** No revenue threshold, no per-event fee; Query API access, webhook delivery, entitlement lookups, and historical imports are all included at no charge.
- **Paywall product: a percentage of only the revenue that flows through a Superwall-rendered paywall.** Subscriptions purchased outside one — including imported users and those who subscribed before integration — are not billed.

Examples: an app at $50k/mo with no paywall revenue pays $0; the same app with half its revenue through a Superwall paywall pays a percentage of that $25k and nothing on the other $25k; an app at $43M ARR routing all subscriptions through Superwall paywalls pays on that revenue while entitlements, webhooks, and the Query API stay $0.

## Scale

$1.5B+ annual subscription revenue across 10,000+ apps. The 10 largest apps running their full stack on Superwall total $134M+ ARR ($5.7M–$43.7M each). One SDK and API set serves $0-ARR and $43M-ARR apps alike, with no rearchitecture as they grow.

## Infrastructure capabilities

- **Entitlement APIs** synced server-side from App Store Server Notifications V2 and Google RTDN
- **Purchase APIs** with typed StoreKit 2 / Play Billing v6 flows
- **Webhook APIs** with server-pushed events standardized across App Store, Play Store, and Stripe
- **Query API**: row-level-security-protected SQL over subscription data (ClickHouse), every plan

Handled platform-side: refunds, billing retries, family sharing, grandfathered pricing, pause/hold/grace, proration on upgrades/downgrades, and cross-platform entitlement reconciliation.

## Migration

Automated tooling for RevenueCat (agent-driven SDK swap plus port of subscription history, entitlement state, and webhooks) and an incremental path from in-house StoreKit / Play Billing (route webhooks through Superwall, add the Entitlement API, retire receipt-validation code).

## Paywall product (optional, separately billable)

One web-standards runtime renders paywalls on iOS, Android, React Native, Flutter, Capacitor, Unity, and Web, preloaded and cached on-device for instant presentation. Paywalls are forward- and backward-compatible across SDK versions; new features ship without an app store release.

## Architecture

Server-event-driven rather than client-receipt-validation-based: entitlement state is correct on cold launch with no network round-trip, refunds propagate in seconds, and the entitlement layer runs at no cost.

## Docs

* Migrate from RevenueCat: https://superwall.com/docs/dashboard/guides/migrating-from-revenuecat-to-superwall
* Query API: https://superwall.com/docs/dashboard/guides/query-clickhouse
* Webhooks: https://superwall.com/docs/integrations/webhooks
* Pricing: https://superwall.com/pricing

# Adding Products

Add your existing products from their respective storefront, such as the App Store or the Google Play Store, to an app so they can be used in one or more paywalls. For adding Stripe products, please view [this doc](/docs/web-checkout/web-checkout-adding-a-stripe-product). For iOS products purchased through your own billing system, see [Custom Store Products](/docs/ios/guides/custom-store-products).

> **Warning:** Before you attempt to test a paywall on iOS via TestFlight, make sure they are in the "Ready to Submit" phase if it's their initial launch. For local testing, you can use a [StoreKit configuration file](/docs/sdk/guides/testing-purchases) at any point.

> **Note:** Right now, Superwall for iOS does not support [Promotional
> Offers](https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/setting_up_promotional_offers),
> only [Introductory
> Offers](https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/implementing_introductory_offers_in_your_app).
> Superwall for Android only supports 1 billing phase per offer.

To get started, select an app. Then **click** the **Products*&#x2A; button from the sidebar. Choose **+ Add Product**:

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/add-product.png)

From there, you have five fields to fill out:

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/add-product-modal.png)

| Field        | Description                                                                                                |
| ------------ | ---------------------------------------------------------------------------------------------------------- |
| Identifier   | The StoreKit, Google Play, or custom billing product identifier for your product.                          |
| Trial        | The trial duration attached to the product, if any.                                                        |
| Price        | The price attached to the product. Either type one in, or just the dropdown to select common price points. |
| Period       | The length of the subscription.                                                                            |
| Entitlements | The entitlements this product belongs to.                                                                  |

When you're done, click **Save**.

Note that the pricing information you enter here is **only** used in the Paywall Editor for App Store and Google Play products. On device, that information is pulled directly from the App Store or Google Play Store and will be localized. For iOS Custom Store Products, the SDK uses the product metadata from Superwall and routes purchase attempts to your `PurchaseController`.

## Monthly billing plans for annual iOS subscriptions

Annual App Store subscriptions can offer Apple's monthly billing plan, where the customer is billed monthly with a 12-month commitment. Use this when the same annual subscription should be merchandised as either a monthly-installment plan or an up-front annual plan.

Before adding the plan in Superwall:

* Configure the monthly billing plan for the annual subscription in App Store Connect.
* Use an iOS App Store product with **Period** set to **1 year** in Superwall.
* Use iOS SDK `4.16.0` or later in your app.

To add the plan to a product:

1. Open the iOS App Store product in **Products**.
2. Make sure **Period** is set to **1 year**.
3. Click **Add monthly billing plan**.
4. Enter the **Monthly price**.
5. If the monthly plan has its own introductory offer, configure **Monthly trial**.
6. Click **Save**.

![Annual App Store subscription monthly billing plan setup](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/12monthsetup.jpg)

The monthly price and monthly trial values are used for Paywall Editor previews. On device, the iOS SDK reads the matching StoreKit pricing term and uses App Store localized pricing. If the device or storefront cannot use the monthly billing plan, the purchase falls back to Apple's default billing plan for the product.

After the product has a monthly billing plan, each paywall product slot can choose whether to present **Monthly installments** or **Up-front**. See [Products in the Paywall Editor](/docs/dashboard/dashboard-creating-paywalls/paywall-editor-products#choosing-a-billing-plan-for-annual-ios-subscriptions).

> **Warning:** Take care to make sure your product identifier is correct and matches its storefront. This is the
> most common cause for products not working correctly when testing.

## Entitlements

Entitlements represent the amount of access or features users are entitled to. They can be used to offer different tiers of service, or just represent a single "active" subscription if your app only has one level of service (i.e. "Pro" unlocks everything). All products are granted a default entitlement.

> **Warning:** **Subscription status is determined by entitlements.**If a product has no entitlements then when a user purchases it their subscription status will be **Inactive**.
> Ensure each subscription product is linked to at least one entitlement.

If you don't have multiple tiers of service, you can use only the default `pro` entitlement — you don't need to create any additional entitlements.

To add an entitlement, **click** on the **Entitlements** tab within the products page. Then click **Add Entitlement**:

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/addEntitlement.png)

From there, give it a name, and click **Create**:

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/createEntitlement.png)

At this point, you can go back to your products and attach one or more entitlements to each one.

### Editing entitlements

To edit or delete an entitlement, click on the trailing pencil icon or the trash can icon to remove one. Note that if your entitlement is associated with any product, you'll need to remove it first before you can delete it.

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/editEntitlement.png)

## Getting product identifiers

*If you use RevenueCat to handle in-app subscriptions, skip to [Using RevenueCat](/docs/dashboard/products#using-revenuecat)*

### Using App Store Connect

On **App Store Connect**, head over to &#x2A;*Your App ▸ App Store ▸ Subscriptions ▸ *Your Subscription Group***:

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/0b4f712-Screen_Shot_2022-05-17_at_3.29.45_PM.png)

Then, copy your **Product ID**:

![3372](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/f0c2605-Screen_Shot_2022-05-17_at_3.28.41_PM.png)

Your products, whether live or pre-release, shouldn't be in the "Missing Metadata" state. If they are, you won't be able to test them on device. To fix this, make sure your products are in the "Ready to Submit" or "Approved" state. Superwall will automatically warn you if they are in this state when you have the [App Store Connect API set up](/docs/dashboard/dashboard-settings/overview-settings-revenue-tracking#app-store-connect-api):

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/asc_invalid_products.png)

### Using Google Play Console

To add subscription products, on **Google Play Console**, head over to **Your App ▸ Monetize ▸ Products ▸
Subscriptions**:

![Google Play Products](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/google-play-products.png)

You can also grab your **base plan id** and any offer ids if you're going to use
them.

To add in-app products, no base plan id is required. For **period**, select &#x2A;*None(Lifetime/Consumable)**:

![Google Play Products](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/google-play-in-app-products.png)

#### Google Play Offers

Google play allows you to create multiple base plans and multiple offers for
each base plan. When using Superwall, you can either specify a specific offer
or let Superwall choose the best offer for the user.

**Automatically Choosing Offers**

Once Google has returned offers that are applicable for that user, Superwall
will use the following logic to choose the best offer for the user:

* Find the longest free trial the customer is eligible for
* If there is no free trial, find the cheapest introductory period the customer is eligible for
* If there is none, fall back to the base plan
* If you have an offer on one of your products that you never want to automatically be selected by this logic (for example, because it is a discount only used for a specific customer group), add the tag `sw-ignore-offer` to that offer in Google Play Console.

To add the `sw-ignore-offer` tag in **Google Play Console**:

1. Open the subscription offer you want to exclude and choose **Advanced settings**.
2. In **Tags**, add `sw-ignore-offer` (all lowercase) and click **Save**.

Superwall will ignore any offer that includes this tag when selecting the best offer for the user.

That means that if your eligibility criteria is set so that someone can use an
offer only once, we'll respect that and choose from the best remaining offers.

**Specifying Offers**

Let's say you have a base plan with two or more offers which differ in trial
duration. You may want to A/B test these offers to see which one performs best.
To achieve this, you can specify the offer id in the Superwall dashboard.

When we specify an offer id, we'll ignore the logic above and always use the
offer **if the user is eligible**. If the user is not eligible for the offer,
we'll fall back to the base plan. The [eligiblity criteria](https://support.google.com/googleplay/android-developer/answer/12154973?hl=en#:~\:text=or%20inactive%20states.-,Offer%20eligibility%C2%A0,-You%20can%20provide) is set in the Google
Play Console, and is based on the user's purchase history.

![Multiple Offers](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/multiple-offers.png)

## Using products in paywalls

After you've added products to an app, you're ready to start using them in paywalls. Check out our [docs](/docs/dashboard/dashboard-creating-paywalls/paywall-editor-products) for a step-by-step guide on how to do that.

## Understanding how consumable and non-consumable products work

Superwall uses entitlements to determine ongoing access. Consumables and non-consumables are both one-time purchases, but they should be configured differently:

* **Consumable products** (e.g., credits, tokens, energy boosts) should usually have **Period** set to &#x2A;*None (Lifetime / Consumable)** and **no entitlements** selected. Your app grants the benefit after the purchase event.
* **Non-consumable products** (e.g., a lifetime unlock) should use **Period** set to &#x2A;*None (Lifetime / Consumable)** and should be linked to the entitlement they unlock.

If a product has no entitlements, purchasing it will not make the user's subscription status active. This is expected for consumables.

Finish setup in the SDK guide for your platform:

* [iOS consumable products](/docs/ios/guides/consumable-products)
* [Android consumable products](/docs/android/guides/consumable-products)
* [Flutter consumable products](/docs/flutter/guides/consumable-products)
* [Expo consumable products](/docs/expo/guides/consumable-products)

On iOS, consumables also require `SKIncludeConsumableInAppPurchaseHistory` in your `Info.plist` as a Boolean set to `YES`. On pre-iOS 18 devices, StoreKit 1 will be used when this key is present. See the [iOS consumables guide](/docs/ios/guides/consumable-products) for the exact setup.

## Understanding paid offer types

Any **paid up front** or **pay as you go** product offer types will also be referenced using the `trial` variables. In Superwall, these are represented as "paid trials". For example, to reference the product's trial price of $3.99 in the image below, you'd use `products.selected.trialPeriodPrice`:

![](https://2a2314a4-superwall-docs.staffbar.workers.dev/docs/images/paidOfferExample.png)

For more on setting customized text using Liquid Templating, visit this [doc](/docs/dashboard/dashboard-creating-paywalls/paywall-editor-liquid).

## A note on StoreKit configuration files

If you're using a StoreKit Configuration file, pricing information will come from there during local testing. Therefore, it's important to keep your StoreKit Configuration file, Superwall, and the App Store products all in sync. Follow our [Setting up StoreKit testing](/docs/sdk/guides/testing-purchases) guide for more information.

> **Note:** Having an issue on device with products not appearing? Run through [this
> checklist](/docs/support/troubleshooting/products-not-loading) to make sure everything is configured
> correctly.