Supplier Quote Comparison & Landed Cost API avatar

Supplier Quote Comparison & Landed Cost API

Pricing

$0.30 / completed comparison package

Go to Apify Store
Supplier Quote Comparison & Landed Cost API

Supplier Quote Comparison & Landed Cost API

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

Pricing

$0.30 / completed comparison package

Rating

0.0

(0)

Developer

AFK Digital

AFK Digital

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Features

Limited permissions

Share

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

ItemSupported scope
Files1–10 CSV/XLSX files per package
Quote rowsUp to 5,000 across all files, including price-tier rows; exceeding maxLines fails the package without billing
File size5 MiB each, 20 MiB total decoded file bytes
XLSX expansion30 MiB uncompressed ZIP members, 2,000 archive entries
Columns / cell text100 columns, 4,096 characters per cell
CSVUTF-8 or UTF-8 BOM; comma, semicolon, tab or pipe delimiter
XLSXOne selected worksheet per file; specify sheet when a workbook has multiple worksheets
UnsupportedXLS, 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 fieldRequiredMeaning
supplieryesSupplier identity; exact text
quote_idyesQuote basket identity, unique within supplier
product_keyyesYour common exact product identifier
unityesUnit in which the price, MOQ and tiers are quoted
currencyyesThree uppercase currency letters
unit_priceyesPrice per quoted unit
moqyesMinimum order quantity in quoted units
tier_min_quantityyesInclusive lower bound for this all-unit price tier; use 0 for a single price
tier_max_quantitynoInclusive upper bound; blank means up to the next tier's minimum, exclusive, or unbounded for the last tier
order_multiplenoOrder increment in quoted units; default 1. Supply e.g. 0.01 for divisible units
lead_timenoVerbatim 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

{
"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

{
"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

{
"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.