# SmartDocFlow E-Invoicing Services API — Release notes

<!-- Source file for the portal page /smartdocflow/default/api-release-notes.
     Edit here and republish from this file. -->

Public release notes for the SmartDocFlow E-Invoicing Services API. Newest first.

## How this API is versioned

Two version numbers move independently.

- **`/v1/` in the URL** versions the *transport contract* — routing, authentication and
  the request/response envelope. It has not changed since the API was first published.
- **`api_version`**, returned by `GET /version`, is the version of the API surface
  itself, and is the number these notes are organised by. One major has shipped so far,
  **2.0.0**, and what made it a major is that the term ids returned for an unchanged
  document changed. New endpoints and request options have arrived as minor versions
  (1.10.0 added the Peppol A-NZ endpoint family, 2.1.0 added `fields` / `limits`) or,
  before September 2026, under the same number (`GET /cdv` and `POST /generate/cdar`
  shipped under 1.9.0). Rule-pack moves that change verdicts have
  shipped both ways — under 1.9.0 (FNFE V1.4.0, Factur-X 1.09.2) and inside 2.0.0
  (FNFE RFE 1.4.0.04).

`GET /version` also reports the version of every rule pack in force, each on its own
axis: the French packs (EN16931 Schematron, FR Flux 2, EXTENDED-CTC-FR, Factur-X,
Flux 10) and, under `validation_artifacts.peppol`, the Peppol PINT pack for each
jurisdiction served. Where a pack move changes the verdict you get for an unchanged
document, the release entry below says so.

Each heading below carries the date that version reached **production**, which is what a
caller experiences, not the date it was tagged.

Unless a release says otherwise, every change is **additive**: a request written for the
previous version keeps getting the previous version's response.

---

## 2.1.0 — 14 October 2026

### Added — choose which terms `/parse/{format}` returns

`/parse/{format}` accepts two optional request keys, on `factur-x`, `cii`, `ubl`,
`ubl-creditnote`, `cdar`, `ereporting` and `annuaire`:

- **`fields`** — the term and group ids you want back. Each is returned in its normal
  position, inside its enclosing groups, so the shape of the response is unchanged;
  only the parts you did not ask for are absent. `details.fields_requested` echoes your
  list, de-duplicated, in request order. An id you list that the document does not
  contain simply has no node.
- **`limits`** — `{id: n}` keeps the first *n* occurrences of an id across the whole
  document. `{"BG-25": 5}` returns the first five invoice lines.
  `details.limited` reports, per limited id, how many were `returned` and the `total`
  that were available, for example `{"BG-25": {"returned": 5, "total": 137}}`.

Selection errors are **400** with a machine-readable `details.error_code` you can branch
on — `UNKNOWN_FIELDS` (with the offending `unknown_fields`), `TOO_MANY_FIELDS` (more than
1000 ids), `INVALID_FIELD_SELECTION` (wrong shape) — each alongside a human-readable
message.

A request that sends neither `fields` nor `limits` gets exactly the 2.0.0 response.
`null`, an empty `fields` list and an empty `limits` object all mean "the full tree".
Not available on `/peppol/aunz/parse/*`.

**One compatibility note.** If your 2.0.0 request already carried a `fields` or `limits`
key, it was ignored; it is now honoured, and a malformed one is a 400.

### Changed — `GET /cdv` reflects the norm's own actor and code-list tables

The CDV reference was corrected against the AFNOR norm body and its actor table. **This
changes served values of existing fields**, not only additions, so re-read the reference
rather than relying on a cached copy:

- **`label_fr` changed for two statuses.** 226 is now *"Affacturée Confidentiel"* (was
  *"Confidentiel (affacturage)"*) and 227 is now *"Changement de Compte à Payer"* (was
  *"Changement de compte"*). `label_en` is unchanged for both.
- **`emitterRoleAutoFacturation` changed.** Under self-billing, statuses 224, 225, 226,
  227 and 228 are now posed by the **VENDEUR**, as the norm's actor table says. A consumer
  that routes on this field under self-billing will route differently.
