# Connecting SendOwl

> Connect SendOwl to Oskar with its API key and webhook signing secret, and how Oskar reads your subscribers.

If you bill through SendOwl rather than Stripe, SendOwl tells Oskar who subscribes, what they pay, and when a subscription changes. Oskar reads it through SendOwl's API and listens to its webhooks. It never creates, changes, refunds or cancels anything.

## Connect your account

1. In SendOwl, open **Settings → Advanced settings → Developer → SendOwl API** and switch the API on if it isn't already. Note the **API key**, the **API secret** and the **Signing key secret**.
2. In setup's first step, or later on **Integrations**, open **Connect your SendOwl account**, paste the three values and choose **Connect SendOwl**.

Oskar then reads your account in the background. You'll see its progress as "Reading your SendOwl account". Once it's done, Integrations shows how many paying customers it found and when it last synced.

SendOwl's API key can't be limited to reading, so Oskar's promise is in its own code: every request it makes to SendOwl is a read. [Read-only by design](/docs/read-only-data-access) lists each one.

## Keep it up to date with webhooks

Oskar reads your account once a night. To hear about changes within moments, point SendOwl's webhooks at Oskar:

1. On Integrations, open **Keep it up to date with webhooks** under SendOwl and copy the address shown. It's unique to your workspace.
2. In SendOwl, open **Settings → Advanced settings → Developer → Webhooks** and add a webhook with that address for each of these events: **Subscription setup**, **Subscription active**, **Subscription cancelling**, **Subscription cancelled**, **Subscription complete**, **New payment**, **Order failed**, **Order charged back** and **In dispute**.

Oskar checks the signature SendOwl puts on each request against your signing key secret, and ignores anything that doesn't match.

## What Oskar reads

- **Subscription plans:** name, recurring price, billing frequency, trial price and length, and currency.
- **Subscribers,** including cancelled ones: each subscription order's state, the buyer's name and email address, SendOwl's customer id, and when it was created and last changed.
- **Payments:** each transaction's amount, currency and date, as SendOwl reports them.

Oskar only watches subscribers with a live subscription, or one that ended in the last 30 days, since a fresh cancellation can still be acted on. One-off purchases, and subscribers who had already left before you connected, aren't shown.

## How Oskar uses SendOwl data

### Subscription status

SendOwl describes a subscriber by the state of their order. Oskar reads it as:

- **Subscription active:** an active subscription, or a trial while the subscriber is still within the plan's trial period (for example the first 7 days).
- **Subscription cancelling:** active, but set to cancel at the end of the billing period.
- **Subscription cancelled**, **subscription complete** and **chargeback:** cancelled.
- **In dispute:** past due.
- **Subscription setup** and **failed:** not started.

With the webhooks in place, Oskar knows each payment date and works out when the next one is due from the plan's frequency. A subscription still marked active more than three days after that is treated as **past due**, the same signal a failed Stripe payment gives, so a renewal that quietly stops is noticed. Without the webhooks, Oskar goes by the subscription's state in SendOwl.

### Monthly recurring revenue

Each subscriber's MRR is the plan's recurring price spread over its billing frequency: annual plans are divided by twelve, and weekly or daily plans are converted to a monthly amount. SendOwl has no seats, so every subscriber counts as one.

### Matching subscribers to product usage

SendOwl customers are often individuals paying with personal email addresses. Oskar can match them to PostHog by their **exact email address**, as well as by company email domain. You choose the rule in setup's second step; see [Connecting PostHog](/docs/connecting-posthog).

## Disconnecting

Delete or regenerate the API key in SendOwl and remove the webhooks you added. Oskar then receives nothing more. What Oskar already read stays in your workspace until you ask us to delete it. Email hello@infinitestack.co.

## Next

- [Connecting PostHog](/docs/connecting-posthog), to add product usage.
- [How Oskar works](/docs/how-oskar-works).
