# Supplier Quote Comparison & Landed Cost API (`afkdigital/supplier-quote-comparison-landed-cost`) Actor

Compare supplier CSV/XLSX quotes using MOQ, tiers, unit conversions and supplied FX. Allocate freight, preserve unknown costs and rank comparable landed prices.

- **URL**: https://apify.com/afkdigital/supplier-quote-comparison-landed-cost.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.30 / completed comparison package

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

## Supplier Quote Comparison & Landed Cost API

Compare supplier quotes on the same **product key, target quantity, unit and currency**. This Actor reads UTF-8 CSV and XLSX files, applies all-unit price breaks and MOQ, converts packaging units with your explicit factors, applies your dated FX rates, and allocates shipping across each quote basket.

It preserves unknown costs instead of presenting an incomplete price as a fully landed price. Only matched offers with supplied freight, duty and tax enter the landed-cost ranking. Use the evidence row references to review every result.

### Pricing: $0.30 per completed comparison package

One package is **one run containing up to 10 files and 5,000 total nonempty quote rows**, including all suppliers, price-tier rows, product comparisons, Dataset JSON/CSV and the comparison summary. One `comparison-package` event is charged only after all report outputs and Dataset rows have been saved, provided at least one offer has a calculable normalized merchandise price. A completed package can include partial-cost and review-needed offers; completeness is shown on every result.

There is **no Actor start fee, no per-row fee and no extra platform-usage surcharge** for standard runs. Invalid files, limit failures, technical failures before complete output persistence, and reports with no calculable normalized offers do not trigger a package event.

Automatic resurrection of a fully delivered run does not add a charge or duplicate Dataset rows. If delivery was interrupted before the Dataset completion checkpoint, start a fresh run; the incomplete run has no package event. To retry an earlier completed package in a new run, set `retryOfRunId` to that run ID and keep every other input identical. The Actor verifies your account, Actor identity, a completion receipt and input fingerprint. It reuses the saved report without refreshing files or FX and charges no additional event. A fresh independent run without this reference is a new package. Deleted or inaccessible prior results or receipts cannot be reused. A named store (newapi80-completion-receipts-v1) in your account retains completion receipts and completed report snapshots for retries. It contains commercial report data, remains private to your account access settings, and follows your storage retention choices. Delete it when you no longer need retry copies. Limited permissions are sufficient. If an external charge acknowledgement is uncertain, the Actor keeps the complete report and does not issue another charge.

### Quick start

1. Run the prefilled example to compare three synthetic suppliers for 120 units of P1.
2. Replace `quoteFiles` with your own CSV text, XLSX base64, or accessible HTTPS Apify key-value-store file URLs.
3. Map your headers explicitly in `columnMapping`.
4. Set exact target quantities and target units. Supply direct FX rates with dates and any product-specific unit conversions.
5. Supply shipping, duty and tax totals for each supplier's target basket. Use explicit zero only when you know a cost is zero.
6. Read SUMMARY for rankings, OUTPUT for the complete report, and the Dataset for exports.

The default example returns Alpha at **USD 8.70/unit**, Beta at **USD 9.20/unit**, and Gamma with a USD 7 merchandise price but unknown landed cost. Gamma is excluded from the ranking.

### Files and limits

| Item | Supported scope |
|---|---|
| Files | 1–10 CSV/XLSX files per package |
| Quote rows | Up to 5,000 across all files, including price-tier rows; exceeding maxLines fails the package without billing |
| File size | 5 MiB each, 20 MiB total decoded file bytes |
| XLSX expansion | 30 MiB uncompressed ZIP members, 2,000 archive entries |
| Columns / cell text | 100 columns, 4,096 characters per cell |
| CSV | UTF-8 or UTF-8 BOM; comma, semicolon, tab or pipe delimiter |
| XLSX | One selected worksheet per file; specify sheet when a workbook has multiple worksheets |
| Unsupported | XLS, XLSM, encrypted workbooks, macros, external workbook links, formula cells, PDFs, images and OCR |

