Skip to content

Dataset

Sage 50 accounting records datasets for AI training

A Sage 50 dataset is an export of one small business's Sage 50 company data: the nominal or general ledger, the numbered transaction audit trail with its header and split rows, customer and supplier ledgers, invoices and their items, stock records and bank records. Sage 50 is sold as three separate regional products with different schemas, so a spec has to name the edition. SourceX sources it to a buyer's spec from established businesses that keep their books in Sage 50. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One small business's ledger, numbered audit trail, customer and supplier ledgers, invoices, stock and bank records from one Sage 50 edition
Typical systems
Sage 50 Accounts (UK and Ireland), the US edition (formerly Peachtree) and the Canadian edition (formerly Simply Accounting); payroll out of scope
Typical history
From the company's first entries or its last Clear Audit Trail or purge; specify financial years
Modality
Structured accounting tables; attached documents only where licensed
Delivery formats
One CSV or Parquet file per source table under its original names, with edition, version and base currency stated per company
Preparation
Account references re-keyed; names, contacts and bank details removed; user names pseudonymized; details and reference text screened; payroll excluded
Licensing
Scoped per company and financial years; permitted use agreed per license; Sage's terms checked by owner and buyer
Availability
Sourced to your spec; edition, industry and surviving history depend on the business, 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
company_refstringPseudonymous key for one Sage 50 company data folder or file.
editionobjectRegional product, version and base currency, from the company's settings, the COMPANY table in the UK edition.
tran_typeenumThe UK edition's TYPE code on AUDIT_HEADER, such as SI, SC, SR, PI, PP, BP, BR, JD or JC; the journal name in the other editions.
headerobjectAUDIT_HEADER values: DATE, the date entered, INV_REF, DETAILS, NET_AMOUNT, TAX_AMOUNT and the pseudonymized USER_NAME.
splitsarrayAUDIT_SPLIT rows under the header: NOMINAL_CODE, DEPT_NUMBER, DETAILS, NET_AMOUNT, TAX_CODE and TAX_AMOUNT.
splits[].tran_numberintegerThe audit trail number of a posting, from TRAN_NUMBER in the UK edition; the journal entry number in the US and Canadian editions.
nominal_postingsarrayAUDIT_JOURNAL rows: the debit or credit each split produced on its nominal code and on the control accounts.
flagsobjectDecoded from DELETED_FLAG, PAID_FLAG, VAT_FLAG and BANK_FLAG on the UK audit rows: deleted, paid, included on a VAT return and bank reconciled.
allocationsarrayAUDIT_USAGE rows showing which receipt, payment or credit was allocated to which invoice, with date and amount.
nominal_accountobjectThe NOMINAL_LEDGER record for a code: its name, balance and the chart of accounts category it falls in.
ledger_account_keystringPseudonym for the ACCOUNT_REF of a SALES_LEDGER customer or PURCHASE_LEDGER supplier, with terms and country kept.
invoiceobjectINVOICE and INVOICE_ITEM rows for documents raised in the invoicing module: number, type, posted status and lines with stock code, quantity, price and tax code.
stock_itemobjectThe STOCK record behind an invoice line: stock code, description, category and quantity in stock.
bankobjectThe BANK record's nominal code and account type, with account number and sort code removed.
Sample recordIllustrative

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

Example record

