AptlyStar

Revenuecat

Available Revenuecat triggers for automating workflows

Revenuecat provides 6 triggers for automating workflows based on events.

Triggers

RevenueCat Cancellation

Trigger workflow when a subscriber cancels a RevenueCat subscription

Configuration

ParameterTypeRequiredDescription
apiKeystringYesSecret API key with the project_configuration:integrations:read_write permission. AptlyStar uses it to create and remove the webhook in RevenueCat.
projectIdstringYesRevenueCat project identifier the webhook integration is created in.
environmentstringNoRestrict events to a single environment, or receive all of them.

Output

ParameterTypeDescription
typestringEvent type (e.g., INITIAL_PURCHASE, RENEWAL)
idstringUnique event identifier
app_idstringRevenueCat app public identifier
event_timestamp_msnumberTimestamp (ms since epoch) when the event was generated
app_user_idstringCurrent App User ID
original_app_user_idstringFirst App User ID ever used
aliasesjsonAll App User IDs ever used by the subscriber
product_idstringProduct identifier
new_product_idstringProduct identifier changed to (PRODUCT_CHANGE events only)
period_typestringPeriod type (TRIAL, INTRO, NORMAL, PROMOTIONAL, or PREPAID)
purchased_at_msnumberPurchase timestamp (ms since epoch)
expiration_at_msnumberExpiration timestamp (ms since epoch), nullable
environmentstringEnvironment (SANDBOX or PRODUCTION)
entitlement_idstringDeprecated single entitlement identifier
entitlement_idsjsonAssociated entitlement identifiers
presented_offering_idstringIdentifier of the offering presented to the user
transaction_idstringStore transaction ID
original_transaction_idstringOriginal subscription transaction ID
is_family_sharebooleanWhether the purchase was family shared
country_codestringISO country code of the subscriber
currencystringISO 4217 currency code
pricenumberPrice in USD
price_in_purchased_currencynumberPrice in the currency the purchase was made in
storestringStore the purchase was made on (e.g., APP_STORE)
takehome_percentagenumberEstimated percentage of the price taken home after store commission
tax_percentagenumberEstimated percentage taken as tax
commission_percentagenumberEstimated percentage taken by the store as commission
offer_codestringOffer code applied to the purchase, if any
subscriber_attributesjsonSubscriber attributes at the time of the event
experimentsjsonExperiments the subscriber was enrolled in
cancel_reasonstringReason for cancellation (CANCELLATION events only)
expiration_reasonstringReason for expiration (EXPIRATION events only)
api_versionstringRevenueCat webhook API version
eventjsonFull RevenueCat event object

RevenueCat Expiration

Trigger workflow when a RevenueCat subscription expires

Configuration

ParameterTypeRequiredDescription
apiKeystringYesSecret API key with the project_configuration:integrations:read_write permission. AptlyStar uses it to create and remove the webhook in RevenueCat.
projectIdstringYesRevenueCat project identifier the webhook integration is created in.
environmentstringNoRestrict events to a single environment, or receive all of them.

Output

ParameterTypeDescription
typestringEvent type (e.g., INITIAL_PURCHASE, RENEWAL)
idstringUnique event identifier
app_idstringRevenueCat app public identifier
event_timestamp_msnumberTimestamp (ms since epoch) when the event was generated
app_user_idstringCurrent App User ID
original_app_user_idstringFirst App User ID ever used
aliasesjsonAll App User IDs ever used by the subscriber
product_idstringProduct identifier
new_product_idstringProduct identifier changed to (PRODUCT_CHANGE events only)
period_typestringPeriod type (TRIAL, INTRO, NORMAL, PROMOTIONAL, or PREPAID)
purchased_at_msnumberPurchase timestamp (ms since epoch)
expiration_at_msnumberExpiration timestamp (ms since epoch), nullable
environmentstringEnvironment (SANDBOX or PRODUCTION)
entitlement_idstringDeprecated single entitlement identifier
entitlement_idsjsonAssociated entitlement identifiers
presented_offering_idstringIdentifier of the offering presented to the user
transaction_idstringStore transaction ID
original_transaction_idstringOriginal subscription transaction ID
is_family_sharebooleanWhether the purchase was family shared
country_codestringISO country code of the subscriber
currencystringISO 4217 currency code
pricenumberPrice in USD
price_in_purchased_currencynumberPrice in the currency the purchase was made in
storestringStore the purchase was made on (e.g., APP_STORE)
takehome_percentagenumberEstimated percentage of the price taken home after store commission
tax_percentagenumberEstimated percentage taken as tax
commission_percentagenumberEstimated percentage taken by the store as commission
offer_codestringOffer code applied to the purchase, if any
subscriber_attributesjsonSubscriber attributes at the time of the event
experimentsjsonExperiments the subscriber was enrolled in
cancel_reasonstringReason for cancellation (CANCELLATION events only)
expiration_reasonstringReason for expiration (EXPIRATION events only)
api_versionstringRevenueCat webhook API version
eventjsonFull RevenueCat event object