CSV formulas are treated as inert text; they are never executed. XLSX formula cells in the selected sheet are rejected even when a cached result exists. Export formulas to literal values before uploading. Hidden rows in the selected sheet are included. Blank rows are ignored within bounded physical-row limits.

`quoteFiles` is a JSON array of objects, each with a unique safe `id`, a `format` of `csv` or `xlsx`, and exactly one content source:

- `csvText`: literal CSV text.
- `xlsxBase64`: base64 of the XLSX file bytes.
- `url`: HTTPS `https://api.apify.com/v2/key-value-stores/STORE_ID/records/KEY` file URL accessible to the run. Use an Apify-hosted uploaded file record. URLs from arbitrary third-party hosts, local paths and redirects are not accepted in v1.

Optional file properties: `sheet` and `delimiter`. File URLs and input contents are not written to logs. Store private quotes only in storage you control; the report itself intentionally contains the commercial values needed for your comparison.

### Explicit column mapping

A single global mapping may be used for all files, or an object keyed by file ID may hold a mapping for each file. Map the following canonical fields to exact, unique header names:

| Canonical field | Required | Meaning |
|---|---|---|
| supplier | yes | Supplier identity; exact text |
| quote_id | yes | Quote basket identity, unique within supplier |
| product_key | yes | Your common exact product identifier |
| unit | yes | Unit in which the price, MOQ and tiers are quoted |
| currency | yes | Three uppercase currency letters |
| unit_price | yes | Price per quoted unit |
| moq | yes | Minimum order quantity in quoted units |
| tier_min_quantity | yes | Inclusive lower bound for this all-unit price tier; use 0 for a single price |
| tier_max_quantity | no | Inclusive upper bound; blank means up to the next tier's minimum, exclusive, or unbounded for the last tier |
| order_multiple | no | Order increment in quoted units; default 1. Supply e.g. 0.01 for divisible units |
| lead_time | no | Verbatim text; missing value is reported and never guessed |

Numeric inputs use plain decimal numbers or strings, not localized currency symbols or thousands separators. Money is computed using Python Decimal at 48-digit precision and returned as decimal strings. Values must be finite, nonnegative, at most 1e12 and have at most 12 decimal places. Quantities, exchange rates, increments and conversion factors must be positive.

No fuzzy matching occurs. Prepare a common SKU/product key upstream. A blank or unrecognized key is `needs_review`. Duplicate prices, overlapping tier ranges or inconsistent unit/currency/MOQ/increment/lead-time terms within the same supplier/quote/product are not resolved by choosing the cheapest row.

### Target quantities, MOQ and price tiers

```json
{
  "targetQuantities": {
    "P1": {"quantity": "120", "unit": "each"}
  },
  "unitConversions": [
    {"productKey": "P1", "fromUnit": "box", "toUnit": "each", "factor": "12"}
  ]
}
```

One box equals 12 each. A target of 120 each means 10 boxes. A price of 96 per box is 8 per each before FX and landed extras.

MOQ and tier boundaries are evaluated in the supplier's quoted unit. The Actor never silently increases the target quantity to reach MOQ. A target below MOQ is `moq_not_met`; an incompatible package increment is `order_multiple_not_met`. Neither is ranked.

Only **all-unit tiers** are supported: the selected tier price applies to the entire order. Marginal/progressive tiers, rebates, free goods, discounts conditional on payment, capacity constraints and bundled substitutions are outside v1. Product conversions are explicit and direct; no global assumptions that all boxes contain the same number of units.

### FX inputs

```json
{
  "targetCurrency": "USD",
  "fxRates": [
    {"fromCurrency": "EUR", "toCurrency": "USD", "rate": "1.1", "date": "2026-11-06"}
  ]
}
```

