# How Valtor works, under the hood.

URL: https://valtor.io/en/how-it-works
Language: en
Last updated: 2026-11-05

For CTOs and IT teams: what runs where, how a contract becomes an e-invoice, where the AI stops, and what your team no longer has to look after.

## Four stages, in one direction.

### The contract is read

Read

AI

An AI model proposes each term with the clause it comes from. What the contract doesn't state is flagged, never filled in.

### A person confirms the reading

Check

Your team

Proposed terms stay drafts until a reviewer approves them, and named approvers sign off where your policy asks for it.

### Rules plan every invoice

Calculate

Code

Deterministic code, with no AI in it, turns the approved terms into a dated billing calendar.

### Nothing goes out unreleased

Release

Your team

Each invoice passes the send checks, then a person releases it.

## The architecture, end to end.

What comes in, what runs inside Valtor, and what goes out. Everything stored stays in Germany.

### Your systems

CRM, HR and accounting connect through a connection hub that holds the sign-in tokens, not Valtor.

#### CRM

Won deals and their contracts

#### HR system

People, leavers and time off

#### Bank

Incoming payments, read-only

#### Identity provider

Single sign-on for your team

#### Your own tools

Contracts and usage figures by API

### Valtor, hosted in Germany

Contract text is read by an AI model in Google Cloud. It proposes; it never calculates or sends.

#### Web app and API

Every request checked for role and workspace

#### Workers

Background jobs from a queue kept in the database

#### Database

Row-level security on every customer table; an append-only, hash-chained log

#### Calculation engine

Pure code: same contract in, same invoices out

#### Document store

Contracts and issued invoices

### What goes out

#### E-invoices

XRechnung or ZUGFeRD through a Peppol access point

#### Accounting

Postings to DATEV or, on request, the system you use

#### Email

Questions, approvals and reminders to the right person

#### Client portal

Your clients see their invoices and answer questions

#### Webhooks

Signed events to your own systems

## One contract, traced to the ledger.

The parts of Valtor a single retainer passes through, and what each one guarantees.

### The contract arrives

Uploaded, sent by API or picked up from a won CRM deal. Only a contractual document can evidence a term; an old invoice can question one, never supply it.

### The AI proposes terms

A background job sends the text to the model and stores the answer as candidate terms, each with its clause and page. Nothing is calculated from them yet.

### A person approves the rule set

The reviewer confirms or corrects each term. With an approval policy, approvers other than the preparer sign off before anything is scheduled.

### Code builds the calendar

A pure function, with no database or model call inside, turns the approved rules into dated obligations. The same rules always give the same invoices.

### Each invoice is checked

Drafts wait for approval and release. At send time the checks below run for every invoice; one that fails stays back while the others go.

### The e-invoice is issued

The invoice number is drawn gap-free only after every check has passed, then the document goes out through the Peppol access point. A retry never issues twice.

### Posted to your books

A job posts the invoice with the accounts your adviser mapped. A posting that fails is shown and can be retried; it never changes the invoice.

### The payment is matched

Incoming payments are matched to open invoices and a person approves the allocation. Overdue invoices get reminders drafted for release.

## Four workflows, every step and branch.

Who acts at each step, and where an invoice waits until something is answered.

## One change, one transaction.

Every write to Valtor, from a click or an API call, goes through the same five steps.

### Idempotency key

A retried request returns the first answer instead of acting twice.

### Role check

The caller's role is checked before anything is read.

### Workspace scope

The transaction is pinned to one workspace, and row-level security filters every query inside it.

### One commit

The change, its log entry and any outgoing event are saved together, or not at all.

### Queued follow-up

Webhooks, postings and mails are queued in the database and picked up by workers, which retry them.

## The send gate, run for every invoice.

However an invoice is sent, one at a time, in a batch or on a schedule, it passes these checks at the moment it goes.

- Marked ready by a person after its approval
- Production switched on for the workspace
- Sandbox and production never mixed
- Not billing past a contract's end before the renewal is confirmed
- A correction never goes before the invoice it corrects
- Not dated in the future; it waits for its date
- The invoicing connection for that company tested and healthy
- The client's e-invoice format supported
- VAT exemption wording present where no VAT is charged
- Not already being sent

## Your data, kept apart.

### Stored in Germany

Contracts, invoices and the log are stored on Hetzner servers in Germany. Valtor reads contracts with an AI model in Google Cloud.

### Separated in the database

Row-level security, enforced by the database itself, keeps each workspace to its own rows. The application's database role cannot get around it.

### A log nobody can rewrite

Every change is written with who made it and when, chained to the entry before it by a hash. The database refuses to change or delete an entry.

### Issued invoices stay as issued

A correction or cancellation is a new document linked to the original, as GoBD requires. Numbers run without gaps per company.

### Secrets sealed

Credentials a connection needs are encrypted with AES-256-GCM under a key kept outside the database, and never appear in responses or logs.

### Sandbox kept apart

Sandbox contracts, invoices and payments never reach production figures, reports or customers.

## Access, through your own sign-in.

### Single sign-on

People sign in through your identity provider. With sign-on enforced, only accounts from your own organisation get in.

### Roles

Finance, reviewers, delivery staff and admins each see and do only their part. Every change, an admin's included, is logged.

### API keys

A key reaches only the integration endpoints it was made for, never the rest of the workspace.

### Operators see figures, not content

Valtor's own operators see counts and health, never your contracts, invoices or customers.

## API and webhooks, set up with our team.

### Contract intake

Send a contract from your own system. It's read and queued for review exactly like an upload.

### Usage figures

Push the month's figures. Finance accepts them before anything is billed.

### Webhooks

Signed events tell your systems when something in billing changes.

### Safe to retry

Writes take an idempotency key, so a repeated call never creates a second record.

## Day to day, for your IT team.

### What your team does

- Connects single sign-on once
- Creates API keys for your own tools
- Subscribes to the webhooks it needs
- Hands the change log to auditors when they ask

### What it no longer has to do

- Host, patch or scale anything
- Keep invoicing scripts and exports alive
- Remove leavers by hand: with your HR system connected, they lose access
- Follow provider API changes; each adapter is ours to keep

## From sandbox to production.

### Set up

We connect your accounting, CRM and bank together with you.

### Sandbox runs

Three sample runs go from contract to invoice in the sandbox. Nothing real is sent.

### Production, switched on

A finance owner switches production on as its own recorded step. Until then, no real invoice goes out.

## See it on your own contract. Every step on this page, live.

In 30 minutes we read one of your client contracts in Valtor and walk your team through each stage.
