Skip to content

Dataset

PayPal merchant transaction records datasets for AI training

A PayPal dataset is an export of a merchant's PayPal business account: transaction history with event codes, fees and balance impact, the orders, captures and refunds behind it, disputes and claims with their messages, payouts, invoices and subscriptions. SourceX sources it to a buyer's spec from established businesses that run PayPal, with payer emails, names and shipping addresses removed and payers replaced by pseudonymous keys. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Balance-affecting transaction history from a merchant's PayPal business account, with its orders, refunds, disputes, payouts, invoices and subscriptions
Typical systems
PayPal business accounts using Checkout, Invoicing, Subscriptions, Payouts and the Resolution Center, with the Transaction Search API and report files
Typical history
Varies by source: the API's look-back, the activity download's longer one and the report files the merchant kept; specify a date range
Modality
Structured transaction and dispute records with free text in notes, item names and dispute messages
Delivery formats
JSONL or Parquet from the REST APIs, activity download CSV, or settlement and transaction detail report files, mapped to one schema
Preparation
Payer emails, names, phone numbers and shipping addresses removed, payer and transaction IDs re-keyed, notes, custom fields and dispute messages scrubbed
Licensing
Scoped per account and date range; permitted use agreed per license; PayPal's user agreement and developer terms checked by owner and buyer
Availability
Sourced to your spec; products in use, dispute volume and history depend on the merchant, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
transaction_refstringPseudonymous key replacing transaction_info.transaction_id, the same wherever a refund, hold or dispute refers back to it.
event_codestringThe transaction_event_code, a T-code whose first two digits give the group (payment, fee, conversion, withdrawal, reversal, hold) and last two the event.
referenceobjectThe paypal_reference_id and its type (order, transaction, subscription or preapproved payment), re-keyed, tying a row to the one it follows from.
timestampsobjectThe transaction_initiation_date and transaction_updated_date with the time zone stated, since activity files carry local time.
statusstringThe transaction_status code: S for success, P for pending, D for denied or V for fully reversed.
amountsobjectThe transaction_amount and fee_amount with currency codes, plus shipping, insurance and sales tax amounts on a sale.
balanceobjectWhether the row affects the balance (the API's balance_affecting_records_only filter, or the download's Balance Impact column), with ending_balance and available_balance after it.
payerobjectFrom payer_info: keyed account_id, the payer_status and address_status flags and country_code, with email_address, payer_name and phone_number removed.
protection_eligibilitystringThe seller protection eligibility recorded in transaction_info, with the Capture's seller_protection status where orders are included.
cart_itemsarrayThe cart_info item details: item name, code, quantity, unit price and tax, with names screened.
order_and_captureobjectThe Order's intent and status with keyed Capture, Authorization and Refund records and the Capture's gross, fee and net breakdown.
disputeobjectThe Dispute on the transaction: reason, life cycle stage, channel, status, disputed amount and outcome code.
dispute.messagesarrayThe Dispute's messages in order: posted by buyer, seller or arbiter, time posted and scrubbed content.
source_fileobjectWhere the row came from: Transaction Search API, activity download or Settlement Report, with the report's version or column set.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "transaction_ref": "ptx_5d81a0c4",
  "event_code": "T0006",
  "reference": {
    "reference_key": "ord_77e21b",
    "reference_id_type": "ODR"
  },
  "timestamps": {
    "transaction_initiation_date": "2025-02-14T19:41:08+0000",
    "transaction_updated_date": "2025-03-09T11:02:55+0000",
    "source_time_zone": "UTC"
  },
  "status": "V",
  "amounts": {
    "transaction_amount": {
      "currency_code": "USD",
      "value": "84.00"
    },
    "fee_amount": {
      "currency_code": "USD",
      "value": "-3.42"
    },
    "shipping_amount": {
      "currency_code": "USD",
      "value": "9.00"
    }
  },
  "balance": {
    "balance_affecting": true,
    "ending_balance": "2310.77",
    "available_balance": "2226.77",
    "currency_code": "USD"
  },
  "payer": {
    "payer_key": "pyr_b3f902",
    "payer_status": "Y",
    "address_status": "N",
    "country_code": "CA"
  },
  "protection_eligibility": "02",
  "cart_items": [
    {
      "item_name": "Canvas tool roll",
      "item_code": "TR-204",
      "item_quantity": "1",
      "item_unit_price": {
        "currency_code": "USD",
        "value": "75.00"
      }
    }
  ],
  "order_and_capture": {
    "order_intent": "CAPTURE",
    "capture_key": "cap_19ac44",
    "seller_protection": {
      "status": "NOT_ELIGIBLE"
    },
    "seller_receivable_breakdown": {
      "gross_amount": "84.00",
      "paypal_fee": "3.42",
      "net_amount": "80.58",
      "currency_code": "USD"
    }
  },
  "dispute": {
    "dispute_key": "dsp_0e4417",
    "reason": "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
    "dispute_life_cycle_stage": "CHARGEBACK",
    "dispute_channel": "INTERNAL",
    "status": "RESOLVED",
    "dispute_amount": {
      "currency_code": "USD",
      "value": "84.00"
    },
    "dispute_outcome": {
      "outcome_code": "RESOLVED_BUYER_FAVOUR",
      "amount_refunded": {
        "currency_code": "USD",
        "value": "84.00"
      }
    },
    "messages": [
      {
        "posted_by": "BUYER",
        "time_posted": "2025-02-26T16:20:11.000Z",
        "content": "Tracking has not moved since [DATE]."
      },
      {
        "posted_by": "SELLER",
        "time_posted": "2025-02-27T09:05:40.000Z",
        "content": "It shipped on [DATE]. I have opened a trace."
      }
    ]
  },
  "source_file": {
    "source": "transaction_search_api"
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train reconciliation agents on a wallet ledger

Rows typed by event code with fee, balance and reference let an agent explain how sales, holds, conversions and withdrawals produced a balance.

Model dispute outcomes from the full exchange

Dispute reason, stage, channel, the messages exchanged and the outcome code give labeled cases for claim triage.

Study seller protection and payer signals

The payer status and address status flags and protection eligibility, joined to later disputes, show which payer-side facts preceded a loss.

Teach refund and reversal handling

Refunds, reversals and fee reversals linked to the original payment by reference show how each was booked and what it cost.

Build evaluation sets for payment-operations assistants

Held-out months with known balances and dispute results let a lab score an agent's answer against the recorded outcome.

Use-case guides: Finance and accounting agents, Customer support agents, Private evaluation sets

What makes this data valuable

Event codes present

Every row carries its transaction event code, not only a text type label.

Balance reconciles

Per currency, the opening balance plus balance-affecting rows equals the closing balance.

References resolve

Refund, reversal, hold and conversion rows point to an original transaction in the delivery.

Sources labeled

Each row states whether it came from the API, an activity download or a settlement report.

Disputes joined

Each dispute resolves to its seller-side transaction and keeps its messages in order.

Stable pseudonymous keys

Payer keys persist across transactions, subscriptions and disputes without identity.

Value drivers

PayPal dataset

This page covers payPal merchant transaction records.Illustrative

PayPal records a wallet ledger, so every balance movement has an event code

PayPal holds the merchant's money in a balance, in several currencies if the merchant sells abroad, so its transaction history is a ledger of everything that moved that balance. Each row has a transaction_event_code: a T and four digits, where the first two give the group and the last two the event. T00 codes are payments between PayPal accounts, T01 fees outside a payment, T02 currency conversions, T04 withdrawals to a bank, T11 reversals and refunds, T12 adjustments such as a chargeback, and T15 and T21 holds, reserves and releases. A sale, the hold placed on it during a dispute, the release, a conversion and the sweep to the bank are separate rows of one table.

Rows are tied together by paypal_reference_id, with a type that says whether it names an order, another transaction, a subscription or a preapproved payment. A refund refers to the payment it returns. The payment fee sits on the payment row as fee_amount, and a row can carry the ending and available balance. Because the payer is usually a PayPal account holder, payer_info adds facts a card gateway lacks: payer_status, a Y or N flag on the payer's account, and address_status, which says whether the payer's address is verified. The row also records seller protection eligibility. Funding detail is thinner: ask how often transaction_info's payment_method_type and instrument_type are filled.

PayPal sits between two of its own account holders, so a Dispute has a life cycle stage that starts as an inquiry between buyer and seller and can escalate to a claim PayPal decides, a stage the API labels CHARGEBACK, with each side's messages kept on the record. A chargeback from a card issuer arrives through the same object with an external channel. New events add rows, but a row's status code is updated in place, P for pending moving to S for success or V for fully reversed, with only transaction_updated_date to show it.

The API reaches back three years, and older history comes from report files

The Transaction Search API is the clean source. It returns JSON with transaction_info, payer_info, shipping_info and cart_info blocks. PayPal's reference gives it a date range of at most 31 days per request and a reach of the previous three years, so a long pull is many calls stitched without gaps or overlaps. By default it returns only balance-affecting rows, and it leaves ending_balance empty when a request uses optional filters. Ask for the pull log: each window, its parameters and its row count.

Earlier years come from report files. The activity download reaches further back, seven years by PayPal's reference, in files whose fields the user picks. It has a text Type, a Balance Impact column and local dates with a separate time zone column, and it can carry names, emails and addresses in the clear. The Transaction Event Code is an optional field that is not selected by default, so many saved files lack it, and files downloaded in different years rarely share a column set. Settlement Reports, generated daily as versioned files for SFTP pickup, do carry the event code. Each line starts with a row type, such as CH for column headers or SB for a transaction, and amounts are unsigned with no decimal separator, the direction held in a separate CR or DR column.

Test a sample before accepting a merged history. For each currency, add the net of every balance-affecting row to the opening balance and compare with the closing balance. A gap means missing rows or an overlap counted twice. Check that every refund, reversal and hold resolves to an original transaction, and where rows came from activity downloads, ask for the table that maps each Type label to an event code. Confirm the scale of settlement amounts for each currency.

What to check before licensing

  • Have the data owner and your counsel read the PayPal user agreement and developer terms on use of transaction and payer data before a permitted use is agreed.
  • Ask which source produced each year of history: the Transaction Search API, activity downloads or settlement reports, and get the column set and report version of each.
  • Reconcile opening balance plus balance-affecting rows to closing balance for each currency and each year in the sample.
  • Check that payer emails, names, phone numbers and shipping addresses were removed, including in note, subject, custom field and item name columns.
  • Read a sample of dispute messages to confirm that names, addresses, tracking numbers and order references were scrubbed.
  • Confirm every row has a transaction event code, and review the mapping used where an activity download was saved without that optional field.
  • Ask whether disputes, payouts, invoices and subscriptions cover the same date range as transactions.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

What does a PayPal dataset contain that a card gateway export does not?

A wallet's view of the merchant account. Every movement of the PayPal balance is a typed row, so the history includes fees, holds and releases, currency conversions and withdrawals as well as sales and refunds. Payment rows also carry payer-side facts: a status flag on the payer's account, whether the payer's address is verified, and whether the sale was eligible for seller protection.

How far back does PayPal transaction history go?

It depends on the source. PayPal's reference gives the Transaction Search API a reach of three years, in requests of at most 31 days. The activity download goes back further, and settlement report files exist only where the merchant collected them. Those files differ in columns, date formats and detail. State the date range you need and ask which source covers each year.

Are dispute messages included?

They can be, after scrubbing. A PayPal dispute keeps the messages buyer, seller and PayPal posted, with who posted each and when, alongside the reason, stage and outcome. The text often contains names, addresses and tracking numbers, so ask how it was screened and read a sample before accepting it.

What are PayPal transaction event codes?

They are PayPal's classification of each balance movement. A code is the letter T and four digits: the first two name a group, such as payments, fees, currency conversions, withdrawals, reversals or holds, and the last two a specific event. They let a model tell a sale from a refund, a chargeback or a release without parsing text labels.

Does the export include subscriptions, invoices and payouts?

Where the merchant uses those products and agrees to include them. Subscriptions, invoices and payout batches are separate objects from the transaction history, each reached through its own API and linked to transactions by ID. Say which objects you need, since each adds payer or recipient details to remove.

Is SourceX affiliated with PayPal?

PayPal is named to identify the system the records come from. That does not imply a partnership with or endorsement by PayPal. The records belong to the business that runs PayPal, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies