Get scan status
GET
/scans/{scanId}
const url = 'https://api.invogi.com/v1/scans/example';const options = {method: 'GET', 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 GET \ --url https://api.invogi.com/v1/scans/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”scanId
required
string
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.
Responses
Section titled “Responses”Scan
Media typeapplication/json
object
id
required
string
status
required
string
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
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
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
Resource not found
Media typeapplication/json