Supplier Quote Validator avatar

Supplier Quote Validator

Pricing

$100.00 / 1,000 quotation validation reports

Go to Apify Store
Supplier Quote Validator

Supplier Quote Validator

Check structured supplier quotes for totals, carton/piece conversions, MOQ, currency and package-volume consistency. Get explained JSON/CSV reports. USD/EUR only.

Pricing

$100.00 / 1,000 quotation validation reports

Rating

0.0

(0)

Developer

Donald McDoc

Donald McDoc

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

Check supplier quotes before purchase approval

Supplier Quote Validator helps procurement analysts, sourcing teams and purchasing automation builders find inconsistencies in structured supplier quotations. Submit one JSON quotation and receive explained checks plus downloadable JSON and CSV reports for arithmetic, carton/piece conversions, MOQ, currency consistency, package volume and weights.

Use it when your workflow already has structured quote data and you want a repeatable consistency check before human review. It processes one quotation and exits; validation uses no external supplier lookup or AI service.

Input: JSON. Outputs: JSON, two CSV files and a summary. USD and EUR only. It does not read PDF, scanned documents or Excel files, verify suppliers, convert currencies, or approve payments.

First run

  1. Open the Actor's Input page. In the full JSON view, paste the entire example below, including the outer quote field.
  2. If using Form, paste only the object inside quote into Quotation (schema 1.0). Do not put a second quote wrapper inside that field.
  3. Review the displayed price and run options before starting. For the initial supported small-quote workflow, use 256 MB, a 30-second timeout and restart off. Availability and charges depend on the current listing and your Apify account.
  4. After the run finishes, open Summary, then Validation result (JSON) for explanations. Download Checks (CSV) and Items (CSV) from the run's output links.
  5. Read overall_status. A platform status of SUCCEEDED means execution completed; it does not mean the quotation passed.

This synthetic example has seven passing checks in the local validation core:

{
"quote": {
"schema_version": "1.0",
"quote_id": "SYNTHETIC-SQV-001",
"currency": "USD",
"items": [{
"line_id": "A",
"quantity": "3",
"quantity_unit": "carton",
"units_per_carton": "24",
"unit_price": "1.20",
"price_unit": "piece",
"quoted_line_total": "86.40",
"moq_quantity": "48",
"moq_unit": "piece"
}],
"quoted_subtotal": "86.40",
"charges": [{"id": "F", "type": "freight", "amount": "20.00", "currency": "USD"}],
"quoted_grand_total": "106.40",
"packages": [{
"package_id": "P1",
"package_count": 3,
"length": "40",
"width": "30",
"height": "25",
"dimension_unit": "cm",
"gross_weight": "9",
"net_weight": "8",
"weight_unit": "kg",
"quoted_cbm": "0.090000"
}],
"quoted_cbm": "0.09"
}
}

Expected arithmetic: 3 cartons × 24 = 72 pieces; 72 × USD 1.20 = USD 86.40; plus USD 20.00 freight = USD 106.40. Three 40 × 30 × 25 cm cartons total 0.090000 m³, with 27 kg gross and 24 kg net weight. Weights are entered per package, then multiplied by package count.

For no charges, explicitly use "charges": [] and set the example's grand total to "86.40". Omitting charges means they are unknown, so the grand total cannot be checked.

Understand the result

ResultMeaningNext action
passAll reported checks completed and passed under the policyContinue human procurement review
needs_reviewNo failed checks, but a check is uncheckable or a warning remainsSupply missing data or resolve the warning
failAt least one completed consistency check failedInspect supplied versus expected values and clarify with your supplier
invalid_inputThe structure or values violate the input contractFix the indicated field and submit corrected data
execution_failedAn unexpected internal error prevented completionKeep the run/error ID and request support

A business fail can be a useful, correctly completed validation. For example, changing the MOQ to 96 pieces makes a 72-piece order fail MOQ; changing total quoted CBM to 0.12 makes it disagree with calculated 0.09. These findings do not prove fraud or physical shipment accuracy.

Download the reports

