# Receipt & Invoice Data Extractor (AU-aware) (`eastwoodapps/receipt-invoice-extractor`) Actor

Turn receipts and invoices (PDF, JPG, PNG) into clean, ledger-ready rows: date, supplier, ABN, GST, total. Built for Australian books - GST and ABN aware - but works anywhere.

- **URL**: https://apify.com/eastwoodapps/receipt-invoice-extractor.md
- **Developed by:** [Eastwood Apps](https://apify.com/eastwoodapps) (community)
- **Categories:** Automation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 document processeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Receipt & Invoice Data Extractor (AU-aware)

Turn a folder of receipts and invoices into clean, ledger-ready rows - date, supplier, ABN,
GST, total - as a dataset and a combined `ledger.csv`.

Built for Australian bookkeeping (GST and ABN aware) but works on any English documents.

### Quick start

1. Paste direct links to your receipt/invoice files (PDF, JPG or PNG) into **Document URLs**.
   Use direct-download links - a Google Drive or Dropbox *share page* link returns a web page,
   not the file (both services offer a direct-download URL form).
2. Run. Each document becomes one row in the dataset, and `ledger.csv` lands in the run's
   key-value store ready to import.

#### Example output row

```json
{
  "documentDate": "2026-03-14",
  "supplier": "RICHARDSON ELECTRICAL SUPPLIES",
  "abn": "41068031407",
  "abnChecksumValid": true,
  "gst": 39.45,
  "total": 433.95,
  "currency": "AUD",
  "status": "ok",
  "extractionMethod": "pdf-text",
  "sourceUrl": "https://.../invoice-4471.pdf"
}
```

### What it does

- PDFs: extracts the text layer directly (fast, exact)
- Scanned PDFs (no text layer): pages are rendered and OCR'd automatically, with a
  confidence score on every row - low-confidence extractions are flagged `review`, never
  passed off as clean
- Images (JPG/PNG): OCR via Tesseract, with a confidence score on every row
- Extracts: document date, supplier name, ABN (verified against the real ABN checksum, not
  just the digit count), GST amount, total
- Knows Australian invoice layouts: on a `TOTAL EX GST / TOTAL GST / TOTAL INC GST` block it
  reports the inclusive total, and it will not mistake a "Total (inc GST)" figure for the GST
- Flags honestly instead of guessing: `needs-ocr` (scanned PDFs), `review` (no total found,
  or a GST figure that looks implausible against the total), `error` (with the reason)
- Outputs: dataset rows + optional combined `ledger.csv` in the key-value store

### What it does NOT do

- No scraping, no logins, no third-party data. You supply your own documents, they are
  processed inside YOUR Apify account, and the developer never sees or stores them. Outputs
  live in your own storage and expire on your account's normal retention schedule.
- No guessing: a scan too poor to OCR reliably is flagged (`needs-ocr` or `review`), never
  silently invented.
- Heuristic extraction: check the `review`-flagged rows. Your books deserve your eyes -
  extracted figures are not financial, tax or accounting advice; verify before use.

### Pricing

Pay-per-event: a few cents per document actually processed. Documents that fail or need OCR
are not charged as processed. No subscription.

### Terms of use

Process only documents you own or are authorised to process. Not affiliated with or endorsed
by Xero, Intuit QuickBooks, or any accounting vendor named for compatibility.

# Actor input Schema

## `documentUrls` (type: `array`):

Direct links to receipt/invoice files (PDF, JPG, PNG). Use your own documents only.

## `currencyHint` (type: `string`):

Assumed currency when none is printed on the document.

## `detectGst` (type: `boolean`):

Extract ABN numbers and GST amounts where present (Australian documents).

## `outputCsv` (type: `boolean`):

Writes ledger.csv to the key-value store in addition to the dataset.

## Actor input object example

```json
{
  "documentUrls": [
    "https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-tax-invoice.pdf"
  ],
  "currencyHint": "AUD",
  "detectGst": true,
  "outputCsv": true
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "documentUrls": [
        "https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-tax-invoice.pdf"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("eastwoodapps/receipt-invoice-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "documentUrls": ["https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-tax-invoice.pdf"] }

# Run the Actor and wait for it to finish
run = client.actor("eastwoodapps/receipt-invoice-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "documentUrls": [
    "https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-tax-invoice.pdf"
  ]
}' |
apify call eastwoodapps/receipt-invoice-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=eastwoodapps/receipt-invoice-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/RqT2HGBNhdTL0cV9m/builds/3HYAc3eWqLYqwVIc2/openapi.json
