# Changelog

> Dated changes to the Relvo public API, newest first

Source: https://app.relvoerp.com/docs/product/guides/changelog/

Every change to the public API's contract is listed here, newest first. The version on each entry is the `info.version` of the [API Reference](https://app.relvoerp.com/docs) from that date.

Within `v1`, changes are additive only: new operations, optional parameters, response fields, enum values and headers. Ignore fields you don't recognize, and handle enum values you don't recognize. Removing, renaming or retyping anything, or newly requiring an input, happens only in a new major version (`/api/v2`), except for the rare break approved and listed explicitly in an entry below.

## Deprecations

A deprecated operation keeps working until its sunset date. Every response from it, errors included, carries:

| Header | Meaning |
|---|---|
| `Deprecation` | When the operation was deprecated: `@` followed by Unix seconds ([RFC 9745](https://www.rfc-editor.org/rfc/rfc9745)). |
| `Sunset` | When it stops answering, as an HTTP-date ([RFC 8594](https://www.rfc-editor.org/rfc/rfc8594)). |
| `Link` | This page's entry for the deprecation, with `rel="deprecation"`. The entry names the replacement. |

The API Reference also marks the operation as deprecated. Alert on the `Deprecation` header in your integration so a deprecation never reaches you as an outage.

## 2026-11-17

Version: `1.8.1`

- API Reference ETags now describe versioned resources and explicitly documented headers.
  Lists, reports, totals and immutable processing records no longer advertise a version
  token they do not return. Quote PDF ETags are documented as document checksums.
  Request bodies, paths and runtime concurrency behavior are unchanged.

- **Approved breaking quote API cleanup:** quote summaries, amendments and credit-grant
  responses/filters use `contractId` instead of `billingScheduleId`; execution uses
  `contractAction` instead of `scheduleAction`. Supported HTTP paths are unchanged.
  Quote detail and execution responses now expose the created or targeted `contractId`.
- The deprecated `POST /api/v1/public/quotes/{quote_id}/send-reminders` is removed (404).
  Use `notify-recipients` with explicit `recipients`. Notification evidence and historical
  delivery history remain available. Old credit-grant filters return 422; old execution
  field names return 400. Reused idempotency keys still reject changed intent.
- Quote SDK operation names now use resource verbs, including `listQuotes`, `getQuote`,
  `executeQuote` and `calculateQuoteTotals`. Regenerate SDKs from the API reference.
  Existing grant issuance, exact monetary values and contract activation rules are unchanged.

- Credit reference navigation now separates stable Credit Grants, One-off Credits,
  and Credit Balances & History. The [credits guide](https://app.relvoerp.com/docs/product/guides/credits.md) documents billing
  entity selection, invoice drafts, lifecycle differences, and migration from Sequence.
- The financial credits API is now available under `/api/v1/public/credits`:
  create, list and read grants; revoke unused capacity; and read customer
  balances, immutable ledger movements and customer summaries. It supports both
  currency and metric credits, with explicit customer `billing_entity_id` selection.
- `POST /credits/grants` accepts `create_invoice` and `purchase_invoice` to create
  a purchase invoice draft atomically with purchased credits. It does not issue a
  fiscal document. Writes require `Idempotency-Key`; revocation also requires the
  `If-Match` value returned as `ETag` by a grant detail read. Read and write token
  scopes are `credits:read` and `credits:write`.
- `/api/v1/public/credit-grants` retains its existing stable schedule/customer
  configuration contract and asynchronous issuance behavior.

## 2026-11-12

Version: `1.6.0`

- New `GET /api/v1/public/seat-events/count?contract_id=…&seat_metric_id=…` returns
  a contract's seat count for one seat metric, using the same rule billing applies.
  `as_of` (a date) reads the count on that day; it defaults to today in the
  contract's billing timezone. Read the count back after sending changes instead of
  keeping your own running total.
- Seat prices (`type: seat`) accept `pricing.model` `graduated` and `volume` with
  tier ranges, as usage prices already do. A `volume` seat price is billed in
  arrears only. Until tiered seat pricing is enabled, these models return `422`.
- `quantity_strategy` on seat prices accepts `time_weighted` (each day's seat count,
  averaged over the period) and `prorated_additions` (seats added during the period
  are charged for the days they were active). Both bill in arrears, require the
  `standard` model and cannot be combined with `prorated`. Until they are enabled,
  they return `422`; `snapshot_end` stays the default.

## 2026-11-11

Version: `1.5.0`

- `POST /api/v1/public/seat-events` accepts a third `change_type`, `set`: the seat
  count is exactly `count` from `effective_date` (zero allowed), so an integration
  can send the current total instead of deltas. Changes are ordered by
  `effective_date`, then `timestamp`; `added`/`removed` changes ordered after a
  `set` move the count from it, and earlier ones are already part of it. Cancelling
  a `set` returns to the previous one. `count` now accepts `"0"` for `set` only.
  Integrations that only send `added`/`removed` are unaffected. Seat events listed
  or read back can now carry `change_type: set`.

## 2026-11-05

Version: `1.4.0`

- Added three read-only operations for money received in your bank accounts that
  no invoice explains yet (*pagos sin identificar*), all under `reconciliation:read`:
  `GET /api/v1/public/reconciliation/unmatched-receipts` lists each receipt (newest
  posting first, filterable by currency, posting dates and payer tax id),
  `GET /api/v1/public/reconciliation/unmatched-receipts/by-counterparty` sums them
  per payer tax id and currency, and
  `GET /api/v1/public/reconciliation/unmatched-receipts/totals` gives the count and
  sum per currency. All three read the same classification as the reconciliation
  workspace, so they always agree. A `full_read` key covers them.

## 2026-11-04

Version: `1.3.0`

- Added `GET /api/v1/public/sandbox` for a `full_access` key to identify its
  runtime and bound organization before running sandbox automation.
- Hosted sandbox keys are issued with `rk_test_`; existing `rk_live_` keys
  remain supported. Prefixes never determine authorization or cross-host access.
- Hosted sandbox organizations share a request budget across their keys and IPs;
  exhausted budgets return `429` with `Retry-After` and `RateLimit-*` headers.

## 2026-10-27

Version: `1.2.0`

- Webhooks: `invoice.fiscal_rejected` adds `rejection_source`, which says who rejected the invoice: `tax_authority`, `customer_claim` or `imported`. It is `null` on events sent before this release, including when read back from `GET /api/v1/public/events`.

## 2026-10-20

Version: `1.1.0`

- Every authenticated response now carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` for whichever limit, per token or per IP, is closest to being reached. A `429` carries them too, alongside `Retry-After`.
- Deprecated operations now answer with `Deprecation`, `Sunset` and a `Link` to this changelog, and are marked as deprecated in the API Reference. No operation is deprecated yet.
- New operations: `GET /api/v1/public/events` and `GET /api/v1/public/events/{event_id}` (the last 30 days of webhook events, `events:read`); `GET /api/v1/public/payments` and `GET /api/v1/public/payments/{payment_id}` (`payments:read`); `GET /api/v1/public/seat-events` and `GET /api/v1/public/seat-events/{seat_event_id}` (`seat_events:read`); `GET /api/v1/public/imports/contracts/{import_id}`; `PATCH` and `DELETE /api/v1/public/catalog/seat-metrics/{seat_metric_id}`.
- Webhooks: the contract, customer, invoice and payment events are documented with closed payload schemas. Delivery is at least once and unordered; deduplicate on the event `id`. Rotating a signing secret signs with both secrets for 24 hours.
- `Idempotency-Key` is required on `POST` only. `PATCH`, `PUT` and `DELETE` are made safe to retry by `If-Match` and no longer ask for the header.
- Paginated search (`query`) resumes exactly where the previous page ended, without repeating or skipping results. A cursor used with a different `query` or filters returns `400 invalid_cursor`.
- `GET /api/v1/public/customers`, `/contracts`, `/invoices` and `/customers/{customer_id}/billing-entities` filter by metadata: `metadata[<key>]=<value>` matches exactly, and several keys must all match.
- Breaking, approved without a deprecation window:
  - Receivables-aging bucket keys are now `no_due_date`, `not_due`, `days_0_30`, `days_31_60`, `days_61_90` and `days_90_plus`, and an aging invoice's `folio` is now `fiscal_number`.
  - A billable metric's `sql_expression` is `null` unless the token has `billable_metrics:sql` (or `full_access`). `contracts_count` and `plans_count` are no longer returned.

## 2026-10-16

Version: `1.0.0`

- Public API v1: a dedicated `/api/v1/public` surface with uniform conventions. Lists use cursor pagination (`{items, next_cursor}`) and money is a decimal string. Writes take `Idempotency-Key`, edits take `If-Match`, and errors share one envelope with a stable code catalogue.
