Ir al contenido
Español

From contract to payment

This page follows one full month of a real contract from start to finish. If you read only one page before setting up your organization, make it this one.

Acme AI has a contract in force throughout 2026, in USD, billed monthly in arrears, with 30-day payment terms and a purchase order (OC, orden de compra) requirement.

January walkthrough
  1. 8,420 conversations
  2. Billable metric
  3. Tiered price
  4. Pre-invoice
  5. OC
  6. Invoice
  7. Payment

Acme’s contract has two charges:

Charge Type Price Timing
Platform Fixed USD 1,000 / month In advance
AI conversations Usage Tiered: 1,000 included · then 0.10 · above 5,000, 0.07 In arrears

Neither price lives in the catalog: they live in this contract. The same service can cost another customer something different without touching anything here.

Acme contract and the current period's charge calculationClick to enlarge
Active Acme contract with usage charges and a platform subscription, next to the current charge calculation of USD 1,639.40.

Each conversation arrives as a usage event with its time of occurrence and its unique identifier. Events are immutable: if one arrived wrong, it is corrected with a correction event, never by editing the original.

If the same event arrives twice, it is not billed twice. That is why every submission carries its own identifier.

3 · The metric turns events into a quantity

Sección titulada «3 · The metric turns events into a quantity»

The contract does not bill “events”: it bills the quantity produced by the billable metric. For Acme, the metric counts conversations in the period. In January: 8,420.

4 · The period closes and the charge calculation runs

Sección titulada «4 · The period closes and the charge calculation runs»

When January closes, Relvo calculates the period’s charge calculation: it applies the price to the quantity, adds the fixed charge and totals it.

Example

January charge calculation

Item Calculation Amount
First 1,000 conversations included USD 0.00
Next 4,000 4,000 × USD 0.10 USD 400.00
Remaining 3,420 3,420 × USD 0.07 USD 239.40
Platform subscription monthly USD 1,000.00
Total USD 1,639.40

A charge calculation is not an invoice: it has no tax effect and can be recalculated. If late January usage arrives before issuance, the charge calculation is recalculated and reflects the correct total. This is the cheap moment to correct.

Acme requires a purchase order, so the charge calculation is shared as a pre-invoice: the same detail, with no tax validity, so the customer can validate it and issue its OC.

Until the OC arrives, issuance stays blocked. This is not a failure: it is the contract’s invoicing condition doing its job. Once the evidence is recorded, the block lifts.

With the approval in hand, the charge calculation becomes an invoice and is sent to the tax authority. From that moment the document can no longer be edited.

Its status stops being a single value and becomes four, independent of one another:

Axis At issuance Shortly after
Lifecycle open open
Fiscal status pending accepted
Delivery send_requested delivered
Payment unpaid unpaid

With 30-day terms, the due date is set by the customer’s billing link.

Relvo sends the invoice to the contact with the billing role, and the XML to the XML email contact if the customer asks for it separately. Sent and delivered are two different things: the delivery axis records both, which is what lets you answer with evidence when a customer says they never received it.

If the email bounces permanently, the address is suppressed and stops receiving: continuing to send to a dead mailbox degrades the domain’s reputation for every other customer.

Acme pays USD 1,000 on the 20th and the balance the following week.

Moment Payment axis Balance
After the first payment partially_paid USD 639.40
After the second paid USD 0.00

The bank movement is reconciled against the invoice. Relvo proposes the match; confirmation is human when there is ambiguity, because applying a payment to the wrong document costs more than reviewing it.

At the end of the walkthrough, every unit of currency charged has full traceability: which events originated it, which metric counted them, which price tier applied, which approval authorized it, which tax document formalized it and which bank movement settled it.