Build With RevenueCat

Build a customized mobile subscription business with RevenueCat. We do the heavy lifting of normalizing subscribers from any source and maintain a single source of truth for subscription status, so you can get back to building your app.

RevenueCat is a powerful, secure, reliable, and free to use in-app purchase server with global support. All you need to get started is an API key.

Get Started    REST API Endpoints


Integrate in-app subscription events from RevenueCat with CleverTap


The CleverTap integration is available on the Pro plan.

RevenueCat can automatically send subscription events into CleverTap. This is useful for seeing all events and revenue that occur for your app even if it's not active for a period of time.


The CleverTap integration tracks the following events:



Initial Purchase

The first purchase of an auto-renewing subscription product that does not contain a free trial.

Trial Started

The start of an auto-renewing subscription product free trial.

Trial Converted

When an auto-renewing subscription product converts from a free trial to normal paid period.

Trial Cancelled

When a user turns off renewals for an auto-renewing subscription product during a free trial period.


When an auto-renewing subscription product renews OR a user repurchases the auto-renewing subscription product after a lapse in their subscription.


When a user turns off renewals for an auto-renewing subscription product during the normal paid period.


When a user re-enables the auto-renew status for a subscription.

Non Subscription Purchase

The purchase of any product that's not an auto-renewing subscription.

For events that have revenue, such as trial conversions and renewals, RevenueCat will automatically record this amount along with the event in CleverTap.


1. Send CleverTap Identity to RevenueCat

The OneSignal integration requires some device-specific data. RevenueCat will only update users in OneSignal if the below data has been added as Subscriber Attributes for the user.





The CleverTap ID for the user.


This property can be set manually, like any other Subscriber Attribute.

// Configure Purchases SDK
Purchases.configure(withAPIKey: "public_sdk_key", appUserID: "my_app_user_id")

// Configure CleverTap SDK

// ...

if let cleverTapId = CleverTap.sharedInstance()?.profileGetCleverTapID() {
    Purchases.shared.setAttributes(["$clevertapId" : clevertapId])
// Configure Purchases SDK
[RCPurchases configureWithAPIKey:@"public_sdk_key" appUserID:@"my_app_user_id"];

// Configure CleverTap SDK
[CleverTap autoIntegrate];


NSString *cleverTapId = [[CleverTap sharedInstance] profileGetCleverTapID];
if (cleverTapId != nil) {
  [[RCPurchases sharedPurchases] setAttributes:@{@"$cleverTapId": cleverTapId}];
// Configure Purchases SDK
Purchases.configure(this, "public_sdk_key", "my_app_user_id")

// Configure CleverTap SDK
cleverTapDefaultInstance = CleverTapAPI.getDefaultInstance(this)

val cleverTapId = cleverTapDefaultInstance?.cleverTapID?.also {
   Purchases.sharedInstance.setAttributes(mapOf("$cleverTapId" to it))
// Configure Purchases SDK
Purchases.configure(this, "public_sdk_key", "my_app_user_id");

// Configure CleverTap SDK
CleverTapAPI clevertapDefaultInstance = CleverTapAPI.getDefaultInstance(this);

String cleverTapId = cleverTapDefaultInstance.getCleverTapId();
if (cleverTapId != null) {
  Map<String, String> attributes = new HashMap<String, String>();
    attributes.put("$cleverTapId", cleverTapId);


2. Send RevenueCat Events to CleverTap

After you've set up the Purchase SDK and CleverTap SDK to have the same user identity, you can "turn on" the integration and configure the event names from the RevenueCat dashboard.

  1. Navigate to your app in the RevenueCat dashboard and choose 'CleverTap' from the integrations menu
  2. Add your CleverTap Account ID and Passcode.
  3. If you want to test in sandbox, also add your Passcode from your testing account.
  4. Enter the event names that RevenueCat will send or choose the default event names
  5. Select whether you want RevenueCat to report proceeds (after app store cut) or revenue (gross sales)
CleverTap configuration pageCleverTap configuration page

CleverTap configuration page


By default, RevenueCat sends data through CleverTap's EU data center. For CleverTap customers who have a regional data center configured, please email [email protected] to enable this for your integration.

Sample Event

Below is sample JSON that is delivered to CleverTap for an initial purchase event.

    'd': [
            'type': 'event',
            'evtName': 'initial_purchase',
            'evtData': {
                'amount': 9.99,
                'currency': 'USD',
            'ts': 1580602110000,
            'objectId': 'yourCustomClevertapId',

Updated 28 days ago


Integrate in-app subscription events from RevenueCat with CleverTap

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.