RevenueCat Initial Purchase

Trigger workflow when a subscriber makes their first purchase in RevenueCat

Configuration

ParameterTypeRequiredDescription
apiKeystringYesSecret API key with the project_configuration:integrations:read_write permission. AptlyStar uses it to create and remove the webhook in RevenueCat.
projectIdstringYesRevenueCat project identifier the webhook integration is created in.
environmentstringNoRestrict events to a single environment, or receive all of them.

Output

ParameterTypeDescription
typestringEvent type (e.g., INITIAL_PURCHASE, RENEWAL)
idstringUnique event identifier
app_idstringRevenueCat app public identifier
event_timestamp_msnumberTimestamp (ms since epoch) when the event was generated
app_user_idstringCurrent App User ID
original_app_user_idstringFirst App User ID ever used
aliasesjsonAll App User IDs ever used by the subscriber
product_idstringProduct identifier
new_product_idstringProduct identifier changed to (PRODUCT_CHANGE events only)
period_typestringPeriod type (TRIAL, INTRO, NORMAL, PROMOTIONAL, or PREPAID)
purchased_at_msnumberPurchase timestamp (ms since epoch)
expiration_at_msnumberExpiration timestamp (ms since epoch), nullable
environmentstringEnvironment (SANDBOX or PRODUCTION)
entitlement_idstringDeprecated single entitlement identifier
entitlement_idsjsonAssociated entitlement identifiers
presented_offering_idstringIdentifier of the offering presented to the user
transaction_idstringStore transaction ID
original_transaction_idstringOriginal subscription transaction ID
is_family_sharebooleanWhether the purchase was family shared
country_codestringISO country code of the subscriber
currencystringISO 4217 currency code
pricenumberPrice in USD
price_in_purchased_currencynumberPrice in the currency the purchase was made in
storestringStore the purchase was made on (e.g., APP_STORE)
takehome_percentagenumberEstimated percentage of the price taken home after store commission
tax_percentagenumberEstimated percentage taken as tax
commission_percentagenumberEstimated percentage taken by the store as commission
offer_codestringOffer code applied to the purchase, if any
subscriber_attributesjsonSubscriber attributes at the time of the event
experimentsjsonExperiments the subscriber was enrolled in
cancel_reasonstringReason for cancellation (CANCELLATION events only)
expiration_reasonstringReason for expiration (EXPIRATION events only)
api_versionstringRevenueCat webhook API version
eventjsonFull RevenueCat event object

RevenueCat Non-Renewing Purchase

Trigger workflow when a subscriber makes a non-renewing purchase in RevenueCat

Configuration

ParameterTypeRequiredDescription
apiKeystringYesSecret API key with the project_configuration:integrations:read_write permission. AptlyStar uses it to create and remove the webhook in RevenueCat.
projectIdstringYesRevenueCat project identifier the webhook integration is created in.
environmentstringNoRestrict events to a single environment, or receive all of them.

Output

ParameterTypeDescription
typestringEvent type (e.g., INITIAL_PURCHASE, RENEWAL)
idstringUnique event identifier
app_idstringRevenueCat app public identifier
event_timestamp_msnumberTimestamp (ms since epoch) when the event was generated
app_user_idstringCurrent App User ID
original_app_user_idstringFirst App User ID ever used
aliasesjsonAll App User IDs ever used by the subscriber
product_idstringProduct identifier
new_product_idstringProduct identifier changed to (PRODUCT_CHANGE events only)
period_typestringPeriod type (TRIAL, INTRO, NORMAL, PROMOTIONAL, or PREPAID)
purchased_at_msnumberPurchase timestamp (ms since epoch)
expiration_at_msnumberExpiration timestamp (ms since epoch), nullable
environmentstringEnvironment (SANDBOX or PRODUCTION)
entitlement_idstringDeprecated single entitlement identifier
entitlement_idsjsonAssociated entitlement identifiers
presented_offering_idstringIdentifier of the offering presented to the user
transaction_idstringStore transaction ID
original_transaction_idstringOriginal subscription transaction ID
is_family_sharebooleanWhether the purchase was family shared
country_codestringISO country code of the subscriber
currencystringISO 4217 currency code
pricenumberPrice in USD
price_in_purchased_currencynumberPrice in the currency the purchase was made in
storestringStore the purchase was made on (e.g., APP_STORE)
takehome_percentagenumberEstimated percentage of the price taken home after store commission
tax_percentagenumberEstimated percentage taken as tax
commission_percentagenumberEstimated percentage taken by the store as commission
offer_codestringOffer code applied to the purchase, if any
subscriber_attributesjsonSubscriber attributes at the time of the event
experimentsjsonExperiments the subscriber was enrolled in
cancel_reasonstringReason for cancellation (CANCELLATION events only)
expiration_reasonstringReason for expiration (EXPIRATION events only)
api_versionstringRevenueCat webhook API version
eventjsonFull RevenueCat event object

