# Statements, PDFs and sandbox payouts

This guide explains what is on a monthly statement, how to get it as a PDF or CSV for your accounting, and what a statement marked **SANDBOX** means. For the states and the schedule in short form, see [payouts](https://docs.zokogames.com/business/payouts).

## When a statement is created

A statement covers one calendar month. It is cut automatically on the second day of the following month. A statement you can see is a frozen snapshot of that month: the figures on the page, in the PDF and in the CSV all read the same snapshot, so they cannot differ.

A new statement sends the `statement.created` [webhook](https://docs.zokogames.com/guides/webhooks) and a notification to your studio. A re-run of the same month does not create a second statement and does not send the event again. The notification (an email to each owner and admin, and a push) is sent once per statement, whether the month was closed by the monthly schedule or by the portal team.

## What a statement contains

| Section | What it shows |
| --- | --- |
| Header | Studio legal name, period (`YYYY-MM`), invoice number, currency and state. |
| Game lines | One line per game with ad revenue: gross, invalid traffic removed, net, your share rate and your share. |
| Store lines | In-game store revenue on its own line per game, with its own share rate. Sales tax and VAT are never counted, refunds and chargebacks are deducted, and sandbox purchases are excluded. |
| Adjustments | Manual lines added by the portal team, positive or negative. |
| Totals | Share of games, adjustments, amount carried in from earlier months, total payable, payout and the amount carried out. |
| Payment | The payment reference and date, once the statement is paid. |

Amounts are rounded down to the cent. In the API they are integers in micros (1,000,000 micros is one unit of the currency).

A statement below the minimum payout is shown as **rolled over**: nothing is invoiced and the whole balance moves into the next statement. The PDF says so in a note.

**An amount too large to state exactly.** A statement whose payable amount is outside the range we can state exactly (beyond 9,007,199,254,740,991 micros, about 9 billion units of the currency) is never rounded. The console does not show that figure and asks you to contact developer support, the portal team settles it with you by hand, the `statement.updated` [webhook](https://docs.zokogames.com/guides/webhooks) carries `payableMicros: null` for it, and the [developer API](https://docs.zokogames.com/guides/developer-api) statements endpoints answer `409 amount_unsafe`.

## Lines that need explaining

**Late revenue.** Revenue of an earlier month that is reported after that month's statement was cut is not lost, and a settled statement is never reopened. The next statement pays the difference on its own lines, marked **Late revenue for** and the month, after the month's own lines, with a subtotal when there are several. A month whose revenue was revised down appears as a deduction among the adjustments, at the game's share rate. Late lines use the share rates in force when the new statement is made and reach back at most 12 months. In the CSV they carry the month in the `late_period` column.

**Invalid traffic.** Ad revenue found to come from invalid traffic is deducted on the game's line, in the **Invalid traffic** column, and the totals show the sum. A deduction never takes a line below zero: whatever exceeds the game's revenue for the month is taken from the balance at the game's share rate, on an adjustment line called **Invalid traffic beyond the period's revenue**. A game with only a deduction that month still gets a line. Invalid traffic is not deducted from store lines or late-revenue lines.

**A game that changed studios.** Ad revenue is counted per UTC day, and each day goes to the studio that owned the game at the end of that day: on the day of a transfer the whole day belongs to the new studio, whatever the time. Each day is counted once, so the two studios' statements for that month add up to the game's revenue. Store revenue stays with the studio that owned the game when each purchase was recorded. Late revenue follows the same rules: a revision of a day before the transfer belongs to the studio that owned the game on that day.

**Removed game.** A line for a game that no longer existed when the statement was made is labelled **Removed game**. The amount is still yours; only the name is gone.

## Why a statement is on hold

A held statement says why, on the **Payouts** page and on the statement itself.

| Reason | What it means | How it ends |
| --- | --- | --- |
| Tax form | The studio's tax form is not approved yet, or the terms are not accepted. | Released automatically once both are done, at the latest with the next statement run. Owners see a link to the payout profile; admins are told that the owner can submit the form. |
| Dispute | The portal team holds this one statement while a question about it is reviewed. | Released by the portal team, one statement at a time. |
| Studio | Payouts for the whole studio are on hold. | Lifted by the portal team for the whole studio. |

When the portal team gave a reason in the hold notice your studio received, the page shows it as **Note from ZokoGames**. Internal notes are never shown. A released statement is paid together with later ones, as described in [payouts](https://docs.zokogames.com/business/payouts).

## Download a statement

1. Open **Payouts** in the developer console and choose a statement.
2. Press **Download PDF** for the self-billing invoice, or download the CSV.

Only owners and admins of the studio can download. A statement that is still **open** has no PDF yet. The PDF has the same lines as the page, including late revenue with its subtotal and a footnote, the invalid traffic deducted and any **Removed game** lines. Its labels are in the language you use the site in (or your browser's language), and in English when that language's script cannot be printed; game names and adjustment notes appear as stored. The CSV is a data file for accounting tools and reads the same in every language: its column names, section and total names (such as `late_revenue` and `payable`), the statement status and the labels of late-revenue and invalid-traffic deductions are fixed English, and game names and adjustment notes appear as stored.

The same files are available from the API of the studio. These routes use your console session, not an API token.

| Request | Returns |
| --- | --- |
| `GET /api/developer/orgs/{studioId}/statements/{statementId}/pdf` | The PDF, as `statement-<studio-slug>-<period>.pdf`. |
| `GET /api/developer/orgs/{studioId}/statements/{statementId}?format=csv` | The CSV: a header block, one row per game or store line, adjustments, then the totals. |
| `GET /api/v1/statements` | The list of cut statements as JSON, with scope `statements:read`. See [developer API](https://docs.zokogames.com/guides/developer-api). |

| Status | Code | Meaning |
| --- | --- | --- |
| 404 | `not_found` | The statement does not exist in this studio, or it is still open. A statement id from another studio looks the same. |
| 429 | `rate_limited` | More than 20 PDF downloads in a minute. Wait and retry. |

## Sandbox and production

Production pays by hand (manual payouts, see [payouts](https://docs.zokogames.com/business/payouts)). A studio whose payout account is still the built-in test provider (a reference that starts with `stub_`, from before manual payouts or on a test copy of the portal) gets sandbox statements until its owner confirms manual payouts. The test provider links no bank account and moves no money.

| | Sandbox | Production (manual payouts) |
| --- | --- | --- |
| Payout account | A reference that starts with `stub_`. | A reference that starts with `manual_`, set when the owner confirms manual payouts. |
| PDF | Carries a **SANDBOX** watermark and a note that nothing on it is payable. | No watermark. |
| Test-mode money | Shown on the page for reference and never included in the totals or on statements. | Not applicable. |
| Payment | None. | Made by hand by the portal team outside the console, to the method in your payout profile, with its reference recorded on the statement. |

A statement with the watermark is not an invoice. Do not book it in your accounts.

## Next steps

- [Payouts](https://docs.zokogames.com/business/payouts) for the states, minimum and invoices.
- [Webhooks](https://docs.zokogames.com/guides/webhooks) for `statement.created` and `statement.updated`.
- [Revenue share](https://docs.zokogames.com/business/revenue-share) for the rates behind the share column.
