Skip to content

Check a proposal (ANALYST+, dashboard user)

POST
/payment-proposals/{proposalId}/checks
curl --request POST \
--url https://api.invogi.com/v1/payment-proposals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/checks \
--header 'Authorization: Bearer <token>'

Creates an immutable result run from one consistent database snapshot. Each row matches at most one invoice of the proposal’s entity: a unique external invoice ID first, then the invoice number qualified by a uniquely resolved supplier (explicit choice, tax ID, or exact normalized name; merged suppliers followed). Amounts and fuzzy names never match. Each row gets exactly one category:

  • UNCHECKED: not matched, ambiguous, identifiers disagree, another entity, another currency, or no current analysis (none, the workspace or supplier policy changed since, or the invoice was corrected since). Re-analyse through the invoice.
  • BLOCK: the invoice’s latest decision is BLOCK (whatever reviewers said about its findings).
  • REVIEW: the latest decision is REVIEW, an open finding exists, or a proposal-level issue (the same invoice on several rows; rows adding up to more than the invoice).
  • NO_OPEN_EXCEPTIONS: a unique match, a current PASS and no open finding.

Checking is a point-in-time review aid. It never records a payment, approves a row, or changes a finding, decision or outcome. Checking again creates a new run; earlier runs are kept.

proposalId
required
string format: uuid
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.

Idempotency-Key
string

Scoped to this proposal; a retry returns the same run

The new check

Media typeapplication/json
object
id
string format: uuid
checkedAt
string format: date-time
ruleVersion
string
riskEngineVersion
string
rowCount
integer
durationMs
integer
summary

Whole-run totals; every proposal row is counted exactly once.

object
rows
integer
matchedRows
integer
byCategory
object
UNCHECKED
integer
BLOCK
integer
REVIEW
integer
NO_OPEN_EXCEPTIONS
integer
amounts
object
key
additional properties
string
amountsByCategory
object
REVIEW
object
key
additional properties
string
BLOCK
object
key
additional properties
string
UNCHECKED
object
key
additional properties
string
NO_OPEN_EXCEPTIONS
object
key
additional properties
string
key
additional properties
object
key
additional properties
string
reasonCounts
object
EXTERNAL_ID_NOT_FOUND
number
INVOICE_NOT_FOUND
number
SUPPLIER_NOT_FOUND
number
SUPPLIER_AMBIGUOUS
number
SUPPLIER_REQUIRED
number
INVOICE_AMBIGUOUS
number
IDENTIFIER_CONFLICT
number
ENTITY_MISMATCH
number
CURRENCY_MISMATCH
number
ANALYSIS_MISSING
number
POLICY_CHANGED
number
INVOICE_CHANGED_SINCE_ANALYSIS
number
DECISION_BLOCK
number
DECISION_REVIEW
number
OPEN_FINDINGS
number
REPEATED_ALLOCATION
number
ALLOCATION_EXCEEDS_INVOICE
number
IN_OTHER_PROPOSAL
number
key
additional properties
integer

Example

{
"ruleVersion": "proposal-check-1.0.0"
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Resource not found

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}