AptlyStar

RevenueCat

Manage in-app subscriptions and entitlements

Nutzungsanweisungen

Integrate RevenueCat into the workflow. Manage subscribers, entitlements, offerings, and Google Play subscriptions. Retrieve customer subscription status, grant or revoke promotional entitlements, record purchases, update subscriber attributes, and manage Google Play subscription billing.

Tools

revenuecat_get_customer

Retrieve subscriber information by app user ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe subscriber object with subscriptions and entitlements
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects
metadataobjectSubscriber summary metadata
↳ app_user_idstringThe app user ID
↳ first_seenstringISO 8601 date when the subscriber was first seen
↳ active_entitlementsnumberNumber of active entitlements
↳ active_subscriptionsnumberNumber of active subscriptions

revenuecat_delete_customer

Permanently delete a subscriber and all associated data

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber to delete

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the subscriber was deleted
app_user_idstringThe deleted app user ID

revenuecat_create_purchase

Record a purchase (receipt) for a subscriber via the REST API

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat API key (public or secret)
appUserIdstringJaThe app user ID of the subscriber
fetchTokenstringJaThe receipt token or purchase token from the store (App Store receipt, Google Play purchase token, or Stripe subscription ID)
productIdstringJaThe product identifier for the purchase
pricenumberNeinThe price of the product in the currency specified
currencystringNeinISO 4217 currency code (e.g., USD, EUR)
isRestorebooleanNeinWhether this is a restore of a previous purchase
platformstringNeinPlatform of the purchase (ios, android, amazon, macos, stripe). Required for Stripe and Paddle purchases.

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe updated subscriber object after recording the purchase
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects

revenuecat_grant_entitlement

Grant a promotional entitlement to a subscriber

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber
entitlementIdentifierstringJaThe entitlement identifier to grant
durationstringJaDuration of the entitlement (daily, three_day, weekly, monthly, two_month, three_month, six_month, yearly, lifetime)
startTimeMsnumberNeinOptional start time in milliseconds since Unix epoch. Set to a past time to achieve custom durations shorter than daily.

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe updated subscriber object after granting the entitlement
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects

revenuecat_revoke_entitlement

Revoke all promotional entitlements for a specific entitlement identifier

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber
entitlementIdentifierstringJaThe entitlement identifier to revoke

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe updated subscriber object after revoking the entitlement
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects

revenuecat_list_offerings

List all offerings configured for the project

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat API key
appUserIdstringJaAn app user ID to retrieve offerings for
platformstringNeinPlatform to filter offerings (ios, android, stripe, etc.)

Ausgabe

ParameterTypBeschreibung
current_offering_idstringThe identifier of the current offering
offeringsarrayList of offerings
↳ identifierstringOffering identifier
↳ descriptionstringOffering description
↳ packagesarrayList of packages in the offering
↳ identifierstringPackage identifier
↳ platform_product_identifierstringPlatform-specific product identifier
metadataobjectOfferings metadata
↳ countnumberNumber of offerings returned
↳ current_offering_idstringCurrent offering identifier

revenuecat_update_subscriber_attributes

Update custom subscriber attributes (e.g., $email, $displayName, or custom key-value pairs)

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber
attributesjsonJaJSON object of attributes to set. Each key maps to an object with a "value" field. Example: {"$email": {"value": "user@example.com"}, "$displayName": {"value": "John"}}

Ausgabe

ParameterTypBeschreibung
updatedbooleanWhether the subscriber attributes were successfully updated
app_user_idstringThe app user ID of the updated subscriber

revenuecat_defer_google_subscription

Defer a Google Play subscription by extending its billing date by a number of days (Google Play only)

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber
productIdstringJaThe Google Play product identifier of the subscription to defer (use the part before the colon for products set up after Feb 2023)
extendByDaysnumberJaNumber of days to extend the subscription by (1-365)

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe updated subscriber object after deferring the Google subscription
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects

revenuecat_refund_google_subscription

Refund and optionally revoke a Google Play subscription (Google Play only)

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber
productIdstringJaThe Google Play product identifier of the subscription to refund

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe updated subscriber object after refunding the Google subscription
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects

revenuecat_revoke_google_subscription

Immediately revoke access to a Google Play subscription and issue a refund (Google Play only)

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRevenueCat secret API key (sk_...)
appUserIdstringJaThe app user ID of the subscriber
productIdstringJaThe Google Play product identifier of the subscription to revoke

Ausgabe

ParameterTypBeschreibung
subscriberobjectThe updated subscriber object after revoking the Google subscription
↳ first_seenstringISO 8601 date when subscriber was first seen
↳ original_app_user_idstringOriginal app user ID
↳ original_purchase_datestringISO 8601 date of original purchase
↳ management_urlstringURL for managing the subscriber subscriptions
↳ subscriptionsobjectMap of product identifiers to subscription objects
↳ store_transaction_idstringStore transaction identifier
↳ original_transaction_idstringOriginal transaction identifier
↳ purchase_datestringISO 8601 purchase date
↳ original_purchase_datestringISO 8601 date of the original purchase
↳ expires_datestringISO 8601 expiration date
↳ is_sandboxbooleanWhether this is a sandbox purchase
↳ unsubscribe_detected_atstringISO 8601 date when unsubscribe was detected
↳ billing_issues_detected_atstringISO 8601 date when billing issues were detected
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ ownership_typestringOwnership type (purchased, family_shared)
↳ period_typestringPeriod type (normal, trial, intro, promotional, prepaid)
↳ storestringStore the subscription was purchased from (app_store, play_store, stripe, etc.)
↳ refunded_atstringISO 8601 date when subscription was refunded
↳ auto_resume_datestringISO 8601 date when a paused subscription will auto-resume
↳ product_plan_identifierstringGoogle Play base plan identifier (for products set up after Feb 2023)
↳ entitlementsobjectMap of entitlement identifiers to entitlement objects
↳ grant_datestringISO 8601 grant date
↳ expires_datestringISO 8601 expiration date
↳ product_identifierstringProduct identifier
↳ is_activebooleanWhether the entitlement is active
↳ will_renewbooleanWhether the entitlement will renew
↳ period_typestringPeriod type (normal, trial, intro, promotional)
↳ purchase_datestringISO 8601 date of the latest purchase or renewal
↳ storestringStore the entitlement was granted from
↳ grace_period_expires_datestringISO 8601 grace period expiration date
↳ non_subscriptionsobjectMap of non-subscription product identifiers to arrays of purchase objects

On this page