# Meter and bill

Produce a correct statement every month, ready for your billing tool.

Naoshift **meters** your tenants' usage, **values** it with your rate plans and produces monthly **statements**. It does not issue invoices: your billing tool issues them, taxes included. Each statement says so.

## The steps

1. Open **Cloud services › Billing**, then the **Rate plans** tab. Create a plan, standard or dedicated to one tenant, with a stable code: it names the plan in statements and exports.
2. Create its first version from a preset: Pay-as-you-go, Allocation Pool, Reservation Pool or Flex. Choose whether vCPU and memory are billed allocated or powered on.
3. Enter the prices. **No price is prefilled**, and a missing price is refused: it is never counted as zero.
4. Look at the impact on your tenants, then **Publish and seal**. A published version never changes: to change a price, copy it into a new draft.
5. Open the **Customer pricing** tab and assign a plan to each tenant, following new versions or pinned to one. Add their terms if needed: specific price, discount, commitment, trial, minimum.

## Statements

Under **Statements**, statements are recomputed every night, or right away with **Compute this month now**.

- A **validated** statement is frozen: it is never recomputed. A correction goes through an adjustment.
- An unknown total shows as "—", never 0. Hours not measured, a silent source or an unknown tier block the statement, and the detail says why.
- Each line shows the trace of its price, and the machines behind it.

## Exports

Under **Exports**, create a channel: a signed webhook, or a read through the API. Each validated statement goes there, as CSV or JSON. The receiver deduplicates: replaying a delivery never creates a duplicate on its side.

### A tenant's statement is blocked

No plan is assigned to it, or some hours could not be measured. **Metering health** lists the days not closed yet, the silent sources and the anomalies. Resolving an anomaly takes a reason, kept in the audit trail.

### A machine shows as "outside the portal"

It was found in a tenant's pool without having been created by the portal. Under **Outside-portal VMs**, decide: bill it to the tenant, from its detection, from now or from a date, or ignore it. Nothing is billed for it before your decision.