OutputWhat you receive
result.jsonDetailed supplied, interpreted and calculated values, checks, issues and totals
checks.csvOne row per check, including passes and uncheckable checks
items.csvOne row per quotation line with normalized quantity and expected line total
Summary datasetOne summary row per attempt, with status, counts and expected totals
RUN_STATEAttempt state and output fingerprints for integration verification

CSV exports are summaries; descriptions and package details are in the JSON. Formula-like user text is prefixed with an apostrophe in CSV. Validator-generated numeric columns retain numeric signs. This is a defensive export measure, not a guarantee for every spreadsheet application.

Input rules and common fixes

ProblemFix
Numbers rejectedUse decimal strings such as "12.50"; package_count is an integer
Unknown fields or nested wrapperUse the documented keys; Form takes the inner quote, full JSON takes { "quote": ... }
Mixed currenciesSubmit a consistently denominated quote; no automatic FX conversion
Missing package/MOQ valuesAdd actual values or retain needs_review; never invent zero values
Carton/piece conversion unavailableSupply units_per_carton; other cross-unit conversions are unsupported
Unexpected grand totalSupply explicit freight/tax/other/discount amounts; use charges: [] for none

Amounts, quantities, dimensions and weights allow at most 18 digits total and 6 decimal places. No thousands separators, currency symbols or exponent notation. Quantity/price units: piece, carton, kg, m; dimensions: mm, cm, m; weights: g, kg. Supported charge types are freight, tax, discount, other; tax percentages are not calculated.

The schema permits 1–1,000 items, up to 1,000 charges and package groups, within 1 MiB raw input. These are validation limits, not a benchmarked cloud performance guarantee. Initial demonstrations cover small quotations.

Money uses decimal arithmetic and half-up rounding to cents, with one-cent comparison tolerance. CBM tolerance is 0.000001 m³. Gross weight must be at least net weight. Missing data is not assumed to be zero. Unknown fields and non-finite JSON values are rejected. Duplicate keys are rejected when present in the raw input available to the Actor; duplicates removed by an upstream editor cannot be recovered.

Pricing and support

Check the Actor's current Pricing section before every run. Platform usage and post-run storage/download operations can incur charges; this example is not a promise of a free trial. A reported runtime cost of null means unknown, not zero. Any paid release must state its exact chargeable events and handling of invalid or incomplete results before activation.

For support, use the Actor's Issues tab. Include the run ID, error code and a redacted field example. Do not post quotation contents, tokens, bank information or signed output links publicly. Billing or credit compensation requests are reviewed through Apify's support process; compensation is not guaranteed. Support availability and ownership must be confirmed by the maintainer before launch.

Privacy and limitations

Submit only data you are authorized to process. Remove personal details and commercial secrets that are unnecessary for validation. Input and detailed output are stored on Apify, and the JSON output echoes supplied fields within documented bounds. The validator does not intentionally log quotation contents or call external AI/supplier services. This is not a claim of end-to-end encryption or zero retention.

Apify account permissions and storage retention govern access and persistence. The Actor does not automatically delete records or provide its own retention guarantee; unnamed and named storage have different lifetimes. Review your account's actual retention settings before using real quotations. Never publish real quote outputs as listing samples.

No PDF/OCR/Excel ingestion, live supplier verification, FX conversion, legal/tax assessment, freight estimation, Incoterms interpretation or payable approval is provided. Historical bounded tests support the demonstrated cases; production reliability, restarts and maximum-size performance are not comprehensively established.

Integration guide

The technical guide below contains the complete schema policy and completion-verification contract. Integrations must retain the independently known run ID, confirm terminal SUCCEEDED, and check completed RUN_STATE, matching attempt IDs and artifact hashes with the completion consumer. Storage contents alone do not prove freshness.

Start with the synthetic quotation above, inspect its seven checks, and decide whether the structured JSON workflow fits your purchasing process.

Technical guide

Checks one structured supplier quotation for internal consistency and returns a traceable report: line arithmetic, subtotal and grand total, carton/piece conversions, currency consistency, minimum order quantity (MOQ), package volume (CBM) and gross/net weights.

The Actor is a finite batch job: it validates one quotation, writes its results and exits. It makes no network or AI calls during validation.