{
  "company_ref": "co_3b91",
  "edition": {
    "product": "Sage 50 Accounts",
    "region": "UK",
    "base_currency": "GBP"
  },
  "tran_type": "SI",
  "header": {
    "DATE": "2024-02-12",
    "date_entered": "2024-02-14",
    "ledger_account_key": "sl_7c20",
    "INV_REF": "4471",
    "NET_AMOUNT": 1260.0,
    "TAX_AMOUNT": 252.0,
    "user_key": "usr_02"
  },
  "splits": [
    {
      "tran_number": 18452,
      "NOMINAL_CODE": "4000",
      "DEPT_NUMBER": 2,
      "DETAILS": "Oak door sets x 6",
      "NET_AMOUNT": 1080.0,
      "TAX_CODE": "T1",
      "TAX_AMOUNT": 216.0
    },
    {
      "tran_number": 18453,
      "NOMINAL_CODE": "4905",
      "DETAILS": "Carriage",
      "NET_AMOUNT": 180.0,
      "TAX_CODE": "T1",
      "TAX_AMOUNT": 36.0
    }
  ],
  "nominal_postings": [
    {
      "NOMINAL_CODE": "1100",
      "debit": 1512.0
    },
    {
      "NOMINAL_CODE": "4000",
      "credit": 1080.0
    },
    {
      "NOMINAL_CODE": "4905",
      "credit": 180.0
    },
    {
      "NOMINAL_CODE": "2200",
      "credit": 252.0
    }
  ],
  "flags": {
    "deleted": false,
    "paid": "full",
    "on_vat_return": true,
    "bank_reconciled": null
  },
  "allocations": [
    {
      "type": "SR",
      "tran_number": 18611,
      "DATE": "2024-03-11",
      "AMOUNT": 1512.0
    }
  ],
  "nominal_account": {
    "NOMINAL_CODE": "4000",
    "NAME": "Sales Type A",
    "category": "Sales"
  }
}

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

What AI teams use it for

Train bookkeeping agents on small-business entries

Splits with a nominal code, department and tax code show how a bookkeeper coded each sale, purchase and payment.

Learn VAT and sales tax coding

A tax code on every UK split, with its VAT return flag, gives labeled examples of tax treatment.

Detect errors and corrections

Deleted and replaced transactions kept in the UK audit trail pair a mistake with its fix.

Model allocation of receipts and payments

Allocation rows show which receipt cleared which invoice, part payments included.

Evaluate ledger assistants

Held-out periods with a known trial balance test whether an agent's postings keep the books in balance.

Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Edition stated

Every company carries its regional edition, version and base currency.

Trail intact

Audit trail numbers run without unexplained gaps, and deleted rows are present and flagged.

Uncleared history

Clear Audit Trail or a purge was not run over the years requested.

Ledger ties out

Nominal postings summed by code reproduce the trial balance.

Allocations present

Receipts and payments are allocated to invoices, not left on account.

Few suspense postings

Little sits in the suspense and mispostings accounts.

Value drivers

Sage 50 dataset

This page covers sage 50 accounting records.Illustrative

Sage 50 is three regional products with three data models

Sage 50 is a brand over three unrelated programs. The UK and Ireland product, Sage 50 Accounts, keeps a company in a data folder and exposes tables such as AUDIT_HEADER, NOMINAL_LEDGER and SALES_LEDGER. Its accounts are numeric nominal codes, and every split carries a VAT tax code. The US product descends from Peachtree. It files each entry in a journal, such as the general, sales or cash receipts journal, gives every account ID a fixed account type, and builds sales tax codes from tax agencies, called authorities in older versions. The Canadian product descends from Simply Accounting, keeps a company as a .SAI file beside a .SAJ folder, and models GST, HST and provincial tax.

The same event is recorded in three shapes. A UK sale is an SI transaction whose splits each name a nominal code and a tax code, with the debit to the debtors control account implied by the type. A US sale is a Sales Journal entry with distribution rows. Corrections differ as well. The UK edition flags what was deleted. The US edition lets an entry in an open period be edited in place and logs who did it only in the audit trail of its Premium and higher tiers. The Canadian edition corrects a posted entry by posting a reversal and a replacement, which reports can hide. Payroll is a separate product in the UK and a module in the other two.

A spec therefore names the edition before anything else. Two companies on different editions cannot be stacked column on column. They need a mapping of account types, tax treatment and transaction types. Within one edition the chart is still the company's own. A UK company usually starts from Sage's default layout, where 4000 is a sales code and 1100 the debtors control account, then renames and adds codes, so ask for the nominal list.

The UK audit trail keeps what was changed, and extraction is local