Target amount = source amount × supplied rate. Only direct unique rates to the target currency are accepted; inverse/cross rates are not inferred. Quote currency and cost-basket currency may differ. `fx_used` records each applied rate and its supplied ISO date. Same-currency amounts use 1 with a null date and an explicit same-currency basis. There is no paid or live FX service; supplied dates do not certify rate freshness.

### Shipping, duty and tax inputs

```json
{
  "shippingAndDutyInputs": [
    {
      "supplier": "Alpha",
      "quoteId": "Q1",
      "currency": "USD",
      "shippingTotal": "60",
      "allocationMethod": "by_value",
      "lines": [
        {"productKey": "P1", "dutyTotal": "24", "taxTotal": "0"}
      ]
    }
  ]
}
```

All totals must describe the **exact target basket and quantities**. The Actor does not calculate customs rates, tariffs or tax law. `dutyTotal` and `taxTotal` are supplied totals for one product's target quantity, not percentages. Freight is supplied once per supplier/quote basket.

Allocation options:

- `by_value`: proportional to normalized merchandise value.
- `by_quantity`: proportional to target quantity, only if all basket products use the same normalized unit.
- `equal_lines`: equal share for each distinct supplier/quote/product result, independent of the number of tier rows.

Any unresolved or ineligible offer in the basket blocks freight allocation for that basket. A zero-value denominator is not guessed. Allocation uses Decimal arithmetic; the final basket line carries any division remainder so allocated amounts reconcile exactly to the supplied converted total.

`allocated_shipping`, `supplied_duty` and `supplied_tax` are **target-currency totals for the product quantity**, not per-unit amounts.

`landed_unit_cost = normalized_unit_cost + (allocated_shipping + supplied_duty + supplied_tax) / quantity`

A missing freight, duty, tax or required FX value remains null. `known_partial_unit_cost` adds only supplied components and is not a landed-price promise. `cost_status` is `complete`, `partial` or `unavailable`. Complete means the supported cost components were explicitly supplied, not that the quote covers every possible commercial cost. Include any required additional fees in your supplied amounts and document them separately.

### Results and evidence

The default Dataset has one row per supplier/quote/product, with:

`supplier, quote_id, product_key, match_status, quantity, moq, unit_price, normalized_unit_cost, allocated_shipping, supplied_duty, landed_unit_cost, lead_time, missing_terms, evidence_rows`.

`unit_price` is in `quote_currency` per `quote_unit`; converted costs use target `currency`. `cost_currency` labels the original currency of supplied freight/duty/tax totals. Additional fields include target `currency` and `unit`, `quote_unit`, `quote_quantity`, `moq_normalized`, `selected_tier`, `unit_conversion`, `fx_used`, `supplied_tax`, `allocation_method`, `cost_status`, `known_partial_unit_cost` and `rank`.

Evidence references file ID, worksheet and original physical row number. All price-tier source rows are retained as references. `selected_tier` identifies the applicable range. Commercial source files are never copied into logs.

Match statuses: `matched`, `needs_review`, `moq_not_met`, `order_multiple_not_met`. An offer can be matched while its landed cost is partial.

Ranks are numeric within each exact product and target quantity, in the target currency, for complete matched offers only. Equal prices receive equal competition ranks. Lead time is reported but does not change the cost rank. No cross-product basket optimization, supplier reliability assessment, quote validity assessment, or procurement recommendation is implied.

KVS records:

- `OUTPUT`: all rows, summary and input fingerprint.
- `SUMMARY`: counts, exact comparable rankings, currency and ranking basis.
- `comparison.csv`: flattened JSON cells and spreadsheet formula-injection protection. Use this export for opening untrusted supplier text in a spreadsheet.

Apify's standard Dataset JSON and CSV exports are also available. Standard Dataset CSV preserves raw supplier text; the dedicated `comparison.csv` is the safer spreadsheet export.

### Reproducibility and implementation

