Skip to content

Integration

Recurly + Bastle

What syncs from Recurly, what it makes possible, and how to connect it.

Beta

This connector works and can be connected today, with edge cases still being closed. Check the first month against the source before you rely on it.

What does the Recurly integration do?

The Recurly integration reads a Recurly site through the v3 API at version v2021-02-25, importing plans, accounts, subscriptions and transactions in that order so that references resolve as they are written. Webhook notifications are verified by HMAC signature with a five-minute replay tolerance and optional endpoint basic auth, and both US and EU data regions are supported.

What syncs

Bastle reads the following from Recurly and normalises it into the same entities every other source produces. Ingestion is read-only: nothing is created, changed or cancelled upstream.

  • Plans → Bastle plans, including plans referenced by a subscription but missing from the plan sweep, which are fetched individually so no subscription lands without its plan.
  • Accounts → customers, and subscriptions with their add-ons.
  • Transactions → charges and refunds.
  • Dunning notifications, which set and clear the delinquency flag.
  • Incremental syncs by updated-at cursor, so a resumed import picks up rather than restarts.
  • Cadence: webhook-driven for changes; historical import run manually today.

Once connected

What Recurly data unlocks

Connecting a source is not the point; what you can answer afterwards is. These are the questions this data makes answerable.

Interruptible imports

Backfill persists one page at a time in plan, account, subscription, transaction order, so progress survives an interruption rather than starting over from the first page.

EU data residency respected

The connector targets Recurly's EU API host when the source is configured for the EU region, so an EU-resident Recurly site is not read through a US endpoint.

Dunning visible where you act on it

Recurly's dunning event notifications land as Bastle events, which is what the failed-payment queue and Recover campaigns read from.

Setup

Connecting Recurly

The whole flow, start to first chart. No implementation call and no data engineer.

  1. Create a Recurly API keyIntegrations → API Credentials in Recurly. The key is used as the basic-auth username against the v3 API.
  2. Connect the site in Settings → IntegrationsSupply the API key and choose the data region — US or EU. The region determines which Recurly host Bastle reads from.
  3. Configure a webhook endpoint in RecurlyPoint it at /api/webhooks/recurly and enable signature verification, then store the signing secret in Bastle. Endpoint basic auth can be configured as well; when it is, both checks must pass.
  4. Ask us to run the historical importBackfill runs manually during onboarding while the scheduled runner is being wired.

Ordering is a correctness property, not an optimisation

Recurly backfill walks plans, then accounts, then subscriptions, then transactions, persisting each page as it goes. The order exists so a subscription is never written before the plan and account it points at. Occasionally a subscription references a plan the sweep did not return — usually deleted or created mid-import — and the connector fetches that plan individually rather than dropping the subscription. A silently skipped subscription is a permanently wrong MRR figure, and it is the kind of error nobody notices until a board meeting.

Signature verification

Recurly signs JSON notifications with a timestamped HMAC. Bastle recomputes it, compares in constant time, and rejects anything older than five minutes so a captured request cannot be replayed later. Where endpoint basic auth is also configured, every configured method must pass — enabling a second check never weakens the first.

Rate limits

List calls page at 200 records sorted by updated-at ascending, which is Recurly's own recommendation for a stable cursor. Rate-limited and unavailable responses honour the retry headers Recurly returns and back off up to five times rather than hammering the API, so a large import is slow before it is disruptive.

What "beta" means here

The connector is written and the inbound webhook route verifies signatures and writes normalised rows, so a connected account keeps up with changes as they happen. What is not self-serve yet is the historical backfill: the code that walks your provider's API from the beginning exists in the connector, but the scheduled runner that triggers it is still a stub, so first-time imports are run by hand with us. Expect to email someone once during setup, and expect that to stop being true.

Bastle is free while in beta, connectors included. There is no tier that unlocks a provider.

Related

Other sources

Companies billing through Recurly usually have at least one of these in the stack too.

Recurly and Bastle: common questions

Does Bastle support Recurly's EU region?

Yes. Setting the source region to EU makes the connector read from Recurly's EU API host rather than the US one, so an EU-resident site is not accessed through a US endpoint.

What happens if a large import is interrupted?

Progress is kept. Backfill persists each page as it is fetched and syncs incrementally from an updated-at cursor, so a restarted import resumes rather than replaying everything from the beginning.

Which Recurly API version does Bastle use?

v3 at version v2021-02-25, requested explicitly on every call. Pinning the version means a future Recurly release cannot silently change field shapes underneath your metrics.

Does Bastle write anything back to my billing provider?

No. Bastle reads from your billing provider and never mutates it. It does not cancel subscriptions, apply coupons, retry charges through the provider, or update stored cards. Read-only API credentials are enough for every provider connector, and using them is the recommended setup.

Connect Recurly and see your own history.

Bastle backfills what Recurly will serve, then keeps current over webhooks — usually a couple of minutes before the first real chart. Free while in beta, no card required.