Skip to content

Trigger a sync now instead of waiting for the hourly cron (ADMIN+)

POST
/erp-connections/{connectionId}/sync
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.

connectionId
required
string format: uuid
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.

Sync completed synchronously (no Queue binding)

Media typeapplication/json
object
sync_run_id
required

Null when the sync was skipped before a run started because the overage limit has no room

string | null format: uuid
status
required

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

string
Allowed values: COMPLETED PAUSED
paused_reason
string
Allowed value: OVERAGE_LIMIT
vendorsSeen
required
integer
invoicesSeen
required
integer
invoicesImported
required
integer
invoicesLinked
required

Of the imported invoices

integer

Example

{
"status": "COMPLETED",
"paused_reason": "OVERAGE_LIMIT"
}

Sync queued

Media typeapplication/json
object
status
required
string
Allowed value: QUEUED

Example

{
"status": "QUEUED"
}

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

Resource not found

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