Linking Revolut Business 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.

PostHog Wizard hedgehog

The Revolut Business connector syncs your Revolut Business banking data into PostHog, including accounts, transactions, expenses, counterparties, cards, team members, and accounting settings. Use it to analyze spending and cash flow alongside your product data.

Prerequisites

You need a Revolut Business account with access to the API Console in the Revolut Business app, where you create an API key.

Create a Revolut Business API key

  1. In the Revolut Business app, open the API Console and create an API key for the environment you want to sync: Production or Sandbox.
  2. Turn off request signing for the key. PostHog doesn't sign requests, so Revolut rejects keys that require signing.
  3. Give the key the read permission for each table you want to sync:

PermissionTables
accounts:readaccounts
transactions:readtransactions
expenses:readexpenses
counterparties:readcounterparties
cards:readcards
card-invitations:readcard_invitations
payout-links:readpayout_links
team-members:readteam_members, roles
accounting-categories:readaccounting_categories
labels:readlabel_groups, labels
tax-rates:readtax_rates
departments:readdepartments
payment-drafts:readpayment_drafts

PostHog connects with the API key as a bearer token. It doesn't use OAuth, because Revolut marks OAuth tokens for this API as deprecated.

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 Revolut Business.
  3. Enter your API key from the Revolut Business API Console.
  4. Select the Environment that matches your API key: Production (default) or Sandbox.
  5. Click Next.
  6. Select the tables you want to sync and configure the sync method and frequency for each. Click Import to start syncing.

Note: The expenses table is only available in Production. If you select Sandbox, PostHog can't sync expenses.

Configuration

OptionTypeRequired
API keypasswordYes
EnvironmentselectYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
accounts

Accounts of the Revolut Business organization, with their currency and current balance.

Full refresh——
transactions

Historical transactions across all accounts, such as card payments, transfers, exchanges and fees.

Incremental, Full refreshcreated_at—
expenses

Expenses for the transactions of the business, with their review state, splits and receipts.

Full refresh——
counterparties

Counterparties (payment recipients) saved by the business.

Full refresh——
cards

Cards issued in the organization, excluding terminated cards, with their spending controls.

Full refresh——
card_invitations

Invitations that let a team member claim a new card.

Full refresh——
payout_links

Payout links created to send money to recipients who claim it with their own details.

Full refresh——
team_members

Team members of the business, with their role, department and manager.

Full refresh——
roles

Team roles defined for the business.

Full refresh——
accounting_categories

Accounting categories used to classify expenses.

Full refresh——
label_groups

Groups of labels used to tag expenses, such as cost centers.

Full refresh——
labels

Labels in each label group.

Full refresh——
tax_rates

Tax rates available to apply to expenses.

Full refresh——
departments

Departments of the business that team members can belong to.

Full refresh——
payment_drafts

Payment drafts that have not been sent for processing yet, from every source.

Full refresh——

PostHog syncs 15 tables. A few behave differently from a plain API export:

  • labels - PostHog reads labels from each label group and adds a label_group_id column. The primary key is label_group_id plus id, because label IDs are only unique within their group.
  • payout_links - PostHog drops the url field from each row, because anyone with an active link and the recipient name can claim the payout.
  • payment_drafts - Includes drafts from every source, not only drafts created through the API.
  • cards - Excludes terminated cards.

For details on the underlying data, see the Revolut Business API reference.

Sync methods

The transactions table supports incremental sync on created_at. A transaction's state can change after it's created (for example, from pending to completed, declined, or reverted), but the Revolut API only filters on created_at. To pick up these changes, each incremental sync re-reads a 30-day lookback window by default, so long card pre-authorizations (like hotels and car rentals) are refreshed before they settle. You can change the lookback in the schema settings.

Because each run re-reads rows, transactions offers incremental (merge) sync only, not append only. A transaction that changes state after the lookback window is only updated by a full refresh.

All other tables sync with full refresh.

Limitations

  • Expenses can be missed during a sync - PostHog pages through expenses by expense_date, which moves from the transaction's creation time to its completion time when an expense completes. An expense that moves during a full refresh can be missed until the next sync.
  • Request signing isn't supported - Keys with request signing turned on fail to authenticate.

Troubleshooting

  • 401 error - Revolut rejected the API key. Check that the key is valid, matches the selected environment, and has request signing turned off.
  • 403 error - The API key can't read the table. Add the read permission for that table in the API Console (see Create a Revolut Business API key).
  • Expenses unavailable - Revolut only provides expenses in the Production environment. Switch the source to Production to sync expenses.

If your sync is still failing, see the Data warehouse troubleshooting guide.

Still have questions?

Was this page useful?