In Sage 50 Accounts every posting takes the next number in one audit trail. AUDIT_HEADER holds the document level, AUDIT_SPLIT one row per line with its nominal code, net amount, tax code and tax, AUDIT_JOURNAL the double entry the splits produced, and AUDIT_USAGE the allocation of receipts and payments to invoices. A deleted transaction stays in the trail with its DELETED_FLAG set, and other flags show whether a split was paid, bank reconciled and included on a VAT return. Numbers follow entry order, so a March-dated transaction numbered among May's was keyed late. A journal is not one object. Each debit and credit is its own JD or JC row, tied to the others only by a shared reference and date.

Depending on the version and the field, an edit either rewrites the row or flags the original as deleted and posts a replacement, so ask which applies. Table and column names also shift between versions, so check them against the list the ODBC driver shows for the company's own version. Clear Audit Trail removes older, fully paid and reconciled transactions and leaves opening balances, so a long-lived company may hold only recent years. USER_NAME is a person's logon, and DETAILS and INV_REF are free text where customer names recur.

The desktop product is not read through a hosted API the way a cloud ledger is. The data sits in a company folder on the bookkeeper's machine or office server, and it is read through the read-only ODBC driver installed with the product, through report and list exports to CSV, or by restoring a backup file into a licensed copy. A backup holds everything, contact records and bank details included, so ask who ran the extraction and what was stripped before the data left that machine. To test a sample, sum AUDIT_JOURNAL by nominal code against the trial balance, look for gaps in the number sequence, and check the share of deleted rows.

What to check before licensing

  • Have the data owner and your counsel read Sage's license terms on exported data and on use of the ODBC driver before a permitted use is agreed.
  • Get the regional edition, version and base currency in writing for every company, and reject a delivery that mixes editions unlabeled.
  • Confirm the licensor owns the company data. A bookkeeper's or accountant's copy of a client's backup is access, not the right to license the books.
  • Ask whether Clear Audit Trail or a purge was ever run, and compare the earliest transaction date with the years requested.
  • Check that customer, supplier and employee names, contacts, bank account numbers and sort codes are removed, and that DETAILS, INV_REF and USER_NAME were screened.
  • Confirm payroll is excluded: no payroll product tables and no US or Canadian payroll journal entries, only ledger totals if agreed.
  • Tie the sample: nominal postings summed by code should match the trial balance, with deleted rows flagged, not missing.

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

Can Sage 50 data from the UK, US and Canadian editions be combined?

Not directly. The three editions are separate programs with different table names, account structures, transaction types and tax models, so their rows do not line up column for column. They can be combined after mapping each company's accounts and transaction types to shared categories. Decide whether you need one edition or a mapped mix.

Does the Sage 50 audit trail show edits and deletions?

In the UK edition, partly. Deleted transactions remain in the audit trail with a deleted flag, and some amendments are stored as a deletion and a replacement, while smaller edits overwrite the row. In the US edition changes are logged only where the audit trail, a feature of the Premium and higher tiers, is in use, and the Canadian edition posts reversing entries. Ask which behavior applies to each company.

How is data extracted from Sage 50 without an API?

On the machine where the company data lives. The desktop editions are normally read locally, not through a hosted API, so the business reads its own data through the ODBC driver the product installs, exports lists and reports to CSV, or restores a backup into a licensed copy. Report exports carry fewer columns than the tables, so ask which route was used.

How much history does a Sage 50 company hold?

It varies by company and by housekeeping. The data starts at the company's first entries or opening balances, but Clear Audit Trail in the UK edition, or the Purge wizard in the US edition, removes old transaction detail. Ask whether any of these were run and check the earliest transaction date in the sample.

Are payroll, bank details and customer names included?

They should not be, and the sample is where you confirm it. Payroll products and modules are out of scope, customer, supplier and employee names are removed or replaced with stable keys, and bank account numbers and sort codes are removed. Check the free-text details and reference columns, where names of people and sole traders tend to survive.

Is SourceX affiliated with Sage?

Sage 50 is named to identify the system the records come from. That does not imply a partnership with or endorsement by Sage. The records belong to the business that runs Sage 50, 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