- **Transition buckets are served under `buyer` and `seller`.** The existing `in` and `out`
  keys are now marked **deprecated** in the spec: `in` carries the same content as `buyer`,
  `out` the same as `seller`. They keep serving identically — move to `buyer` / `seller`.
- **Self-billed invoice types**, the BT-3 codes that mark a self-billed invoice, are served
  as **`flux2SelfBilledInvoiceTypes`**. A second key, `selfBilledInvoiceTypes`, carries the
  same list and is **deprecated on arrival** because its name does not say its flow; read
  `flux2SelfBilledInvoiceTypes`.
- **BR-FR-MAP-02** is recorded: the 262-to-381 mapping that this service does not apply.

No key was removed. Three are marked deprecated and all three keep serving.

---

## 2.0.0 — 23 September 2026

**Breaking.** Two moves, each changing what you get back for a document that is itself
unchanged. **Term ids:** `/parse/cii` and `/parse/factur-x` now label French-extension
terms with the AFNOR ids (`EXT-FR-FE-*`) that the French e-invoicing model publishes,
instead of the Factur-X ids (`BT-X-*`) returned by 1.x; and the parse structure follows the
AFNOR XP Z12-012 Annexe A **V1.4** model (previously V1.3), which adds terms.
**Verdicts:** the rule packs move from FNFE **V1.4.0** (in force since 9 July 2026) to
**FNFE RFE 1.4.0.04**. No endpoint is added or removed, and the `/v1/` transport contract
is unchanged.

### Changed — parse term ids follow the AFNOR model (migration required)

The French-extension terms returned by `/parse/cii` and `/parse/factur-x` were labelled
with Factur-X ids (`BT-X-86`) rather than the AFNOR ids the French e-invoicing model
publishes (`EXT-FR-FE-140`). CII now matches `/parse/ubl`, which has always used AFNOR ids.

- **200 ids change and 257 new ids appear** compared with 1.10.0. 240 nodes now carry an
  `EXT-FR-FE-*` id; 52 keep a `BT-X-*` / `BG-X-*` id because the AFNOR model publishes no
  equivalent for them.
- **Nothing is lost.** Every node whose id changed carries a new optional **`fx_id`** key
  holding its former Factur-X id, so a 1.x reader can be migrated by lookup rather than
  by rewrite. `fx_id` is absent where both vocabularies agree.
