Choose which structured invoices get full reference validation (OWNER only)
PATCH
/organizations/current/reference-validation
const url = 'https://api.invogi.com/v1/organizations/current/reference-validation';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mode":"OFF"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.invogi.com/v1/organizations/current/reference-validation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mode": "OFF" }'DECLARED_PROFILES (default) validates invoices that declare XRechnung; ALL also validates Peppol BIS and plain UBL/CII and requires an active Invoice Firewall subscription; OFF uses only the built-in checks. KSeF FA(3) is always schema-validated in the Worker.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
mode
required
string
Responses
Section titled “Responses”Setting updated and audit event recorded
Media typeapplication/json
object
referenceValidationMode
required
string
Example
{ "referenceValidationMode": "OFF"}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json