---
title: "Amplia Reg command: **fill-order-transactions**"
description: "Amplia Reg command fill-order-transactions: fills in the cost report transactions of orders created before version 7.0.0."
canonical: "https://docs.lacunasoftware.com/en-us/articles/amplia-reg/on-premises/tool/fill-order-transactions"
locale: "en"
product: "Amplia Reg"
last_updated: "2026-10-12"
---

# Amplia Reg command: **fill-order-transactions**

## Name

`fill-order-transactions` - Fills in the cost transaction history of older orders

## Syntax

```sh
dotnet Lacuna.AmpliaRegNg.Site.dll [settings] -- fill-order-transactions [options]
```

Or, on Docker:

```sh
docker run -i lacunasoftware/ampliareg:x.y.z [settings] -- fill-order-transactions [options]
```

> **Info**
>
> Replace `x.y.z` above with the desired version

The `settings` arguments are additional settings to overwrite settings from configuration files and environment variables,
for instance `--Section1:Name1=value1 --Section2:Name2=value2`.

Options:

* `--batchsize <batch-size>`: number of orders to process per batch. Default: 100
* `--logfrequency <log-frequency>`: how often, in number of processed orders, progress is written to the log. A value less than or equal to zero turns this log off. Default: 5

## Description

The `fill-order-transactions` command rebuilds, from each order's event trail, the transactions of the per-order cost control report
(introduced in version [7.0.0](https://docs.lacunasoftware.com/en-us/articles/amplia-reg/changelog#7.0.0)) for orders that already existed before that control started recording
transactions in real time.

For each order, the command looks for historical events (SMS/email sending, DataValid/Serpro/Acertpix queries, liveness, PSBio, etc.)
that don't have a matching cost transaction yet, and creates the missing transactions with the original date of the event.

> **Info**
>
> This command is optional: orders created, or with new events, from version 7.0.0 on already have their cost transactions recorded
> automatically. Run this command only if you want the cost report to also reflect the history of orders older than that version.

Before processing, the command shows the number of orders found and asks for confirmation (`Y`) before going ahead, since the action cannot be undone.

## See also

* [Amplia Reg command-line tool](https://docs.lacunasoftware.com/en-us/articles/amplia-reg/on-premises/tool)
