# 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

# Custom Conversions

Send your own conversion events, like a finished onboarding or an advanced user, from your server to every ad network connected in Superwall's MMP, matched to the ad click each user's install came from.

Custom conversions let your server tell your ad networks about milestones only you can see, such as a user who finished onboarding, created their first project, or became an advanced user. Superwall sends each one to every ad network connected in [Superwall as your MMP](/docs/integrations/mmp): Meta, TikTok, Google Ads, Pinterest, Reddit, Snapchat and ChatGPT Ads. Each event is matched to the ad click the user's install came from. If you optimize a campaign for the event, the network looks for more people like the users who reached it, not only the ones who bought.

You send one API call per user and event, and Superwall sends it to all your connected networks at once. These events go out alongside the purchase events Superwall already sends and never change them.

## Requirements

* At least one ad network connected in MMP: [Meta Ads](/docs/integrations/meta-ads), [TikTok Ads](/docs/integrations/tiktok-ads), [Google Ads](/docs/integrations/google-ads), [Reddit Ads](/docs/integrations/reddit-ads), Pinterest, Snapchat or ChatGPT Ads. The conversion goes to every one that's on and has its conversions credential.
* An organization API key with the `users:write` scope and access to the project. Create one under **Settings › API Keys**. See [API key access](/docs/dashboard/dashboard-settings/overview-settings-access-controls#api-key-access).
* The app user ID you identify the user with in the SDK. Superwall uses it to find the user's device and ad click.

## Send a conversion

Send a `POST` to `/v2/projects/{project_id}/conversions` from your server, with your API key as a bearer token:

```bash
curl https://api.superwall.com/v2/projects/$PROJECT_ID/conversions \
  --request POST \
  --header "Authorization: Bearer $SUPERWALL_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "application_id": 123,
    "app_user_id": "user_8f2c1a",
    "event_name": "advanced_user",
    "event_id": "advanced_user-user_8f2c1a",
    "networks": {
      "snapchat": { "event_name": "CUSTOM_EVENT_1" },
      "google_ads": { "conversion_action_id": "6912345678" }
    }
  }'
```

<TypeTable
  type="{
  application_id: {
    type: &#x22;number&#x22;,
    description: &#x22;The app the user belongs to. It must be in the project in the path, or the request returns `404`.&#x22;,
    required: true,
  },
  app_user_id: {
    type: &#x22;string&#x22;,
    description: &#x22;The user's app user ID, as identified in the SDK. 1 to 255 characters. Placeholders such as `null`, `undefined` or `0` return `400`. Ad networks only ever receive its SHA-256 hash.&#x22;,
    required: true,
  },
  event_name: {
    type: &#x22;string&#x22;,
    description: &#x22;The event the networks record. Starts with a letter, then up to 39 letters, digits, `_` or `-`. Use your own name, like `advanced_user`, or a standard event, like `CompleteRegistration` or `Lead`. Names starting with `sw_` are reserved for Superwall's own events. Some networks can't take any name; see [Event names per network](#event-names-per-network).&#x22;,
    required: true,
  },
  event_id: {
    type: &#x22;string&#x22;,
    description: &#x22;Your ID for this conversion, 1 to 128 letters, digits, `_`, `.`, `:` or `-`. Use one that's stable for the user and the milestone, so a retry sends the same ID.&#x22;,
    required: true,
  },
  occurred_at: {
    type: &#x22;string&#x22;,
    description: &#x22;When the conversion happened, as an ISO 8601 timestamp. At most 7 days ago and not in the future, or the request returns `400`.&#x22;,
    default: &#x22;now&#x22;,
  },
  value: {
    type: &#x22;{ amount: number; currency: string }&#x22;,
    description: &#x22;What the conversion is worth. `amount` from 0 to 1,000,000,000; `currency` an uppercase ISO 4217 code, like `USD`. A Meta `Purchase` sent without a value is sent as 0 USD, because Meta requires one.&#x22;,
  },
  networks: {
    type: &#x22;{ [network]: false | { event_name?: string; conversion_action_id?: string } }&#x22;,
    description: &#x22;Per-network options, keyed by `meta`, `tiktok`, `google_ads`, `pinterest`, `reddit`, `snapchat` or `chatgpt_ads`. `false` leaves that network out. An object gives it its own `event_name`, or, for Google Ads, the `conversion_action_id` to record. Networks you don't name get the conversion as is.&#x22;,
  },
}"
/>

