Skip to main content
skill CX Codex

paypal-import — Claude Code skill: import PayPal CSV exports

Turns a PayPal CSV export into ledger entries: payments, fees, refunds and currency conversions. Useful if you keep books in Open Accountant.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openaccountant/skills --skill paypal-import -a claude-code
Open on GitHub

What paypal-import does

The skill reads a PayPal CSV and maps it onto Open Accountant fields. Every payment received becomes two rows: revenue at the gross amount, plus a separate expense row for the PayPal fee. Refunds and chargebacks land as negative revenue, and the conversion rate gets attached to the parent transaction's notes.

Filtering happens before anything is written. Only completed transactions come through; bank transfers, deposits, authorizations and currency conversions are skipped, because a PayPal-to-bank transfer will show up in your bank statement anyway and importing it twice skews the books. Duplicates are caught by Transaction ID through transaction_search, and categorize assigns categories.

PayPal exports use Windows-1252 encoding, so garbled characters are a real possibility. If the file won't parse, save it as UTF-8 and retry. Dates come as MM/DD/YYYY on US accounts and DD/MM/YYYY elsewhere; the skill detects the format from the account locale, so unusual settings are worth a quick look before you confirm the import.

What it helps with

  • split a PayPal export into revenue and fee rows
  • record refunds and chargebacks as negative revenue
  • avoid double-counting PayPal-to-bank transfers
  • catch duplicate transactions by Transaction ID
  • assign categories to imported PayPal payments

Example prompts for the agent

  • Import the PayPal export at ~/Downloads/activity.csv into Open Accountant
  • Parse this PayPal CSV with revenue, fees and refunds as separate entries
  • Check this PayPal file for duplicate Transaction IDs and show me what would be imported

How to install paypal-import

1Skills CLI (Vercel)

npx skills add openaccountant/skills --skill paypal-import -a claude-code

2Manually: put the files in place

~/.claude/skills/paypal-import/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/paypal-import/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about paypal-import

How do I install paypal-import in Claude?

Run npx skills add openaccountant/skills --skill paypal-import -a claude-code. The skill lands at ~/.claude/skills/paypal-import/SKILL.md.

What does paypal-import do?

It reads a PayPal CSV export and creates Open Accountant entries: revenue at the gross amount, a separate fee row, and negative revenue for refunds. Bank transfers and currency conversions are skipped.

Why won't my PayPal CSV parse?

PayPal exports use Windows-1252 encoding. If you see garbled characters, save the file as UTF-8 and run the import again.

Source text

SKILL.md · MIT
---
name: paypal-import
description: >
  Import PayPal CSV exports with fee, refund, and currency handling.
---

# PayPal Import

## Overview
Import transaction data from PayPal CSV exports. Handles payments received, fees, refunds, and currency conversions. PayPal CSVs include many transaction types — this skill filters to financially meaningful entries and maps them to Open Accountant's format.

## Wilson Tools Used
- `transaction_search` — check for duplicates against existing transactions
- `categorize` — assign categories to imported PayPal transactions
- `export_transactions` — export reconciled PayPal data

## Column Mapping

| PayPal CSV Column | Open Accountant Field | Notes |
|---|---|---|
| `Date` | `date` | Transaction date (MM/DD/YYYY format) |
| `Time` | — | Not stored, date is sufficient |
| `Name` | `description` | Counterparty name |
| `Type` | — | Used for filtering (see workflow) |
| `Status` | — | Only import `Completed` transactions |
| `Gross` | `amount` | Transaction amount before fees |
| `Fee` | `amount` (separate row) | PayPal fee (negative = expense) |
| `Net` | — | Calculated, not stored directly |
| `Transaction ID` | `reference_id` | PayPal transaction ID for dedup |
| `Currency` | `currency` | 3-letter ISO code |
| `Subject` or `Item Title` | `notes` | Optional detail |

## Workflow
1. Ask the user for the PayPal CSV file path.
2. Parse the CSV (PayPal uses comma-separated with quoted fields).
3. Filter by transaction type:
   - **Import**: `Payment Received`, `Mobile Payment`, `Website Payment`, `Invoice Received`
   - **Import**: `Refund`, `Reversal`, `Chargeback`
   - **Import**: `Subscription Payment`
   - **Skip**: `Transfer to Bank`, `Bank Deposit` (appears in bank import)
   - **Skip**: `Currency Conversion` (handled as part of the parent transaction)
   - **Skip**: `Authorization`, `Pending`, `Temporary Hold`
4. Filter by status: only `Completed` transactions.
5. For each payment received, create two transactions:
   - **Revenue**: gross amount (positive), category "Revenue:PayPal"
   - **Fee**: fee amount (negative), category "Fees:Payment Processing"
6. For refunds/reversals, create a negative revenue transaction.
7. For currency conversions: attach the conversion rate to the parent transaction notes.
8. Deduplicate using PayPal Transaction ID.
9. Preview and confirm import.

## Without Wilson
To work with PayPal exports manually:

### Downloading from PayPal
1. Log in at **paypal.com**
2. Go to **Activity** (top navigation)
3. Click **Statements** > **Activity download** (or **Reports** > **Activity download** in business accounts)
4. Select date range (max 1 year at a time)
5. File type: **CSV**
6. Click **Download**
7. For business accounts: **Reports** > **All reports** > **Transactions** > select date range > **Download CSV**

### Manual Processing in a Spreadsheet
1. Open the CSV. PayPal CSVs use the encoding Windows-1252 — if you see garbled characters, re-open with UTF-8 encoding.
2. **Filter Status**: Keep only "Completed" rows.
3. **Filter Type**: Remove "Transfer to Bank," "Bank Deposit," "Currency Conversion," and "Authorization" rows.
4. **Split revenue and fees**:
   - For each payment, the Gross column is revenue and the Fee column is the PayPal fee.
   - Create a new row for each fee with the negative fee amount.
5. **Handle refunds**: Refund rows already have negative Gross amounts. Keep as-is.
6. **Currency conversion**: If you received a payment in EUR but your account is in USD, PayPal creates two rows — one in EUR and one with the USD conversion. Use the USD row and note the original currency.
7. **Summary formulas**:
   ```
   Gross Revenue:  =SUMIFS(Gross, Type, "Payment Received", Status, "Completed")
   Total Fees:     =ABS(SUMIFS(Fee, Type, "Payment Received", Status, "Completed"))
   Total Refunds:  =ABS(SUMIFS(Gross, Type, "Refund", Status, "Completed"))
   Net Revenue:    =GrossRevenue - TotalFees - TotalRefunds
   Fee Rate:       =TotalFees / GrossRevenue * 100
   ```

### Reconciliation
- PayPal transfers to your bank should match the sum of Net amounts between transfer dates.
- If they don't match, check for held funds, disputes, or currency conversion differences.

## Important Notes
- PayPal CSV encoding can cause issues. If the file won't parse, try saving as UTF-8 first.
- PayPal date format is MM/DD/YYYY (US accounts) or DD/MM/YYYY (international). Wilson auto-detects based on account locale.
- "General Payment" type in PayPal can be either sent or received — check the sign of the Gross amount.
- PayPal business accounts have more detailed CSVs than personal accounts. The column mapping above covers both.
- Do not import "Transfer to Bank" rows — these are the PayPal-to-bank transfers that appear in your bank statement.

© openaccountant · MIT · openaccountant/skills

Similar skills

Everything for Finance and business →

From the same set28

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor