# Compare purchase orders and supplier invoice CSVs

**Use case:** 

Compare two fictional CSVs and see how the report flags a $72 price difference across two invoice rows, an excess unit, a duplicate line, and missing PO matches. The example is visible on the Actor listing. A completed comparison costs $0.50.

## Input

```json
{
  "previousCsv": "supplier_id,po_number,po_line,unit,currency,quantity,unit_price\nV01,PO-100,001,EA,USD,24,18\nV01,PO-100,002,EA,USD,5,4\nV01,PO-100,003,EA,USD,2,10\nV01,PO-100,004,EA,USD,6,2\n",
  "currentCsv": "supplier_id,po_number,po_line,unit,currency,quantity,unit_price,invoice_id,invoice_line\nV01,PO-100,001,EA,USD,12,21,INV-1,01\nV01,PO-100,001,EA,USD,12,21,INV-2,01\nV01,PO-100,002,EA,USD,6,4,INV-1,02\nV01,PO-100,003,CASE,USD,2,10,INV-1,03\nV01,PO-100,004,EA,USD,2,2,INV-2,02\nV01,PO-100,004,EA,USD,2,2,INV-2,02\nV01,PO-999,001,EA,USD,1,8,INV-2,03\n"
}
```

## Output

```json
{
  "reviewedOrderLines": {
    "label": "Rows reviewed",
    "format": "number"
  },
  "linesRequiringReview": {
    "label": "Rows to review",
    "format": "number"
  },
  "byFinding": {
    "label": "Findings by type",
    "format": "object"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Purchase Order vs. Supplier Invoice Checker Actor is ready to run with the inputs already set for "Compare purchase orders and supplier invoice CSVs". [Sign up or log in](https://console.apify.com/create-task-from-example/UFQnY31gcXCbBR3ou) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare purchase orders and supplier invoice CSVs" task

The Purchase Order vs. Supplier Invoice Checker Actor will start running based on the input automatically. You can also change all the input fields, like purchase order csv and supplier invoice csv, to match your specific use case.

### 3. Receive the "Compare purchase orders and supplier invoice CSVs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as rows reviewed, rows to review, and findings by type.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare purchase orders and supplier invoice CSVs" task via API](https://apify.com/btvglobalco/my-actor-1.md).

## About this Actor

This example demonstrates how to use [Purchase Order vs. Supplier Invoice Checker](https://apify.com/btvglobalco/my-actor-1.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/btvglobalco/my-actor-1.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/btvglobalco/my-actor-1.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