A pass means the supplied data is consistent under the documented policy. It does not verify the supplier, legal or tax correctness, or approve a payable amount.

What it checks

CheckRule
Line totalquantity (converted to the price unit) x unit price, rounded half-up to the currency's minor unit, compared with quoted_line_total within 1 minor unit
SubtotalSum of the expected line totals compared with quoted_subtotal
Grand totalExpected subtotal + freight/tax/other charges - discounts, compared with quoted_grand_total
MOQOrdered quantity >= moq_quantity, in a common unit
Package volumelength x width x height x package_count per group, summed, compared with quoted_cbm within 0.000001 m3
WeightsGross weight >= net weight per package group; totals in kg

Missing data is never treated as zero. Omitted charges means "charges unknown", so the grand total cannot be checked; use "charges": [] for "no charges". A quotation without MOQ or package data gets needs_review, not pass.

Input

One field, quote, holding a schema 1.0 quotation:

{
"quote": {
"schema_version": "1.0",
"quote_id": "SQ-001",
"currency": "USD",
"items": [{
"line_id": "A",
"quantity": "3",
"quantity_unit": "carton",
"units_per_carton": "24",
"unit_price": "1.20",
"price_unit": "piece",
"quoted_line_total": "86.40",
"moq_quantity": "48",
"moq_unit": "piece"
}],
"quoted_subtotal": "86.40",
"charges": [{"id": "F", "type": "freight", "amount": "20.00", "currency": "USD"}],
"quoted_grand_total": "106.40"
}
}

Rules:

  • Amounts, quantities, dimensions and weights are decimal strings ("12.50"): no currency symbols, thousands separators, exponents or JSON numbers. At most 18 digits, 6 after the point. package_count is a JSON integer.
  • Currencies: USD, EUR. No FX conversion; lines or charges in a different currency block the aggregate totals.
  • Quantity and price units: piece, carton, kg, m. Only carton/piece conversion is supported, and it needs units_per_carton.
  • Dimension units: mm, cm, m. Weight units: g, kg (one weight_unit per package group).
  • Charge types: freight, tax, discount, other. Tax must be an explicit amount; percentages are not interpreted.
  • Limits: 1-1000 items, 1000 charges, 1000 package groups, 1 MiB for the whole raw input record. Unknown fields are rejected.
  • Strict JSON: duplicate object keys (anywhere in the input) and NaN/Infinity are rejected. The Actor checks the raw bytes of the input record, because the SDK's parsed input silently keeps only the last duplicate. If the raw record cannot be read, or differs from what the SDK delivered, the result is invalid_input with INPUT_INTEGRITY_UNVERIFIED, never a pass. Duplicates that were already removed before the input reached the Actor (for example by a browser JSON editor) cannot be detected.

Output

LocationContent
Key-value store result.jsonCanonical result (see below)
Key-value store checks.csvOne row per check, including passes and uncheckable checks
Key-value store items.csvOne row per line with normalized quantity and expected total
Dataset (one item per attempt)Summary: invocation_id, attempt_id, status, counts and expected totals
Key-value store RUN_STATECurrent attempt marker with invocation_id: running, then completed, failed or interrupted

result.json contains:

  • input_reference: SHA-256 and size of the raw input record, and whether strict parsing and the duplicate-key check were performed.
  • supplied_quote, normalized_items, normalized_charges, normalized_packages, each with three parts:
    • supplied: the original input values, verbatim, including descriptions, money strings, units, units_per_carton, dimensions, weights and package_count.
    • interpretation: how the validator read them (effective currency and its source, unit conversion and factor, metres/kilograms).
    • calculated: the validator's own results.
  • totals, every check with evidence (supplied, expected, delta, tolerance, dependencies), issues, attempt and execution_metrics.

Supplied strings are kept up to 200 characters, and descriptions up to 2000 characters. Anything cut is listed in supplied_truncated with its original length. Unknown fields are not echoed; they are reported as issues.

Execution identity and completion rule

