Polar is popular with developers who sell software, subscriptions and digital products, and it is the merchant of record. Reveata adds what Polar's dashboard does not track: which visit, channel and campaign each order came from.
What you get
- Paid orders as revenue, net of tax. Subscription cycles after the first are renewals and keep the first payment's source.
- Refunds booked as negative revenue on the day they succeed, with the order's source.
- MRR, churn, upgrades and downgrades from your Polar subscriptions, including subscriptions migrated to Polar from another provider.
- Twelve months of history on connect.
Because Polar is the merchant of record, chargebacks are handled by Polar and are not taken out of your revenue in Reveata.
Two ways to connect
| Connect with Polar | Organization access token | |
|---|---|---|
| Setup | Approve in Polar | Create a polar_oat_… token, paste it |
| Webhook | Created for you | Created for you with webhooks:write, otherwise added by hand |
| Scope | One organization, picked on Polar's consent screen | Exactly one organization |
With OAuth, Reveata asks for read access to your organization, orders, subscriptions and refunds, plus webhook management for its own endpoint. An approval or token that covers several organizations is refused, so two businesses are never mixed. When you add the endpoint by hand, choose the Raw format in Polar. The API is described in Polar's API reference (opens in a new tab).
Reveata subscribes to order.paid, order.updated, order.refunded, refund.created, refund.updated and the subscription events (subscription.created, updated, active, canceled, uncanceled, revoked, past_due, paused, resumed and migrated).
How orders are matched to visits
Add the ids to the checkout metadata when your server creates the checkout:
const checkout = await polar.checkouts.create({
products: [productId],
successUrl: 'https://example.com/thanks',
metadata: { reveata_visitor_id: visitorId, reveata_session_id: sessionId },
});Reveata looks for reveata_visitor_id, reveata_session_id and reveata_user_id in the order's metadata, its custom field data and the customer's metadata. Get the ids from window.reveata.metadata() in the browser or from the _dt_v and _dt_s cookies on your server.
Checkout links you share without creating a checkout on your server carry no metadata. Those orders match by the buyer's email for visitors you identified. A success URL with ?checkout_id={CHECKOUT_ID} also works: the order is linked when it arrives, since Polar orders carry their checkout id.