Start an audit run (ANALYST+, dashboard user)
const url = 'https://api.invogi.com/v1/overcharge-audits';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"companyId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","supplierId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","from":"2026-04-15","to":"2026-04-15","invoiceIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
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/overcharge-audits \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "companyId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": "2026-04-15", "to": "2026-04-15", "invoiceIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Freezes the scope, invoice facts, current line revisions, active schedule revisions, approved conversions and review threshold. At most 1,000 lines per run, processed in 100-line queued chunks; without a queue, at most 100 lines, checked synchronously. Larger scopes are refused before starting. Exceptions become AGREED_PRICE_VARIANCE findings (REVIEW by default) through the normal re-decision of each invoice; nothing is metered beyond the existing invoice units. A run clears an earlier finding only when its starter and every author of the invoice’s lines may release holds and every line was checked. Missing or conflicting evidence never clears an existing finding. Stale runs retain their historical comparison without changing current review work. Queued runs using an older rule version fail with rerun guidance. Invoices with unknown currency must be corrected before a run can be created; the request is rejected with INVALID_REQUEST and reason CURRENCY_UNKNOWN rather than guessing a rounding scale.
Authorizations
Section titled “Authorizations”Parameters
Section titled “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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "companyId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "from": "2026-04-15", "to": "2026-04-15", "invoiceIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”The run (COMPLETED when run synchronously
object
Frozen rule/engine versions
object
Coverage first. Every line counts in lines. Net candidate variance is per currency, before tax, and is never added to gross invoice exposure or reported as a saving.
object
object
object
object
object
True only when every line was checked and none is an exception
Inputs changed after a completed run
Example
{ "status": "QUEUED", "summary": { "basis": "NET_BEFORE_TAX" }}Invalid request
API key lacks required scope/role