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

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

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

## Request

- Base URL: `https://api.altoviz.com`
- URL: `https://api.altoviz.com/v1/salecredits/checkeinvoicing/{id}`
- Auth: none required
- TypeScript: <https://skmtc.dev/altoviz/apis/altoviz-api/docs/v1/salecredits/checkeinvoicing/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

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

## Changes

- **2026-09-14** `4f7fa64cf9e3`: 1 info
  - endpoint deprecated
- **2026-08-18** `e65392ac5b5f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/altoviz/apis/altoviz-api/changes/v1/salecredits/checkeinvoicing/:id/post.md)

---

[API](https://skmtc.dev/altoviz/apis/altoviz-api.md) - [All operations](https://skmtc.dev/altoviz/apis/altoviz-api/llms.txt) - [OpenAPI document](https://skmtc.dev/altoviz/apis/altoviz-api/revisions/4f7fa64cf9e3?raw)
