Linking Polar as a source

Connect your Polar.sh account to sync customers, products, orders, subscriptions, and more into the PostHog data warehouse.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to Polar.
  3. Next, you need an Organization Access Token from Polar. Create one in your Polar account and grant it the following read scopes: benefits:read, checkouts:read, customers:read, orders:read, organizations:read, products:read, refunds:read, and subscriptions:read. Copy the token value (it starts with polar_oat_).
  4. Back in PostHog, enter the token in the Organization Access Token field and click Next.
  5. Select the tables you want to sync, set the sync method and frequency, then click Import.

Once the syncs are complete, you can start using Polar data in PostHog.

Available tables

TableDescriptionSync method
customersCustomers in your Polar organizationFull refresh
productsProducts you sell on PolarFull refresh
ordersOrders placed through PolarFull refresh
subscriptionsActive and past subscriptionsFull refresh
refundsRefunds issuedFull refresh
checkoutsCheckout sessionsFull refresh
benefitsBenefits attached to your productsFull refresh
organizationsYour Polar organizationsFull refresh

Incremental tables sync only new or updated records on each run. Full refresh tables reload all data on each sync.

Configuration

OptionTypeRequired
Organization Access TokenpasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
customers

A customer of an organization who can purchase products and hold subscriptions.

Full refresh
products

A product that can be purchased or subscribed to in Polar.

Full refresh
orders

A completed purchase of a product, including one-time and subscription orders.

Full refresh
subscriptions

A recurring subscription of a customer to a product.

Full refresh
refunds

A refund issued against an order in Polar.

Full refresh
checkouts

A checkout session for purchasing a product in Polar.

Full refresh
benefits

A benefit that can be granted to customers through products in Polar.

Full refresh
organizations

An organization on Polar that sells products and owns customers.

Full refresh

Community questions

Was this page useful?

Questions about this page? or post a community question.