Version 1.0.0. Python 3.13; Apify SDK 4.2.1 (Apache-2.0), Apify client 3.4.0 (Apache-2.0), openpyxl 3.1.5 (MIT), defusedxml 0.7.1 (PSF). Dependency versions are pinned in the image. No OCR, LLM, paid FX, supplier login or procurement account connection is required.

The prefilled synthetic example and boundary tests cover MOQ, all-unit tier selection and overlap, package conversions, dated multi-currency inputs, missing costs, ambiguous keys, XLSX formula rejection, billing persistence and 10 files / 5,000 rows. Reports are decision-support calculations based solely on supplied inputs. Review product identity, Incoterms, tax treatment, delivery destination and quote validity before purchasing.

# Actor input Schema

## `quoteFiles` (type: `array`):

1–10 objects with unique id and format csv/xlsx. Supply csvText, xlsxBase64, or HTTPS Apify KVS record url. XLSX multi-sheet files require sheet. CSV delimiter optional. See README.

## `columnMapping` (type: `object`):

Map canonical fields to exact header names, globally or by file id. Required: supplier, quote_id, product_key, unit, currency, unit_price, moq, tier_min_quantity.

## `targetQuantities` (type: `object`):

Exact product keys mapped to {quantity, unit}. No fuzzy product matching or implicit MOQ quantity increases.

## `targetCurrency` (type: `string`):

Three uppercase currency letters. All money outputs use this currency.

## `fxRates` (type: `array`):

Direct rates {fromCurrency,toCurrency,rate,date}; amount in source currency multiplied by rate. ISO date required; no automatic rates.

## `unitConversions` (type: `array`):

Product-specific {productKey,fromUnit,toUnit,factor}; one source unit equals factor target units.

## `shippingAndDutyInputs` (type: `array`):

Per {supplier,quoteId,currency,shippingTotal,allocationMethod,lines:\[{productKey,dutyTotal,taxTotal}]}. Totals are for the target basket. Missing costs remain unknown.

## `maxLines` (type: `integer`):

Hard total quote-row limit across all files. Exceeding it fails the package, without a charge.

## `retryOfRunId` (type: `string`):

Reuse your identical completed report using its completion receipt. Keep the original input unchanged; no additional package event.

## Actor input object example

```json
{
  "quoteFiles": [
    {
      "id": "alpha",
      "format": "csv",
      "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nAlpha,Q1,P1,each,USD,10,1,0,,7 days,1\r\nAlpha,Q1,P1,each,USD,8,1,100,,7 days,1\r\n"
    },
    {
      "id": "beta",
      "format": "csv",
      "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nBeta,Q2,P1,box,EUR,96,5,0,,7 days,1\r\n"
    },
    {
      "id": "gamma",
      "format": "csv",
      "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nGamma,Q3,P1,each,USD,7,1,0,,7 days,1\r\n"
    }
  ],
  "columnMapping": {
    "supplier": "supplier",
    "quote_id": "quote_id",
    "product_key": "product_key",
    "unit": "unit",
    "currency": "currency",
    "unit_price": "unit_price",
    "moq": "moq",
    "tier_min_quantity": "tier_min_quantity",
    "tier_max_quantity": "tier_max_quantity",
    "lead_time": "lead_time",
    "order_multiple": "order_multiple"
  },
  "targetQuantities": {
    "P1": {
      "quantity": "120",
      "unit": "each"
    }
  },
  "targetCurrency": "USD",
  "fxRates": [
    {
      "fromCurrency": "EUR",
      "toCurrency": "USD",
      "rate": "1.1",
      "date": "2026-11-06"
    }
  ],
  "unitConversions": [
    {
      "productKey": "P1",
      "fromUnit": "box",
      "toUnit": "each",
      "factor": "12"
    }
  ],
  "shippingAndDutyInputs": [
    {
      "supplier": "Alpha",
      "quoteId": "Q1",
      "currency": "USD",
      "shippingTotal": "60",
      "allocationMethod": "by_value",
      "lines": [
        {
          "productKey": "P1",
          "dutyTotal": "24",
          "taxTotal": "0"
        }
      ]
    },
    {
      "supplier": "Beta",
      "quoteId": "Q2",
      "currency": "USD",
      "shippingTotal": "36",
      "allocationMethod": "by_quantity",
      "lines": [
        {
          "productKey": "P1",
          "dutyTotal": "12",
          "taxTotal": "0"
        }
      ]
    }
  ],
  "maxLines": 5000
}
```