RevenueCat Product Change

Trigger workflow when a subscriber changes their RevenueCat subscription product

Configuration

ParameterTypeRequiredDescription
apiKeystringYesSecret API key with the project_configuration:integrations:read_write permission. AptlyStar uses it to create and remove the webhook in RevenueCat.
projectIdstringYesRevenueCat project identifier the webhook integration is created in.
environmentstringNoRestrict events to a single environment, or receive all of them.

Output

ParameterTypeDescription
typestringEvent type (e.g., INITIAL_PURCHASE, RENEWAL)
idstringUnique event identifier
app_idstringRevenueCat app public identifier
event_timestamp_msnumberTimestamp (ms since epoch) when the event was generated
app_user_idstringCurrent App User ID
original_app_user_idstringFirst App User ID ever used
aliasesjsonAll App User IDs ever used by the subscriber
product_idstringProduct identifier
new_product_idstringProduct identifier changed to (PRODUCT_CHANGE events only)
period_typestringPeriod type (TRIAL, INTRO, NORMAL, PROMOTIONAL, or PREPAID)
purchased_at_msnumberPurchase timestamp (ms since epoch)
expiration_at_msnumberExpiration timestamp (ms since epoch), nullable
environmentstringEnvironment (SANDBOX or PRODUCTION)
entitlement_idstringDeprecated single entitlement identifier
entitlement_idsjsonAssociated entitlement identifiers
presented_offering_idstringIdentifier of the offering presented to the user
transaction_idstringStore transaction ID
original_transaction_idstringOriginal subscription transaction ID
is_family_sharebooleanWhether the purchase was family shared
country_codestringISO country code of the subscriber
currencystringISO 4217 currency code
pricenumberPrice in USD
price_in_purchased_currencynumberPrice in the currency the purchase was made in
storestringStore the purchase was made on (e.g., APP_STORE)
takehome_percentagenumberEstimated percentage of the price taken home after store commission
tax_percentagenumberEstimated percentage taken as tax
commission_percentagenumberEstimated percentage taken by the store as commission
offer_codestringOffer code applied to the purchase, if any
subscriber_attributesjsonSubscriber attributes at the time of the event
experimentsjsonExperiments the subscriber was enrolled in
cancel_reasonstringReason for cancellation (CANCELLATION events only)
expiration_reasonstringReason for expiration (EXPIRATION events only)
api_versionstringRevenueCat webhook API version
eventjsonFull RevenueCat event object

RevenueCat Renewal

Trigger workflow when a RevenueCat subscription renews

Configuration

ParameterTypeRequiredDescription
apiKeystringYesSecret API key with the project_configuration:integrations:read_write permission. AptlyStar uses it to create and remove the webhook in RevenueCat.
projectIdstringYesRevenueCat project identifier the webhook integration is created in.
environmentstringNoRestrict events to a single environment, or receive all of them.

Output

ParameterTypeDescription
typestringEvent type (e.g., INITIAL_PURCHASE, RENEWAL)
idstringUnique event identifier
app_idstringRevenueCat app public identifier
event_timestamp_msnumberTimestamp (ms since epoch) when the event was generated
app_user_idstringCurrent App User ID
original_app_user_idstringFirst App User ID ever used
aliasesjsonAll App User IDs ever used by the subscriber
product_idstringProduct identifier
new_product_idstringProduct identifier changed to (PRODUCT_CHANGE events only)
period_typestringPeriod type (TRIAL, INTRO, NORMAL, PROMOTIONAL, or PREPAID)
purchased_at_msnumberPurchase timestamp (ms since epoch)
expiration_at_msnumberExpiration timestamp (ms since epoch), nullable
environmentstringEnvironment (SANDBOX or PRODUCTION)
entitlement_idstringDeprecated single entitlement identifier
entitlement_idsjsonAssociated entitlement identifiers
presented_offering_idstringIdentifier of the offering presented to the user
transaction_idstringStore transaction ID
original_transaction_idstringOriginal subscription transaction ID
is_family_sharebooleanWhether the purchase was family shared
country_codestringISO country code of the subscriber
currencystringISO 4217 currency code
pricenumberPrice in USD
price_in_purchased_currencynumberPrice in the currency the purchase was made in
storestringStore the purchase was made on (e.g., APP_STORE)
takehome_percentagenumberEstimated percentage of the price taken home after store commission
tax_percentagenumberEstimated percentage taken as tax
commission_percentagenumberEstimated percentage taken by the store as commission
offer_codestringOffer code applied to the purchase, if any
subscriber_attributesjsonSubscriber attributes at the time of the event
experimentsjsonExperiments the subscriber was enrolled in
cancel_reasonstringReason for cancellation (CANCELLATION events only)
expiration_reasonstringReason for expiration (EXPIRATION events only)
api_versionstringRevenueCat webhook API version
eventjsonFull RevenueCat event object

On this page