List ERP connections and their five most recent sync runs, without exposing credentials (ADMIN+)
const url = 'https://api.invogi.com/v1/erp-connections';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/erp-connections \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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”ERP connections
object
object
Bills the first sync left out and an owner has not analyzed yet; null when none
object
Most the overage could add
Provider-specific, non-secret config as stored (credentials are never included)
object
SCAN_ONLY: connected on the free tier for a one-shot historical scan; never syncs until activated
SCAN_ONLY: fallback revocation time if the grant was not revoked when the scan finished
object
Of the imported invoices
Set when this run was a historical scan rather than a sync
True while a free workspace can still start its one ERP scan (POST /erp-connections/oauth/start with mode SCAN)
False on the free tier (no active subscription); creating
Backward-compatible alias of integrations_enabled; all ERP connectors are available on every active paid plan
Example
{ "items": [ { "provider": "BUSINESS_CENTRAL", "status": "PENDING", "mode": "SYNC", "recentRuns": [ { "status": "RUNNING" } ] } ]}Missing or invalid API key
API key lacks required scope/role