- Across `/parse/cii` and `/parse/factur-x`, 195 terms are renamed, 5 are renamed and
  moved, and 57 are added. The complete old to new mapping for all four parse formats —
  358 rows — is published at
  [Parse term id migration 1.10.0 to 2.0.0](https://docs.smartdocflow.com/smartdocflow/default/api-parse-id-migration-2-0-0).
- Scheme-qualified party identifiers (`BT-29b`, `BT-29c`, `BT-29d`, `BT-46b`, `BT-46c`)
  are reported under their generic id with the AFNOR name in a new **`afnor_label`** key.
  Every identifier is still returned, one node per identifier; `afnor_label` is present
  only for French-register schemes (SIRET `0009`, routing code `0224`, SIREN `0231`).

### Fixed — 131 terms that were returned empty now carry their value

131 terms were returned with `value: null` even when the document carried them — 32 in
CII / Factur-X, 95 in CDAR, 4 in UBL. Terms with no child terms are now read as values.
The ids and the tree are unchanged; only `null` becomes the element's text. Examples
include the reference type codes `BT-17-0` / `BT-18-0` / `BT-122-0`, `BT-118-0` /
`BT-151-0`, the charge indicators `BG-20-1` / `BG-21-1`, the party identifiers `BT-29` /
`BT-60` / `BT-71`, and `MDT-6`, `MDT-7`, `MDT-24` in CDAR.

### Fixed — UBL notes, references and line references follow the official examples

- **Notes.** UBL carries a note's subject code inside the note text as `#CODE#`. Each
  `cbc:Note` is now one `BG-1` whose children are `BT-21` (the code, absent when there is
  none) and `BT-22` (the text, without the prefix). Previously `BT-21`, `BT-22` and
  `BG-1` read three different notes and `BT-22` kept the prefix. Line notes behave the
  same way under `BT-127-00`.
- **`BT-18` vs `BT-122` (UBL).** Told apart by the sibling `cbc:DocumentTypeCode`: `130`
  is `BT-18`, anything else is `BT-122`. Previously `BT-18` was never returned and the
  object reference came back as a second `BT-122`.
- **`EXT-FR-FE-162` vs `EXT-FR-FE-139` (UBL).** A line's `cac:BillingReference` carrying
  a sub-line document status code is reported as the parent line id.

### Fixed — three EXTENDED terms that were never returned

`EXT-FR-FE-113` (invoicer role code), `EXT-FR-FE-90` (invoicee role code) and
`EXT-FR-FE-180` (line-level VAT due-date code) addressed elements the CII D22B schema does
not define and were therefore silently absent from every parse response. They are now
returned, at their corrected locations under `ApplicableHeaderTradeSettlement` and
`SpecifiedLineTradeSettlement`.

### Changed — code lists are judged by the rules, not by the schema

`/validate/cii` and the XSD step of `/french-reform/cii` now use the uncoupled CII D22B
qualified-data-type schema from the FNFE pack. **The XSD step no longer rejects a code
value outside the UN/CEFACT D22A code lists** — a document type code, currency, unit,
country or payment-means code. The EN16931 and French rules still reject such values
(`BR-CL-01`, `BR-CL-04` and so on), so `/french-reform/cii` still fails the document; the
failure now arrives from the rules step, **with a rule id**, instead of the schema step.
This matches the FNFE reference validator and reverses the schema-level enforcement
adopted with Factur-X 1.09.

One case has no rule counterpart: a date-time `format` attribute such as `204` on a
date-only field (for example the issue date of a referenced invoice, BT-26) is now
accepted end to end.

### Changed — FNFE RFE 1.4.0.04 rule packs

The FR Flux 2 (CII, UBL, UBL CreditNote), EXTENDED-CTC-FR (CII, UBL) and CDAR CDV rules
move from FNFE V1.4.0 to **FNFE RFE 1.4.0.04** (last hotfix 4 September 2026). The pack
version is reported by `GET /version`.

**Verdicts move — a document that passes today can fail.** EXTENDED-CTC-FR CII gains 29
rules aligned with EN16931 (`CII-SR-467`…`CII-SR-494`, `CII-FREXT-SR-069/072`).

**FATAL severity from 1 October 2026.** The pack makes its FATAL build mandatory in
reception from that date; this API already runs the FATAL build of the Flux 2 and CDV
rules.

### Changed — Flux 10 e-reporting uses the official FNFE artefacts

`/validate/ereporting`, `/brrules/ereporting`, `/french-reform/ereporting` and
`/generate/ereporting` now use the five official FNFE RFE 1.4.0.04 XSDs and the official
Flux 10 Schematron (v1.8). The four DGFiP Annexe 7 rules that compare a document date
with the date of control were initially kept as a supplementary pass, because no
stateless schema or rule can express them. Three of them — **`G6.24`, `G7.40`, `G7.43`**,
the transmission-envelope rules — were then **withdrawn from the served pass**, and
**`G1.07`** now compares against the **Paris civil date** and fires as a **warning**
rather than a failure. `GET /version` lists the artefacts in force.

The response contract is unchanged (`status` / `summary` / `details`, with
`failures[].rule` carrying the Annexe 7 id). `failures[]` gains an additive **`source`**
key (`schematron` or the supplementary engine).

**Verdicts move — documents that passed may now fail.** The previous engine checked many
rules for presence only; the official pack checks format and code lists. Rules that now
fire where they did not include `G1.104` (leading, trailing or doubled spaces in the
transmission id) and `G1.02` (billing-framework code list). One check is looser: Flux 10
currency codes are checked for shape only (three capital letters, `G1.10`), as in the
official pack; ISO 4217 membership is no longer enforced.

### Changed — e-reporting transmission timestamp

`/generate/ereporting` writes the transmission timestamp in **Paris civil time**.

### Changed — a document the rules cannot be evaluated on is now an error, not a pass

Affects `/schematron/cii`, `/schematron/ubl`, `/schematron/ubl-creditnote`,
`/schematron/factur-x`, `/schematron-fr/cdar`, `/brrules/ereporting` and the
corresponding steps of `/french-reform/*`.

- A document that causes the validation engine to fail on the document's own content —
  a malformed date, a repeated element where a single value is expected, an XML parse
  error — now returns **400** *"Schematron rules could not be evaluated on this
  document."*, with the engine's message in `details.errors`.
  Previously `/schematron/*` returned **200 "passed"** for these, and
  `/brrules/ereporting` returned **500** — a transient status that invited a retry of a
  document that can never pass.
- An engine failure that is not caused by the document returns **500**, where
  `/schematron/*` previously returned a pass.
- `/french-reform/*` inherit this: a step that could not be evaluated is a failed step,
  never a passed one.
- A document declared in a non-UTF-8 encoding (for example `ISO-8859-1`) is now
  evaluated instead of being rejected or silently skipped. UTF-8 documents are unchanged.

Two of these cases originate in defects in the published FNFE RFE 1.4.0.04 rule pack
itself rather than in this service.

### Fixed — Factur-X PDFs are judged on their embedded XML again

A Factur-X PDF/A-3 sent to `/schematron/*`, `/schematron-fr/*`, `/french-reform/*` or
`/peppol/aunz/validate/*` is unwrapped and judged on its embedded `factur-x.xml`.
Previously the raw PDF was passed through, which produced a 200 with nothing actually
checked. `/validate/*` and `/parse/*` are unchanged: those routes expect XML and reject
a PDF.

### Changed — `/brrules/ereporting` failure detail

For failures with `source: "schematron"`, `xpath` is the positional absolute path of the
failing node (for example `/Report[1]/ReportDocument[1]/TypeCode[1]`) and `value` is
`null`, because the rule pack reports no value. Failures with `source: "supplementary"`
keep the element path and offending value they have always carried.


---

## 1.10.0 — 18 September 2026

### Added — Peppol PINT Australia / New Zealand (pack 1.1.3)

Four routes under a new `/peppol/{jurisdiction}/…` namespace, Billing and Self-Billing:
`POST /peppol/aunz/validate/ubl`, `/peppol/aunz/validate/ubl-creditnote`,
`POST /peppol/aunz/parse/ubl`, `/peppol/aunz/parse/ubl-creditnote`.

Purely additive — no existing route, profile enum or response shape changes.

- The validate routes run up to three independently selectable checks in one call —
  `xsd`, `pint-shared`, `pint-aligned` — and return one step per check under
  `details.steps[]`, each carrying the usual `failures` and `severity_breakdown` plus
  additive `check` and `artifact` keys. HTTP 200 only if every step succeeded. PINT ships
  no advisory severity, so these routes never return a warning-only 200.
- The pack is auto-detected from `cbc:CustomizationID`; a declared `pack` wins, and a
  mismatch is reported in `details.pack_mismatch` rather than guessed. Undetectable and
  undeclared is a 400.
- A Peppol-only request-level `details.code` enum — `PACK_REQUIRED`, `PACK_UNKNOWN`,
  `CHECK_UNKNOWN`, `FIELD_RESERVED`. `pack_version` is reserved and rejected, so giving it
  meaning in a future transition window will not be breaking.
- `GET /version` gains `validation_artifacts.peppol.aunz` — jurisdiction, packs, checks and
  artifacts with versions, file names and assert counts. Every pre-existing French-reform
  key in that projection is unchanged.
- Two points worth repeating: `{format}` is the document **root element**, not the type
  code, and **PINT rule messages are English**, verbatim from the OpenPeppol pack. The
  "messages are French" note applies to the French-reform routes only.

---

## 1.9.0 — 17 June 2026

**Factur-X 1.08 → 1.09.** Validation and the parse surface move to Factur-X 1.09 on the
official CII D22B substrate.

Several further changes shipped under 1.9.0 without a version bump, because none of them
changed a path, parameter or response shape:

- **`GET /cdv`** — the CDV (document lifecycle status) reference: the AFNOR status codes,
  who may pose each one, and the transitions allowed between them.
- **`POST /generate/cdar`** — builds a CDAR for a given invoice and status transition and
  self-validates it against the CDV rules before returning it.
- **FNFE V1.4.0 rule packs** (in force from 9 July 2026). The FR Flux 2 (CII, UBL),
  EXTENDED-CTC-FR (CII, UBL) and CDAR CDV rules move from FNFE V1.3.1 to **V1.4.0**, FATAL
  build. **Verdicts move — a document that passed may now fail.**
  `GET /version` reported the pack as `fnfe_br 1.4.0` from that day.
- Annuaire reconciled to **PPF V3.2**; Flux 10 e-reporting business rules refreshed to
  **PPF V3.2 / Annexe 7 V1.9**, with the G1, G2, G6 and G8 rule families implemented.
- **Factur-X 1.09 → 1.09.2 (ZUGFeRD 2.5.2)** across BASICWL, EN16931 and EXTENDED. Two
  EXTENDED rule codes were renamed upstream and the API now reports the new ones:
  `BR-FREXT-54-1` / `BR-FREXT-54-2` are now `BR-FXEXT-BR-54-1` / `BR-FXEXT-BR-54-2` in
  `details.failures[].rule`. Same rule, same outcome, new code — a consumer keying on the
  old code sees that rule stop appearing. The pack's rule population also changed (BASICWL
  270 → 278 asserts, EN16931 424 → 433, EXTENDED 949 → 943): **verdicts move — a document
  that passed may now fail.**
