Skip to main content

Invoice (Factur-X / CDAR)


How to get “API Key” from Portal?

To obtain the API key used with /auth/login, navigate to Settings → ERP Management → API Management in the Portal and use Generate. See Authentication.

France — Invoice (Factur-X / CDAR)


Submit invoice (ERP flow — recommended) POST

Purpose of use: Single-step save + send to PPF in one call.

Endpoint Information

PropertyValue
URL/invoice/FR/cdar/submit
MethodPOST
Content-Typeapplication/json
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

Request body (JSON)

{
"companyId": "uuid",
"invoiceNumber": "INV-2025-001",
"statusCode": "A1",
"reasonCode": null,
"reasonText": null,
"siren": "123456789",
"companyName": "Acme France SAS"
}

Request parameters

FieldTypeRequiredDescription
companyIdUUIDYesSender company ID
invoiceNumberStringYesInvoice number
statusCodeStringYesCDAR status (A1 accepted, A2 rejected, …)
reasonCodeStringNoReason code for rejection
reasonTextStringNoHuman-readable reason
sirenStringNoSIREN (ERP flow)
companyNameStringNoCompany name (ERP flow)

Responses

200 — Submitted

400 — Validation

401 — Unauthorized

500 — PPF submission failed


Submit UBL/CII invoice (structured XML) POST

Endpoint Information

PropertyValue
URL/invoice/FR/submit
MethodPOST
Content-Typeapplication/xml (raw UBL/CII)
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

Query parameters

ParameterTypeRequiredDescription
companyIdUUIDYesSender company
invoiceNumberStringYesInvoice number
invoiceTypeCodeStringNoDefault 380; 381 = credit note
flowSyntaxStringNoUBL or CII
sirenStringNoOverride SIREN (ERP)

Request body: Raw XML (UBL or CII, max 10MB).


Get invoice CDV status GET

Endpoint Information

PropertyValue
URL/invoice/FR/cdv/{companyId}/{invoiceNumber}
MethodGET
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

Get invoice CDV detail GET

Endpoint Information

PropertyValue
URL/invoice/FR/cdv/detail/{invoiceCdvId}
MethodGET
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

List invoices (CDV) GET

Endpoint Information

PropertyValue
URL/invoice/FR/cdv/list
MethodGET
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

Query parameters

ParameterTypeRequiredDescription
companyIdUUIDYesCompany
pageIntegerNoPage index
sizeIntegerNoPage size

Get invoice history GET

Endpoint Information

PropertyValue
URL/invoice/FR/cdv/history/{invoiceCdvId}
MethodGET
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

Receive incoming CDAR POST

Purpose of use: Store an incoming CDAR acknowledgement received from PPF.

Endpoint Information

PropertyValue
URL/invoice/FR/cdar/receive
MethodPOST
Content-Typeapplication/xml (raw CDAR)
Base URL
Stage Environment URLhttps://app-stage.docnova.ai/
Production Environment URLhttps://api.docnova.ai/
AuthorizationBearer JWT

Request body: Raw CDAR XML (max 5MB).