# Liquidation Manifest Normalizer (`mettahometech/manifest-normalizer`) Actor

Turn a messy liquidation manifest (CSV, XLSX or PDF table) into one clean, normalised CSV: title, UPC/EAN/ASIN, quantity, retail, condition, category guess. Rules first; no scraping.

- **URL**: https://apify.com/mettahometech/manifest-normalizer.md
- **Developed by:** [Metta Distribution](https://apify.com/mettahometech) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 row normaliseds

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Liquidation Manifest Normalizer

Turn a messy liquidation or returns manifest into one clean CSV you can sort, price and list from.

Handles the usual mess: title rows above the header, `$1,049.99`-style money, totals rows, UPCs
that lost their leading zero in Excel, extended retail without unit retail, a notes sheet before
the data sheet, and PDF tables split across pages with the header repeated.

### Input

Upload a CSV, XLSX or PDF (with a table), link your own file, or paste CSV text.

### Output

One dataset item per row and `OUTPUT.csv` in the key-value store:

| column | meaning |
|---|---|
| title | item description |
| upc | valid UPC-A / EAN-13 (GS1 check digit verified), else empty with a `bad_upc` flag |
| asin | Amazon ASIN if present in its own column or the title |
| quantity | units |
| unit_retail / ext_retail | per unit and extended (one is derived from the other when missing) |
| condition | New / Used / Untested / Damaged / Salvage (or the original text) |
| category_guess | keyword guess (Toys and games, Home and kitchen, Consumer electronics, ...) |
| status / flags | `ok` or `unparsed`, plus what was fixed or doubtful |

Rows are normalised by rules only. Rows the rules cannot read come back with status `unparsed`
so nothing silently disappears.

### Use from an AI agent (MCP)

Agents can call this Actor as an MCP tool through Apify's MCP server. You pay the same per-event
prices as a normal run; you need an Apify account and API token (Console -> Settings -> API & Integrations).

Claude Code:

```
claude mcp add --transport http manifest-normalizer "https://mcp.apify.com/?tools=mettahometech/manifest-normalizer" --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Claude Desktop (`claude_desktop_config.json`):

```json
{"mcpServers": {"manifest-normalizer": {"command": "npx", "args": ["-y", "@apify/actors-mcp-server", "--actors", "mettahometech/manifest-normalizer"],
  "env": {"APIFY_TOKEN": "YOUR_APIFY_TOKEN"}}}}
```

Worked call -- ask the agent "Clean up this manifest and give me title, UPC, quantity and retail per row" (with the CSV pasted). It calls the tool with:

```json
{"manifestText": "Item Description,UPC,Qty,Unit Retail
Wireless Speaker,036000291452,2,$49.99
"}
```

and gets back one normalised row (`upc` "036000291452", `quantity` 2, `unit_retail` 49.99) and `OUTPUT.csv`. Cost: 1 x $0.004.

More reseller tools for Canada: https://sellerfee.ca/tools

### Pricing (pay per event)

- $0.004 per row normalised

Privacy: the Actor does not fetch any website and keeps nothing beyond your own run's dataset and key-value store. Your manifest is downloaded once from the link you give and is not shared.

# Actor input Schema

## `manifestUrl` (type: `string`):

Upload your manifest (CSV, XLSX or PDF with a table) or paste a link to your own file.

## `manifestText` (type: `string`):

Paste manifest rows as CSV instead of uploading a file. The sample rows here are used when no file is given; an uploaded file always takes priority.

## `fileName` (type: `string`):

Optional, e.g. lot.xlsx, if the link does not end in .csv/.xlsx/.pdf.

## Actor input object example

```json
{
  "manifestText": "Item Description,UPC,Qty,Unit Retail,Condition,Department\nWireless Bluetooth Speaker,036000291452,2,$49.99,Customer Returns,Electronics\nBuilding Blocks Set,4006381333931,1,$24.99,New,Toys\nStainless Steel Frying Pan 12in,012345678905,3,$19.50,Open Box,Kitchen\n"
}
```

# Actor output Schema

## `results` (type: `string`):

One normalised item per manifest row

## `csv` (type: `string`):

The clean manifest as one CSV

# 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 = {
    "manifestText": `Item Description,UPC,Qty,Unit Retail,Condition,Department
Wireless Bluetooth Speaker,036000291452,2,$49.99,Customer Returns,Electronics
Building Blocks Set,4006381333931,1,$24.99,New,Toys
Stainless Steel Frying Pan 12in,012345678905,3,$19.50,Open Box,Kitchen`
};

// Run the Actor and wait for it to finish
const run = await client.actor("mettahometech/manifest-normalizer").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 = { "manifestText": """Item Description,UPC,Qty,Unit Retail,Condition,Department
Wireless Bluetooth Speaker,036000291452,2,$49.99,Customer Returns,Electronics
Building Blocks Set,4006381333931,1,$24.99,New,Toys
Stainless Steel Frying Pan 12in,012345678905,3,$19.50,Open Box,Kitchen
""" }

# Run the Actor and wait for it to finish
run = client.actor("mettahometech/manifest-normalizer").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "manifestText": "Item Description,UPC,Qty,Unit Retail,Condition,Department\\nWireless Bluetooth Speaker,036000291452,2,$49.99,Customer Returns,Electronics\\nBuilding Blocks Set,4006381333931,1,$24.99,New,Toys\\nStainless Steel Frying Pan 12in,012345678905,3,$19.50,Open Box,Kitchen\\n"
}' |
apify call mettahometech/manifest-normalizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mettahometech/manifest-normalizer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/UDOZbd8dSJveb1G7X/builds/mEqz2Qe0zkrE7Q4YR/openapi.json
