Recurly

Configuration guide for the Recurly connector in Recurly Engage, including activation, data sync, and 1-Click subscription actions.

The Recurly connector links your Recurly account to Recurly Engage, so you can sync subscription data and run billing actions right from your prompts. Apply coupons, switch plans, pause or resume subscriptions, and more — without leaving the prompt interface.
Available on all Recurly Engage plans

Prerequisites

  • Company or App Administrator permissions in Recurly Engage
  • A Recurly account with API access and a valid API key
  • The Integrations role in Recurly Subscription Management to configure Automated Exports — some exports also require the Admin role
NoteIf your application uses custom user IDs (Account Codes), turn on "Use Account Code" in the connector settings.

Definition

The Recurly connector imports subscription traits from your Recurly account into Recurly Engage every night, and gives you 1-Click actions for managing subscriptions — applying coupons, switching plans, pausing, and resuming — directly from your prompts.

Key benefits

Billing without leaving the prompt Apply coupons, switch plans, pause, and resume subscriptions right from the prompt interface.
Data that stays current Nightly imports keep your segments and prompts aligned with the latest subscription state.
Flexible configuration Map your own account codes and choose from a range of subscription actions.

Key details

Activation

1

Generate an API key

In the Recurly console, generate an API key for the connector to use.

2

Add the key to Recurly Engage

Go to Settings → Integrations → Recurly and paste your API key.

3

Set Use Account Code

Toggle Use Account Code to On if you map your own user IDs to Recurly account codes.

4

Activate the connector

Toggle Active to On.

For help generating a key, see the API key instructions.

Configure automated exports in Recurly Subscription Management

The connector's nightly sync depends on four exports being enabled on the Recurly Subscription Management side.

WarningWithout these four exports enabled, the connector still shows as Active in Recurly Engage — but no traits will populate.

In Recurly Subscription Management, go to Integrations → Automated Exports and enable each of the following, filtered on Modified Yesterday:

ExportVersionFilter
Billing Infov6Modified Yesterday
Invoices — Summaryv5Modified Yesterday
Subscriptionsv5Modified Yesterday
External Subscriptionsv5Modified Yesterday — only if you use App Management

The Modified Yesterday filter keeps each export scoped to the previous day's changes, which is what lets Recurly Engage stay in sync on its nightly cadence. For general setup steps, see Automated exports.

Verify the connection

Once exports are enabled in Recurly Subscription Management and the connector is active in Recurly Engage, confirm both sides are set up correctly:

1

Check the connector status

In Recurly Engage, go to Settings → Integrations → Recurly and confirm the connector shows Active.

2

Confirm the exports

In Recurly Subscription Management, go to Integrations → Automated Exports and confirm all four exports are enabled with a recent successful run.

3

Check your user traits

In Recurly Engage, go to Settings → User Traits and confirm the imported attributes are populating.

If traits aren't appearing after the first nightly cycle, check that:

  • All four exports are still enabled and haven't been superseded by a newer version. Recurly doesn't auto-upgrade export versions, so when a new version is released you'll need to delete and recreate the export configuration manually.
  • The API key in the connector hasn't expired or been regenerated on the Recurly Subscription Management side.
  • The Modified Yesterday filter is applied to every export. Without it, an export can return more or less data than the connector expects.

Data integration

Automated exports sync on a nightly basis, and each run imports the subscription traits below. Learn more about importing user traits with Recurly, or about configuring Automated Exports in Recurly Subscription Management. To receive near real-time data instead of waiting for the nightly sync, integrate with Recurly webhooks.

TraitDescription
stateCurrent state of the subscription (pending, active, canceled, expired)
plan_codePlan code the customer is subscribed to
currencyCurrency of the subscription
current_period_started_atDate and time the current billing period starts
current_period_ends_atDate and time the current billing period ends
trial_started_atDate and time the trial period began
trial_ends_atDate and time the trial period ends
activated_atDate and time the subscription became active
canceled_atDate and time the subscription was canceled
expires_atDate and time the subscription will churn
statusInvoice status (pending, processing, past_due, paid, failed, voided)
maintenance_urlLink to the customer's hosted account maintenance page, if enabled
total_recurring_amountThe total amount, in the subscription's currency, billed on a recurring basis

Supported actions

Once your connector is active and data is synced, you can attach these 1-Click actions to prompt interactions.

NoteEach user must have the account_code or account_number trait present for these actions to work.
ActionDescriptionAPI integrationAdditional instructions
Apply Coupon CodeApplies a coupon code to the user's account or subscriptionCoupon RedemptionSelect the coupon code
Pause SubscriptionPauses a user's subscriptionPause SubscriptionSelect how many billing cycles to pause for
Resume SubscriptionResumes a paused subscriptionResume Subscription
Switch SubscriptionSwitches the user to a new planSubscription ChangeSelect the plan
Create SubscriptionCreates a subscription for an existing accountCreate SubscriptionSelect the plan and enter the currency
Reactivate SubscriptionReactivates a canceled subscriptionReactivate Subscription
Update Subscription PriceUpdates the price of an active subscriptionSubscription Change
Convert TrialConverts a trial to a paid subscriptionConvert Trial
Record UsageLogs a usage record for a subscription add-onLog Usage RecordSelect the add-on and amount
Cancel SubscriptionStops auto-renewal for an active subscriptionCancel SubscriptionSelect refund option

Did this page help you?