- The seller's VAT and fiscal identifiers (**BT-31**, **BT-32**, with their scheme
  qualifiers) are returned by `/parse/cii` and `/parse/factur-x`. They had never appeared
  before.

---

## 1.8.0 — 8 June 2026

- **Flux 10 e-reporting**: the XSD is replaced with the AFNOR namespace-less `<Report>`
  shape. Documents built against the previous shape are no longer accepted.
- **`GET /version`** gains **`details.api_version`**, the number these notes track.

---

## 1.7.0 — 29 May 2026

**`/transform`** is now served by a dedicated translation service. Additive and
back-compatible: the request and response contract is unchanged.

---

## 1.6.0 — 26 May 2026

- The EN16931 profile is **renamed**. Callers that name the profile explicitly must use
  the new name.
- **HTTP status is now gated on fatal failures.** A validation response's status code
  reflects whether any failure is fatal, rather than whether any rule fired at all.

---

## 1.5.0 — 25 May 2026

**Caller-declared profile.** `/french-reform/*` accepts the profile as a request
parameter instead of inferring it, so you control which rule set a document is judged
against.

---

## 1.4.0 — 19 May 2026

- **Factur-X profile support**, upgraded to Factur-X 1.08.
- **Uniform French Reform composition**: `/french-reform/{format}` composes the same
  sequence of steps for every format and profile, so the response shape no longer varies
  by input.

---

## 1.3.1 — 18 May 2026

Documentation only. The published OpenAPI document was cleaned up; no behaviour changed.

---

## 1.3.0 — 18 May 2026

**EXTENDED-CTC-FR exposure.** The French extended profile becomes selectable, with
profile-based routing on the validation endpoints.

---

## 1.2.0 — 18 May 2026

**UBL CreditNote support** across the parse and validation surface.

---

## 1.1.0 — 17 May 2026

First published version of the API: parse, validate, Schematron, French Reform
composition, Factur-X generation and extraction, transform, and `GET /version`.
