Run full reference validation for one invoice now (ANALYST+)
const url = 'https://api.invogi.com/v1/invoices/example/reference-validation';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/invoices/example/reference-validation \ --header 'Authorization: Bearer <token>'Validates the structured source (XML, or a PDF with embedded invoice XML) against the official rules, whatever the organization’s reference_validation_mode. Peppol BIS and plain UBL/CII require an active Invoice Firewall subscription. The result is appended as a new analysis run whose decision is the stricter of the current decision and the validation findings. Repeating the same pinned validation against the immutable source reuses the current run instead of duplicating its findings and risk contribution.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Validation recorded as a new analysis run
object
Detected structured format
Validator and pinned artifact version recorded on the analysis run
Example
{ "decision": "PASS"}Missing or invalid API key
object
object
Example
{ "error": { "code": "NOT_FOUND" }}API key lacks required scope/role
object
object
Example
{ "error": { "code": "NOT_FOUND" }}Resource not found
object
object
Example
{ "error": { "code": "NOT_FOUND" }}Conflicting idempotency key or resource processing state
object
object
Example
{ "error": { "code": "NOT_FOUND" }}