Linking Xsolla as a source
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

The Xsolla connector syncs your payment and subscription data into PostHog, including transactions, subscriptions, payouts, reports, promotions, projects, and per-project subscription and Store details.
Prerequisites
You need an Xsolla merchant account with:
- Merchant ID – Find it in Publisher Account under Company settings > Company.
- Company API key – Create one in Publisher Account under Company settings > API keys. Use a company API key, not a project API key, because project keys cannot read merchant-level reports.
Adding a data source
- In PostHog, go to the Data pipeline page and select the Sources tab.
- Click + New source and then click Link next to Xsolla.
- Enter your Merchant ID (a numeric value, e.g.
123456). - Enter your API key (the company API key from Publisher Account).
- Click Next.
- Select the tables you want to sync, set the sync method and frequency, then click Import.
PostHog validates your credentials by calling the Xsolla API. If validation fails, check that the merchant ID is numeric and that you're using a company API key.
Configuration
| Option | Type | Required |
|---|---|---|
Merchant ID | text | Yes |
API key | password | Yes |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
transactions | Payments made in your games, including payments that did not complete. | Incremental, Full refresh | create_date | — |
subscriptions | Subscriptions across all projects of the merchant. | Full refresh | — | — |
subscription_payments | Subscription charges for each project. | Full refresh | — | — |
subscription_plans | Subscription plans for each project. | Full refresh | — | — |
subscription_products | Subscription products for each project. | Full refresh | — | — |
payouts | Payouts from Xsolla to the merchant. | Full refresh | — | — |
reports | Monthly financial reports for the merchant. | Full refresh | — | — |
promotions | Promotions configured for the merchant's projects. | Full refresh | — | — |
promotion_rewards | Rewards of each promotion: purchase discounts, package bonuses, item rewards, and subscription trials. | Full refresh | — | — |
projects | Projects in the merchant's Publisher Account. | Full refresh | — | — |
payouts_breakdown | Payment, commission, tax, and payout totals for each currency, one row for each calendar month. | Full refresh |





