Trigger a sync now instead of waiting for the hourly cron (ADMIN+)
const url = 'https://api.invogi.com/v1/erp-connections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sync';const options = {method: 'POST', 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 POST \ --url https://api.invogi.com/v1/erp-connections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sync \ --header 'Authorization: Bearer <token>'Queued (202) when a Queue binding is configured, otherwise runs synchronously and returns the completed result (200). A SCAN_ONLY connection never syncs (409); activate it first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path 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”Sync completed synchronously (no Queue binding)
object
Null when the sync was skipped before a run started because the overage limit has no room
PAUSED means the owner-set overage limit refused further bills; nothing failed and the rest are imported after the limit is raised or the period renews
Of the imported invoices
Example
{ "status": "COMPLETED", "paused_reason": "OVERAGE_LIMIT"}Sync queued
object
Example
{ "status": "QUEUED"}Missing or invalid API key
API key lacks required scope/role
Resource not found