Setup Guide

How to connect PayPal to Margin — import payments automatically

5 minutes · PayPal integration · Payment sync

Connecting PayPal to Margin automatically imports your PayPal payments, refunds, and withdrawals as transactions — so all your income sources are recorded in one place without manual effort.

What does the PayPal integration do?

When you connect PayPal, Margin:

Before you start

You need a PayPal Business account. A personal PayPal account does not provide API access. If you're currently on a personal account, you can upgrade to Business for free in PayPal settings.

Step-by-step: connecting PayPal via API

  1. 1
    Log in to PayPal Developer
    Go to developer.paypal.com and click Log in to Dashboard. Sign in with the same email and password you use for your PayPal Business account.
  2. 2
    Open My Apps & Credentials
    In the top navigation, click My Apps & Credentials. At the top of the page, make sure the toggle is set to Live — not Sandbox.
  3. 3
    Create a REST API app
    Click Create App. Enter a name (e.g. "Margin") and select Merchant as the app type. Leave the default permissions and click Create App.
  4. 4
    Copy your Client ID and Secret
    Under Live credentials, you'll see your Client ID. Click Show to reveal the Secret. Copy both — you'll need them in Margin.
    Client ID: AaBbCcDd1234…
    Secret: EeFfGgHh5678…
  5. 5
    Enter credentials in Margin
    In Margin, go to Banking → Add account → PayPal. Paste your Client ID and Secret into the fields and click Sync. Margin imports your PayPal transaction history immediately.
Make sure you use Live credentials, not Sandbox

The PayPal Developer Dashboard defaults to Sandbox mode for testing. Sandbox credentials will not import any real transactions. Switch the toggle to Live before copying your credentials.

What permissions does Margin need?

When creating the REST API app, Margin only needs access to Transaction Search — the ability to read your PayPal transaction history. Margin cannot:

If you want to limit permissions further, you can uncheck everything except Transaction Search when creating your app.

Alternative: import PayPal transactions via CSV

If you'd prefer not to use the API, or you need to import historical data beyond the sync window, you can export a CSV from PayPal and import it into Margin manually.

  1. Log in to PayPal and go to Activity → All Transactions
  2. Click Statements in the top right
  3. Select your date range and click Download
  4. Choose CSV format
  5. In Margin, use the CSV import feature — see the import transactions guide
Also using Stripe?

You can connect both PayPal and Stripe to Margin simultaneously. All payment sources appear together in your transaction list, making categorisation and quarterly reporting straightforward.

Common questions

I only have a personal PayPal account — can I still connect?
No — PayPal only provides API access to Business accounts. You can upgrade your personal PayPal to Business for free at paypal.com/upgrade. Your payment history is preserved when you upgrade.
How far back does the PayPal sync go?
Margin imports PayPal transactions from the start of the current tax year by default. You can import further back using the CSV export method described above.
Will PayPal fees show up in Margin?
PayPal fees are reflected in your net payouts. Margin imports gross payment amounts. You can record the difference as a "Payment processing fees" expense when categorising your transactions.
My PayPal transactions are in multiple currencies — is that handled?
Yes. Margin imports all PayPal transactions in their original currency. For MTD and tax purposes, amounts are converted to GBP using the exchange rate at the time of the transaction.
Can I disconnect PayPal from Margin?
Yes — go to Settings → Integrations and remove your PayPal credentials. You should also delete the REST API app from developer.paypal.com to fully revoke access.

All your income in one place

Connect PayPal and Stripe alongside your bank account — Margin brings every income source together for clean MTD quarterly updates.

Start free trial