# Czech ISDOC Invoice Parser, VAT Checks and CNB Rates (`alertviz/isdoc-invoice-adis-audit`) Actor

Parse Czech ISDOC invoice XML, compare supplier accounts with ADIS, and convert foreign invoice totals using Czech National Bank exchange rates.

- **URL**: https://apify.com/alertviz/isdoc-invoice-adis-audit.md
- **Developed by:** [Michal Novotný](https://apify.com/alertviz) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 isdoc invoices

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

## Czech ISDOC 6.0.x Invoice Parser, ADIS §109 Bank Check & CNB FX Audit

Parse Czech **ISDOC 6.0.x XML** e-invoices (inline or via SSRF-safe public HTTPS URLs), audit suppliers against official Czech registries (**ARES**, **Insolvency ISIR**, **MFČR ADIS §109 ZDPH**), flag **unregistered beneficiary bank accounts**, convert foreign-currency totals at official **CNB** DUZP rates, and emit compliant **Czech `SPD*1.0`** or **EU SEPA `EPC069-12`** QR payment strings.

### Why Accountants & ERP/n8n Workflows Use This Actor

- **ADIS supplier-account comparison**: Verifies both unreliable VAT status (`nespolehlivyPlatce`) and whether the invoice's bank account (matched by canonical 20-digit Czech BBAN across domestic `account/bank` and `CZ...` IBAN forms) matches the supplier's published ADIS accounts (`UNREGISTERED_BANK_ACCOUNT` → `complianceStatus: "BLOCK"`).
- **Strict Parsing Guards**: Blocks XML XXE/DTD attacks (`<!DOCTYPE` / `<!ENTITY`), never fabricates `0000` bank codes when `<BankCode>` is omitted, never substitutes local CZK totals when `*Curr` foreign amounts are missing, and cleanly suppresses QR codes on `0.00` balances or invalid IBANs.
- **Official ČNB DUZP FX**: Automatically converts `EUR`/`USD`/foreign totals into CZK using the invoice's `<TaxPointDate>` (`DUZP`) rate from Česká národní banka.
- **Zero Fragile Scraping**: Uses direct official REST/SOAP/TXT registry feeds — no headless browser overhead or residential proxies required.

A match records what the registry returned at lookup time. Review exceptions with the supplier before making a payment.

### Inputs

- `xmlDocuments`: Array of raw ISDOC XML strings (or `{ "filename": "...", "xml": "..." }` objects).
- `xmlUrls`: Optional array of public `http://` / `https://` URLs pointing to `.isdoc` or `.xml` files (protected by SSRF IP/DNS validation).
- `verifyAdis` (boolean, default `true`): Verify supplier in ARES + Insolvency + ADIS §109.
- `convertToCzk` (boolean, default `true`): Convert foreign currency totals using ČNB FX for DUZP date.
- `includeLines` (boolean, default `true`): Extract `<InvoiceLine>` items.
- `maxInvoices` (`1..100`, default `50`).

### Output Example

```json
{
  "invoiceId": "FV-2026-0142",
  "currency": "CZK",
  "supplier": { "ico": "00094943", "name": "Moravská zemská knihovna v Brně" },
  "payment": {
    "displayAccount": "197638621/0710",
    "iban": "CZ5607100000000197638621",
    "ibanValid": true,
    "qrFormat": "SPD*1.0"
  },
  "adisAudit": {
    "vatStatus": "VAT_PAYER_OK",
    "accountCheck": "MATCHES_ADIS_REGISTRY",
    "riskFlags": ["CLEAN"],
    "complianceStatus": "PASS"
  },
  "cnbConversion": { "currency": "CZK", "amount": 6050.0, "amountInCzk": 6050.0 }
}
```

### Pay-Per-Event Billing

- `isdoc_invoice_audited`: Emitted once per parsed & audited ISDOC invoice.

Want an instant interactive browser version, free zero-login Czech invoice PDF generator, or live Remote MCP Server (`https://alertviz.com/api/eurokyb/mcp`)? Try **https://alertviz.com/isdoc/** and **https://alertviz.com/eurokyb/**.

# Actor input Schema

## `xmlDocuments` (type: `array`):

Raw ISDOC 6.0.x XML strings (or objects {filename, xml}) to parse and audit.

## `xmlUrls` (type: `array`):

Optional list of SSRF-validated public http:// or https:// URLs serving .isdoc / .xml invoices.

## `verifyAdis` (type: `boolean`):

Look up the supplier in Czech public registers where an IČO is available.

## `convertToCzk` (type: `boolean`):

Look up the CNB conversion rate for a foreign-currency invoice.

## `includeLines` (type: `boolean`):

Include individual invoice line items in the result.

## `maxInvoices` (type: `integer`):

Maximum number of inline and remote invoices to process in total.

## Actor input object example

```json
{
  "xmlDocuments": [
    "<Invoice xmlns=\"http://isdoc.cz/namespace/2013\" version=\"6.0.2\"><DocumentType>1</DocumentType><ID>DEMO-001</ID><IssueDate>2026-11-17</IssueDate><LocalCurrencyCode>CZK</LocalCurrencyCode><AccountingSupplierParty><Party><PartyName><Name>Demo supplier</Name></PartyName></Party></AccountingSupplierParty><LegalMonetaryTotal><TaxExclusiveAmount>100.00</TaxExclusiveAmount><TaxInclusiveAmount>100.00</TaxInclusiveAmount><PayableAmount>100.00</PayableAmount></LegalMonetaryTotal></Invoice>"
  ],
  "verifyAdis": true,
  "convertToCzk": true,
  "includeLines": true,
  "maxInvoices": 50
}
```

# Actor output Schema

## `results` (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 = {
    "xmlDocuments": [
        "<Invoice xmlns=\"http://isdoc.cz/namespace/2013\" version=\"6.0.2\"><DocumentType>1</DocumentType><ID>DEMO-001</ID><IssueDate>2026-11-17</IssueDate><LocalCurrencyCode>CZK</LocalCurrencyCode><AccountingSupplierParty><Party><PartyName><Name>Demo supplier</Name></PartyName></Party></AccountingSupplierParty><LegalMonetaryTotal><TaxExclusiveAmount>100.00</TaxExclusiveAmount><TaxInclusiveAmount>100.00</TaxInclusiveAmount><PayableAmount>100.00</PayableAmount></LegalMonetaryTotal></Invoice>"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alertviz/isdoc-invoice-adis-audit").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 = { "xmlDocuments": ["<Invoice xmlns=\"http://isdoc.cz/namespace/2013\" version=\"6.0.2\"><DocumentType>1</DocumentType><ID>DEMO-001</ID><IssueDate>2026-11-17</IssueDate><LocalCurrencyCode>CZK</LocalCurrencyCode><AccountingSupplierParty><Party><PartyName><Name>Demo supplier</Name></PartyName></Party></AccountingSupplierParty><LegalMonetaryTotal><TaxExclusiveAmount>100.00</TaxExclusiveAmount><TaxInclusiveAmount>100.00</TaxInclusiveAmount><PayableAmount>100.00</PayableAmount></LegalMonetaryTotal></Invoice>"] }

# Run the Actor and wait for it to finish
run = client.actor("alertviz/isdoc-invoice-adis-audit").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 '{
  "xmlDocuments": [
    "<Invoice xmlns=\\"http://isdoc.cz/namespace/2013\\" version=\\"6.0.2\\"><DocumentType>1</DocumentType><ID>DEMO-001</ID><IssueDate>2026-11-17</IssueDate><LocalCurrencyCode>CZK</LocalCurrencyCode><AccountingSupplierParty><Party><PartyName><Name>Demo supplier</Name></PartyName></Party></AccountingSupplierParty><LegalMonetaryTotal><TaxExclusiveAmount>100.00</TaxExclusiveAmount><TaxInclusiveAmount>100.00</TaxInclusiveAmount><PayableAmount>100.00</PayableAmount></LegalMonetaryTotal></Invoice>"
  ]
}' |
apify call alertviz/isdoc-invoice-adis-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alertviz/isdoc-invoice-adis-audit"
        }
    }
}
```

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/A4WVo9jEHc1jetN0P/builds/rkvywYmCTS7on7Rjn/openapi.json