Records in storage cannot prove by themselves that they belong to the run you started. If a run fails before it can write anything, an earlier run's records are still there and still consistent. Verification therefore needs an invocation ID you know before you read storage:

  • On Apify: the run ID returned when you start the run (APIFY_ACTOR_RUN_ID inside the run).
  • Locally: set SQV_INVOCATION_ID to a new unique value for every invocation (1-128 characters A-Z a-z 0-9 . _ : -, starting with a letter or digit).
  • Otherwise: the Actor generates an ID and marks it generated. Such outputs can never be verified as a successful run, even if you copy the ID out of storage.

Accept outputs only if all of these hold. my_actor.completion.verify_completion and verify_local_storage implement this rule.

  1. You supply the expected invocation ID. A missing ID means not successful.
  2. The independently observed outcome is not a failure. Pass it as invocation_succeeded: exit code 0 locally, or the run's terminal status SUCCEEDED on the platform.
    • Platform run IDs: the outcome is required. One run ID can span several attempts (restart, migration, resurrection), and the platform gives you no per-attempt ID. If a later attempt fails before writing anything, the earlier attempt's records still carry the same run ID and are consistent. Only the run's final status can reveal that failure, so an unknown outcome is rejected (latest_attempt_outcome_unknown). This relies on the platform's terminal run status reflecting the run's latest attempt; this project has not tested that on Apify.
    • Caller-supplied local IDs: the outcome is optional, because a fresh ID identifies one attempt. Pass the exit code anyway; it is the only protection if an ID was ever reused.
  3. RUN_STATE.invocation_id equals the expected ID, and its source is platform_run_id or caller_supplied.
  4. RUN_STATE.status is completed. running, failed and interrupted are not successful.
  5. result.json attempt and exactly one dataset item carry the same invocation_id and attempt_id.
  6. The SHA-256 hashes in RUN_STATE.outputs match checks.csv and items.csv (exact bytes) and result.json (canonical JSON: sorted keys, compact, UTF-8).

An accepted verdict states its basis in details['basis']. Verification confirms completion and freshness under these assumptions only. It is not authenticated tamper evidence, it does not judge the quotation (an accepted run can have overall_status fail or invalid_input), and it cannot detect a failure that left no record and was not reported to you.

Permitted storage reuse:

  • Platform runs use their own fresh default storages. The Actor uses only the default stores.
  • Locally, reusing a storage directory is permitted only with a new SQV_INVOCATION_ID per invocation.
    • The Actor never deletes or purges records. Older records stay, but they carry another invocation ID and are rejected for the current one.
    • The dataset is append-only, so select items by invocation and attempt ID.
    • Local crawlee may purge default stores itself when they are opened (purge_on_start, default on). That is SDK behavior, not the Actor's.
  • Reusing an invocation ID in the same store is a caller error. The Actor detects it, marks the attempt failed (invocation_id_reused) and does not validate.

overall_status is one of:

  • invalid_input: structural or value errors in the quotation (independent checks are still reported).
  • fail: at least one completed check failed.
  • needs_review: no failures, but some checks could not be completed or warnings remain.
  • pass: every check was completed and passed.
  • execution_failed: an unexpected internal error; the run ends as failed with a safe error ID.

CSV text that a spreadsheet could interpret as a formula (starting with =, +, -, @ or control whitespace) is prefixed with '. The supplied blocks in result.json keep the original text (within the limits above). The CSVs are a summary view and omit descriptions and package details.

Cost

Validation is CPU-light and needs no paid APIs. Historical small-run charges have been measured, but are not a future cost guarantee. Runtime execution_metrics.cost remains null (unknown, not zero). Review current pricing and storage/download charges before use.

Limitations

Structured JSON only. PDF, scanned documents, Excel files, FX rates, tax rules, Incoterms, freight estimation and supplier risk scoring are out of scope.

Development

$python -m unittest discover -s tests -t . -v

Tests are offline. The core uses only the standard library. tests/test_actor_adapter.py uses a stub apify module that simulates the platform raw-input path. tests/test_real_sdk_local.py runs my_actor end-to-end with the real Apify SDK in isolated local storage (no token, no network), including duplicate-key input and reused storage; it is skipped when apify is not installed. pytest also works: python -m pytest tests. The original Apify Standby template is preserved in Git history at commit 0df09c6.