Skip to content

List ERP connections and their five most recent sync runs, without exposing credentials (ADMIN+)

GET
/erp-connections
curl --request GET \
--url https://api.invogi.com/v1/erp-connections \
--header 'Authorization: Bearer <token>'
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.

ERP connections

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
provider
required
string
Allowed values: BUSINESS_CENTRAL ODOO XERO QUICKBOOKS_ONLINE
companyId
required
string format: uuid
backfill

Bills the first sync left out and an owner has not analyzed yet; null when none

object
left_out
integer
>= 1
unpaid_left_out
integer
estimated_max_overage

Most the overage could add

number | null
currency
string | null
companyName
required
string
config
required

Provider-specific, non-secret config as stored (credentials are never included)

object
key
additional properties
any
status
required
string
Allowed values: PENDING CONNECTED ERROR DISABLED
mode
required

SCAN_ONLY: connected on the free tier for a one-shot historical scan; never syncs until activated

string
Allowed values: SYNC SCAN_ONLY
scanAccessExpiresAt
required

SCAN_ONLY: fallback revocation time if the grant was not revoked when the scan finished

string | null format: date-time
lastSyncedAt
required
string | null format: date-time
lastErrorMessage
required
string | null
createdAt
required
string format: date-time
recentRuns
required
Array<object>
object
id
required
string format: uuid
status
required
string
Allowed values: RUNNING COMPLETED FAILED
vendorsSeen
required
integer
invoicesSeen
required
integer
invoicesImported
required
integer
invoicesLinked
required

Of the imported invoices

integer
scanJobId
required

Set when this run was a historical scan rather than a sync

string | null format: uuid
errorMessage
required
string | null
startedAt
required
string format: date-time
completedAt
required
string | null format: date-time
company_id
string
free_erp_scan_available
required

True while a free workspace can still start its one ERP scan (POST /erp-connections/oauth/start with mode SCAN)

boolean
integrations_enabled
required

False on the free tier (no active subscription); creating

boolean
enterprise_integrations_enabled
required

Backward-compatible alias of integrations_enabled; all ERP connectors are available on every active paid plan

boolean

Example

{
"items": [
{
"provider": "BUSINESS_CENTRAL",
"status": "PENDING",
"mode": "SYNC",
"recentRuns": [
{
"status": "RUNNING"
}
]
}
]
}

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

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