Unknown fields return `400`. The full schema is in the [API reference](https://api.superwall.com/docs), under **Conversions**.

## Event names per network

| Network      | What it receives                                                                                                                                                                                                        |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Meta, TikTok | `event_name` as is.                                                                                                                                                                                                     |
| Reddit       | A Reddit standard event when `event_name` is exactly one, like `SIGN_UP` or `LEAD`. Anything else is sent as a custom event with your name.                                                                             |
| ChatGPT Ads  | An OpenAI standard event when `event_name` is one. Anything else is sent as a custom event with your name.                                                                                                              |
| Pinterest    | A Pinterest event when `event_name` is one, like `signup` or `lead`. Anything else is sent as `custom`. Set `networks.pinterest.event_name` to choose another Pinterest event.                                          |
| Snapchat     | Only Snapchat's own events, such as `SIGN_UP`, `PURCHASE` or `CUSTOM_EVENT_1` to `CUSTOM_EVENT_5`. Set `networks.snapchat.event_name` unless `event_name` already is one. Your `event_name` is sent as the event's tag. |
| Google Ads   | A conversion action, not a name. Set `networks.google_ads.conversion_action_id` to the ID of an **Import from clicks** conversion action in the connected account.                                                      |

A network that can't take the event returns `skipped` with reason `needs_mapping`, and the other networks are still sent.

## Read the result

The call waits for every network and returns `200` with one result per connected network:

```json
{
  "object": "conversion",
  "event_id": "advanced_user-user_8f2c1a",
  "event_name": "advanced_user",
  "results": [
    { "network": "meta", "status": "sent", "reason": null, "message": null, "retryable": false, "matched_click": false },
    { "network": "tiktok", "status": "sent", "reason": null, "message": null, "retryable": false, "matched_click": true },
    { "network": "snapchat", "status": "skipped", "reason": "needs_mapping", "message": "…", "retryable": false, "matched_click": false }
  ]
}
```

`status` is `sent`, `skipped` or `failed`. `matched_click` says whether the user's install was matched to one of that network's ad clicks. Networks you haven't connected aren't listed, unless you named them in `networks`. A `skipped` or `failed` result has a `reason`:

| Status    | Reason                 | Meaning                                                                                                                                                      |
| --------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `skipped` | `not_configured`       | You named the network in `networks`, but it isn't connected for this app.                                                                                    |
| `skipped` | `needs_mapping`        | The network can't take `event_name` as is. Set its `networks` option. See [Event names per network](#event-names-per-network).                               |
| `skipped` | `no_match_signals`     | Nothing for the network to match the user on. For example, there's no ad click and no app session in the last 30 days, or Google Ads has no Google click ID. |
| `skipped` | `tracking_refused`     | The user refused tracking on iOS, and the app doesn't send events for those users to this network. See [Consent and tracking](#consent-and-tracking).        |
| `skipped` | `consent_denied`       | The user's ad consent rules the event out, and there's no ad click to send it with.                                                                          |
| `failed`  | `rejected`             | The network refused the event. `message` has its reason.                                                                                                     |
| `failed`  | `credentials_rejected` | The network refused the stored credential. Reconnect it in that network's integration.                                                                       |
| `failed`  | `unavailable`          | The network, or Superwall's lookup of the user's ad click, couldn't be reached.                                                                              |

## Retries

Resend a conversion only when one of its results has `retryable: true`. That means nothing reached that network, for example because it throttled the request. Send it with the same `event_id`, and set the networks that already got it to `false` in `networks`.

Don't resend anything else. Ad networks don't promise to drop an `event_id` they've already received, so resending a `sent` conversion, or a failure without `retryable`, can count it twice. A `failed` result with `retryable: false` and reason `unavailable` means the network may have received the event.

Each app can send 100 conversions a minute. Over that, the request returns `429` with a `Retry-After` header.

## How matching works

* **The ad click comes from the user's device.** Superwall finds the device the user last used your app on, and the install on that device that was matched to an ad. Each network gets that click's IDs (like `fbc`, `ttclid` or `gclid`) when the click came from one of its ads, so it attributes the conversion to the same ad as the user's purchases.
* **Users without a matched click are still sent** where the network can match them another way: the IP address and user agent of the user's latest app session in the last 30 days. Use `matched_click` to see how many conversions came from each network's ads.
* **The user is identified by a hash.** Networks receive the SHA-256 hash of the app user ID as their external ID, the same as for Superwall's purchase events. User attributes such as email or phone number aren't sent with custom conversions.
* **Every network gets the same dedup ID**, derived from your app and `event_id`.
* **Custom names may need confirming.** A network treats a new custom event name like any other. On Meta, [confirm it](/docs/integrations/meta-ads#confirm-custom-events) in Events Manager before choosing it in Ads Manager.

## Consent and tracking

Superwall reads the user's ad consent and App Tracking Transparency status from the SDK. See [Ad consent](/docs/expo/guides/ad-consent) for how to report it. Each network follows the same rules as for Superwall's purchase events:

* **A user who refused tracking on iOS** isn't sent (`tracking_refused`) unless **Send events for users who refused tracking** is on for that network. With it on, the event is cut down as below. Google Ads has no such setting, and never gets these users.
* **A user who denied ad user data**, or one who refused tracking when the setting is on, is sent with only the ad click ID and the fewest other signals the network needs, marked as opted out where the network supports it. Without an ad click, nothing is sent, and the result is `consent_denied`. Google Ads receives the event marked with the user's consent instead.
* **A user who denied ad personalization** is sent in full, marked so the network doesn't use it for personalized ads.

## Limitations

* `occurred_at` can be at most 7 days ago.
* One conversion per request.
* Hashed email, phone and device IDs aren't sent, so a network that needs them to match a user without an ad click may skip the user.

## Related

* [Superwall as your MMP](/docs/integrations/mmp)
* [Meta Ads](/docs/integrations/meta-ads)
* [TikTok Ads](/docs/integrations/tiktok-ads)
* [Google Ads](/docs/integrations/google-ads)
* [Reddit Ads](/docs/integrations/reddit-ads)
* [Superwall API](/docs/agents/api)