List scans for the authenticated organization, newest first
GET
/scans
const url = 'https://api.invogi.com/v1/scans?limit=50&offset=0';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?limit=50&offset=0' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
offset
integer
status
Array<string>
company_id
string format: uuid
from
string format: date
to
string format: date
Responses
Section titled “Responses”A page of scans matching any selected status
Media typeapplication/json
object
items
required
Array<object>
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
total
required
integer
limit
required
integer
offset
required
integer
Example
{ "items": [ { "status": "CREATED", "source": "FILE", "erpConnection": { "provider": "XERO", "mode": "SYNC", "status": "PENDING" } } ]}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}Missing or invalid API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}