Skip to content

Get scan status

GET
/scans/{scanId}
curl --request GET \
--url https://api.invogi.com/v1/scans/example \
--header 'Authorization: Bearer <token>'
scanId
required
string
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.

Scan

Media typeapplication/json
object
id
required
string
status
required
string
Allowed values: CREATED UPLOADED MAPPING_REQUIRED IMPORTING ANALYZING COMPLETE FAILED
rowCount
integer | null
companyId

Detail only: the company the scan imported into

string format: uuid
source

FILE: rows posted to POST /scans. ERP: a free read-only scan of Xero or QuickBooks Online bills (POST /erp-connections/oauth/start with mode SCAN)

string
Allowed values: FILE ERP
erpProvider

List only: the ERP scan’s provider

string | null
historyFrom

ERP scans: bills issued on or after this date were read

string | null format: date
invoicesFound

ERP scans: bills found in the window; above rowCount when the free allowance covered only the most recent

integer | null
errorMessage

ERP scans: why the scan FAILED

string | null
erpConnection
One of:
null
createdAt
string format: date-time
completedAt
string | null format: date-time
companyName
string

Example

{
"status": "CREATED",
"source": "FILE",
"erpConnection": {
"provider": "XERO",
"mode": "SYNC",
"status": "PENDING"
}
}

Missing or invalid API key

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"
}
}