# Actor output Schema

## `datasetJson` (type: `string`):

No description

## `datasetCsv` (type: `string`):

No description

## `comparison` (type: `string`):

No description

## `safeCsv` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "quoteFiles": [
        {
            "id": "alpha",
            "format": "csv",
            "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nAlpha,Q1,P1,each,USD,10,1,0,,7 days,1\r\nAlpha,Q1,P1,each,USD,8,1,100,,7 days,1\r\n"
        },
        {
            "id": "beta",
            "format": "csv",
            "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nBeta,Q2,P1,box,EUR,96,5,0,,7 days,1\r\n"
        },
        {
            "id": "gamma",
            "format": "csv",
            "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nGamma,Q3,P1,each,USD,7,1,0,,7 days,1\r\n"
        }
    ],
    "columnMapping": {
        "supplier": "supplier",
        "quote_id": "quote_id",
        "product_key": "product_key",
        "unit": "unit",
        "currency": "currency",
        "unit_price": "unit_price",
        "moq": "moq",
        "tier_min_quantity": "tier_min_quantity",
        "tier_max_quantity": "tier_max_quantity",
        "lead_time": "lead_time",
        "order_multiple": "order_multiple"
    },
    "targetQuantities": {
        "P1": {
            "quantity": "120",
            "unit": "each"
        }
    },
    "targetCurrency": "USD",
    "fxRates": [
        {
            "fromCurrency": "EUR",
            "toCurrency": "USD",
            "rate": "1.1",
            "date": "2026-11-06"
        }
    ],
    "unitConversions": [
        {
            "productKey": "P1",
            "fromUnit": "box",
            "toUnit": "each",
            "factor": "12"
        }
    ],
    "shippingAndDutyInputs": [
        {
            "supplier": "Alpha",
            "quoteId": "Q1",
            "currency": "USD",
            "shippingTotal": "60",
            "allocationMethod": "by_value",
            "lines": [
                {
                    "productKey": "P1",
                    "dutyTotal": "24",
                    "taxTotal": "0"
                }
            ]
        },
        {
            "supplier": "Beta",
            "quoteId": "Q2",
            "currency": "USD",
            "shippingTotal": "36",
            "allocationMethod": "by_quantity",
            "lines": [
                {
                    "productKey": "P1",
                    "dutyTotal": "12",
                    "taxTotal": "0"
                }
            ]
        }
    ],
    "maxLines": 5000
};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/supplier-quote-comparison-landed-cost").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 = {
    "quoteFiles": [
        {
            "id": "alpha",
            "format": "csv",
            "csvText": """supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r
Alpha,Q1,P1,each,USD,10,1,0,,7 days,1\r
Alpha,Q1,P1,each,USD,8,1,100,,7 days,1\r
""",
        },
        {
            "id": "beta",
            "format": "csv",
            "csvText": """supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r
Beta,Q2,P1,box,EUR,96,5,0,,7 days,1\r
""",
        },
        {
            "id": "gamma",
            "format": "csv",
            "csvText": """supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r
Gamma,Q3,P1,each,USD,7,1,0,,7 days,1\r
""",
        },
    ],
    "columnMapping": {
        "supplier": "supplier",
        "quote_id": "quote_id",
        "product_key": "product_key",
        "unit": "unit",
        "currency": "currency",
        "unit_price": "unit_price",
        "moq": "moq",
        "tier_min_quantity": "tier_min_quantity",
        "tier_max_quantity": "tier_max_quantity",
        "lead_time": "lead_time",
        "order_multiple": "order_multiple",
    },
    "targetQuantities": { "P1": {
            "quantity": "120",
            "unit": "each",
        } },
    "targetCurrency": "USD",
    "fxRates": [{
            "fromCurrency": "EUR",
            "toCurrency": "USD",
            "rate": "1.1",
            "date": "2026-11-06",
        }],
    "unitConversions": [{
            "productKey": "P1",
            "fromUnit": "box",
            "toUnit": "each",
            "factor": "12",
        }],
    "shippingAndDutyInputs": [
        {
            "supplier": "Alpha",
            "quoteId": "Q1",
            "currency": "USD",
            "shippingTotal": "60",
            "allocationMethod": "by_value",
            "lines": [{
                    "productKey": "P1",
                    "dutyTotal": "24",
                    "taxTotal": "0",
                }],
        },
        {
            "supplier": "Beta",
            "quoteId": "Q2",
            "currency": "USD",
            "shippingTotal": "36",
            "allocationMethod": "by_quantity",
            "lines": [{
                    "productKey": "P1",
                    "dutyTotal": "12",
                    "taxTotal": "0",
                }],
        },
    ],
    "maxLines": 5000,
}

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/supplier-quote-comparison-landed-cost").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 '{
  "quoteFiles": [
    {
      "id": "alpha",
      "format": "csv",
      "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\\r\\nAlpha,Q1,P1,each,USD,10,1,0,,7 days,1\\r\\nAlpha,Q1,P1,each,USD,8,1,100,,7 days,1\\r\\n"
    },
    {
      "id": "beta",
      "format": "csv",
      "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\\r\\nBeta,Q2,P1,box,EUR,96,5,0,,7 days,1\\r\\n"
    },
    {
      "id": "gamma",
      "format": "csv",
      "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\\r\\nGamma,Q3,P1,each,USD,7,1,0,,7 days,1\\r\\n"
    }
  ],
  "columnMapping": {
    "supplier": "supplier",
    "quote_id": "quote_id",
    "product_key": "product_key",
    "unit": "unit",
    "currency": "currency",
    "unit_price": "unit_price",
    "moq": "moq",
    "tier_min_quantity": "tier_min_quantity",
    "tier_max_quantity": "tier_max_quantity",
    "lead_time": "lead_time",
    "order_multiple": "order_multiple"
  },
  "targetQuantities": {
    "P1": {
      "quantity": "120",
      "unit": "each"
    }
  },
  "targetCurrency": "USD",
  "fxRates": [
    {
      "fromCurrency": "EUR",
      "toCurrency": "USD",
      "rate": "1.1",
      "date": "2026-11-06"
    }
  ],
  "unitConversions": [
    {
      "productKey": "P1",
      "fromUnit": "box",
      "toUnit": "each",
      "factor": "12"
    }
  ],
  "shippingAndDutyInputs": [
    {
      "supplier": "Alpha",
      "quoteId": "Q1",
      "currency": "USD",
      "shippingTotal": "60",
      "allocationMethod": "by_value",
      "lines": [
        {
          "productKey": "P1",
          "dutyTotal": "24",
          "taxTotal": "0"
        }
      ]
    },
    {
      "supplier": "Beta",
      "quoteId": "Q2",
      "currency": "USD",
      "shippingTotal": "36",
      "allocationMethod": "by_quantity",
      "lines": [
        {
          "productKey": "P1",
          "dutyTotal": "12",
          "taxTotal": "0"
        }
      ]
    }
  ],
  "maxLines": 5000
}' |
apify call afkdigital/supplier-quote-comparison-landed-cost --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,afkdigital/supplier-quote-comparison-landed-cost"
        }
    }
}
```

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/TatXhigqqkHJO07rg/builds/1VKnjNf5vgWBJlfae/openapi.json
