TAŇBA-OOH Developers

Find a statement and its evidence in the console

An operator sees in the console what was accrued for each month, creates a statement from it and downloads the evidence behind a line or behind the whole statement. This guide walks through those screens. How to read the lines of a statement and to check the ledger, the seals and the approvals offline is in Read a statement and check its evidence.

Reference pages: Evidence and offline checking and Downloads, where tanba-verify is.

Before you start

Open a period

Open Billing. The list shows one row per month with the amount, the VAT and the state, Open or Closed. A closed period can no longer change. Choose a month to open its page.

The page shows the total and then the accrual lines. Each line has a type, a reference, a quantity, an amount and the VAT.

TypeWhat it is
Impressions (per 1000)Plays of one structure and approval, with the hours they cover in the reference
Approval, single / prepaid / priorityThe fee for an approval
Data and delivery proofA data fee
Laboratory testA laboratory fee

If plays were reported but are not part of the bill, a note above the lines says how many and through which channel: operator CMS rows, device certificate, device signature, signed operator CMS or player report. Plays you imported from your own CMS are in that note, and they are never billed.

Create a statement

Choose Create a statement (PDF) in the Statements card of the period. The row that appears has its number, date, amount and state. The state is Estimate, Issued or Void; a statement you create is an Estimate. Download PDF saves the statement. It is made in the language the console is set to when you create it.

Download the evidence

There are two downloads, and both are a zip file with the signed telemetry batches behind the figures:

A pack holds a signed manifest (manifest.json and manifest.p7s), the batches exactly as the devices sent them, the signing keys, the approvals, the daily seals with their proofs, and a README.txt in Kazakh, Russian and English. Each download is recorded in the audit log.

Check the pack

You need the pack and root.pem, the platform root certificate. Do not unpack the zip:

tanba-verify evidence pack.zip --ca root.pem

OK means that the manifest signature, the signature and hash of every batch, the Merkle paths to the daily seals and the hourly recount of the plays agree. Any other answer is a code and the batch where the fault was found, and the exit code tells a script which case it is.

ExitCodeMeaning
0OKEverything agrees
2BAD_SIGNATUREA signature of the manifest, a batch or a seal does not verify
3HASH_MISMATCHA file is not the one the manifest lists
4ROOT_MISMATCHThe batches do not lead to the root of the manifest or of a seal, for example because one is missing
5UNKNOWN_CREDENTIALA batch is signed with a key the pack does not hold, or a certificate does not chain to the root
6PENDING_LEDGERA seal is not yet in a ledger day; check again later
7RECOUNT_MISMATCHThe recount of the plays differs from the figures
8BAD_LEDGER_PROOFThe proof from a seal to the ledger does not verify
9PARTIALSome batches could not be recounted in full; the contributions of those batches are taken as declared
10UNKNOWN_FORMATThe pack is in a newer format; use the current tanba-verify
11BAD_MANIFESTThe file is not a pack or its manifest is damaged
64Wrong command or no root given

If you disagree with a figure

Next to each line the console offers Dispute, and Dispute the period once a statement exists. Dispute opens a dispute on that line or on the whole period.

What the evidence does not show

A pack proves what the platform received and that it was not changed afterwards. A play that was never reported is not in it.