---
title: "Check a draft credit against the e-invoicing conformance rules"
method: POST
path: "/v1/salecredits/checkeinvoicing/{id}"
tags: ["SaleCredits"]
---

# Check a draft credit against the e-invoicing conformance rules

`POST /v1/salecredits/checkeinvoicing/{id}`

Submits the generated e-invoice (Factur-X / CII) to the e-invoicing platform's validator and returns
the findings. The credit is NOT finalized and NOT transmitted — call this before Finalize to find out
whether it would pass.
Draft credits only: a finalized credit returns 409. The check re-renders the e-invoice from current
data, which is not the document archived and transmitted at finalization, so the answer would not mean
what it appears to mean.
Read isValid for the verdict: a credit can be non-conformant while every finding is only a warning,
because the French BR-FR rules are reported as warnings.

## Path parameters

- `id` integer, required

## Response `200`

OK

- EInvoicingCheckResult — Result of an e-invoicing conformance check. The document is neither finalized nor transmitted: the e-invoice is rendered and submitted to the platform's validator only.
  - `findings` EInvoicingFinding[], nullable — Structured findings. Empty when the document is conformant.
    - `location` string, nullable — Location in the generated e-invoice XML, when the platform reported one
    - `severity` 'Error' | 'Warning' — How severe an e-invoicing conformance finding is
    - `source` 'Application' | 'Directory' | 'Platform' — Which check produced a finding, i.e. where it can be fixed
    - `text` string, nullable — Human-readable description of the problem, in French
    - `validator` string, nullable — Name of the platform validator that produced the finding, when applicable
  - `isValid` boolean — Whether the document is conformant. This is the verdict: a result can be invalid while every finding is only a warning, because the French BR-FR rules are reported as warnings.
  - `messages` string[], nullable — The same findings rendered as flat one-line messages, for simple display

## Other responses

- `404` — Not Found
- `409` — Conflict
- `501` — Not Implemented

---

[API](https://skmtc.net/altoviz/apis/altoviz-api.md) · [All operations](https://skmtc.net/altoviz/apis/altoviz-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/altoviz/altoviz-api/revisions/e65392ac5b5f/schema)
