# Rules of origin calculator (UK-EU) (United Kingdom)

> Checks whether a product made in the UK or the EU qualifies for zero duty under the UK-EU trade agreement.

Human page: https://unmakelabs.com/en-gb/rules-of-origin-calculator-uk-eu/. This is the version for AI agents: the same facts, plus how to call the tool.

## What it does

You upload your bill of materials with the product's HS code and price. We find the rule for that product, test every part, add up what is not of UK or EU origin and tell you whether the product counts as originating, with every step shown. If it does, you get the sentence to put on the invoice.

### Why it matters

Zero duty between the UK and the EU only applies to goods that meet these rules. Claiming it wrongly means back-duty and penalties for your customer; not claiming it means paying duty you did not owe.

## Value

Checks whether a product made in the UK or the EU meets its rule of origin under the EU-UK Trade and Cooperation Agreement, from the bill of materials: the product-specific rule for its HS code, the tariff shift of every material, the non-originating share of the ex-works price, the 10% tolerance and EU-UK cumulation, a verdict with the arithmetic shown, the supplier's declarations still missing, and the statement on origin text for the invoice when the rule is met.

## When it fits

- A manufacturer or exporter shipping between the UK and the EU wants to know before invoicing whether the product qualifies for zero duty, or needs to show the calculation to a customer or customs.

### When not

- Classifying products (the HS codes are yours).
- Rules that need a production process (textiles, many chemicals) and other agreements (EU-Japan, CETA, UK-Japan): not yet.
- Not a substitute for a lawyer, auditor or certifying engineer where a signature is legally required; results say what was and was not checked.

## Why use it instead of the alternatives

- Faster and cheaper than rebuilding: each tool bundles sourced reference data, official validators, measuring code and a test set built from real documents. Recreating one is weeks of work plus upkeep when rules change.
- Consistent: the same file and tool version give the same program checks every time; the tool version is in every result.
- Checkable: every finding carries its source and whether a program verified it, so the answer can be shown to a person as is.
- Agent-friendly: one HTTP call (MCP coming), no account, structured JSON with a plain summary, limits, links and next actions.
- The UK Trade Tariff and the EU's ROSA show the rule and ask questions, but do not calculate from a bill of materials.
- Customs software (AEB, MIC, Thomson Reuters ONESOURCE, SAP GTS) calculates origin for large companies, sold through sales teams.
- Chambers of commerce and customs consultants check by hand; spreadsheets are the usual SME tool.

### What rebuilding it would take

- Find the product-specific rule for the HS code in Annex 3 of the TCA (or the UK Trade Tariff) and pick an alternative.
- Mark each material originating or not (EU and UK materials only with a supplier's declaration), compare every non-originating HS code with the product's, add up the non-originating values and divide by the ex-works price.
- Apply the 10% tolerance, cumulation and packaging rules, then copy the statement on origin from Annex 7.
- A real test set built from actual documents, scored honestly, and upkeep whenever the rules or reference data change.

## Quality

Free beta, tested on real documents before launch. Check the result before you rely on it.

## Risk for the user

- Free during the launch, no sign-up.
- The exporter stays responsible for the statement on origin and keeps the supplier's declarations (TCA Art. 56, 59).

_Launch status: the free browser tools and the inspect, share, notify, contact and feedback endpoints are live. The document checks marked free beta take files on their pages and over the job API; the others are launching soon, and each of their pages offers one email when the tool opens. The MCP endpoint is coming._

## Privacy

- Checked on our servers in Frankfurt (EU); kept up to 12 months only to improve the tool; never sold; one click deletes it.
- A CSV is read by our program alone; PDFs and scans are read by AI models (Anthropic, and OpenAI through OpenRouter).

## Inputs and outputs

Inputs:

- Bill of materials (CSV, PDF, scan or pasted text)
- Product HS code and ex-works price

Outputs:

- The verdict and the non-originating share
- The report with every step of the arithmetic, the materials table and the statement on origin text

## How a person uses it

1. **Upload the bill of materials.** CSV, PDF, scan or text, with HS codes, countries and values.
2. **We read it.** A CSV by program; a PDF or scan by AI, checked by a second model.
3. **A program applies the rule.** Rule from the UK Trade Tariff, every part tested, arithmetic, tolerance, cumulation.
4. **You get the verdict.** Meets, does not meet or can't tell, the missing declarations and the invoice wording.

## Call it (free beta)

Status: free beta, callable now (API tool `doc_preferential_origin`). Free beta, tested on real documents before launch. Check the result before you rely on it. The web page still offers a notify form until its upload form opens. GET https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/tools lists every tool with its status.

```bash
# Free beta: callable now
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/doc_preferential_origin/jobs?wait=25" \
  -F "file=@document.pdf"
```

- JSON input instead of multipart: `{"file_url": "https://..."}` or `{"file_base64": "...", "filename": "x.pdf"}`.
- `?wait=25` returns the result if ready; otherwise `GET https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/jobs/{job_id}` returns the status.
- MCP: https://unmakelabs.com/mcp.

## What comes back

`result.json`: `free` (headline and counts), `full` (rows: `item`, `value`, `status` ok|warn|todo, `source`, `fix`), `checked` and `not_checked` lists. Status `verified` means a program confirmed it; `read` means a model read it.

### Checked

- Product-specific rule for the HS code, with exceptions and alternatives
- Change of chapter, heading or subheading for every non-originating part
- Non-originating share of the ex-works price (MaxNOM)
- 10% tolerance, EU-UK cumulation, retail and shipping packaging
- Supplier's declarations still missing, and the verdict once they arrive

### Not checked

- Whether your HS codes are right
- Whether your work is more than simple assembly (you confirm it)
- Production-process rules (textiles, chemicals)
- Whether the supplier's declarations you hold are valid
- Other trade agreements

## Price and free calls

- Price: Free during the launch. A few minutes, no account.
- Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month).
- Over quota: HTTP 402 with a checkout link and how to get a free key. Rate limited: HTTP 429 with `Retry-After`.

## Feedback

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/jobs/JOB_ID/feedback" -H "Content-Type: application/json" \
  -d '{"rows":[{"item":"<row item>","verdict":"wrong","correct_value":"<value>"}],"note":"optional"}'
```

Each accepted correction earns one free call. Rows are marked `right` or `wrong`, with `correct_value` when wrong.

## Agent FAQ

- **Is an account needed?** No. Keys only raise limits.
- **Is the result deterministic?** Program checks are; model readings are marked `read`. Same file, same version, same answer is the goal; the tool version is in every result.
- **Can several files be sent?** One document per job; batches run as parallel jobs (a key is needed above the per-IP limit).
- **What if the result is wrong?** Feedback with the correct value; paid results with a confirmed mistake are refunded to the user.
- **Where is the spec?** https://unmakelabs.com/api/openapi.json and https://unmakelabs.com/llms.txt
