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”Header Parameters
Section titled “Header Parameters”For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
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
API key lacks required scope/role
Resource not found
Conflicting idempotency key or resource processing state