Skip to navigation

List Integration Logs

Retrieve a paginated list of the company’s Integration History Log: one entry per sync attempt, with its status, the record it ran for, what triggered it and, for failed invoice and payment syncs, the error message. Raw sync payloads are never returned.

Supports:

  • Pagination (page_size, page)
  • Date filtering (created_after, created_before)
  • Filtering by integration_id and status
  • Sorting by creation time (order_by, default: desc)

Note: A sync stays IN_PROGRESS while it is being retried and becomes FAILED only after the last retry, so status=FAILED is safe to alert on.

Note: Invoice failures are always labeled INVOICE_CREATED in trigger.event, even when the sync was triggered by an invoice update.

Logs are always limited to your company. An integration_id that doesn’t exist, or belongs to another company, returns an empty list.

Authentication

x-api-keystring
API Key authentication via header

Query parameters

page_sizeintegerOptional1-100Defaults to 20

Number of items per page (max 100)

pageintegerOptional>=1Defaults to 1

Page number (1-based)

integration_idintegerOptional

Only return logs for this integration (an id from GET /integrations)

statusenumOptional
Only return logs with this status
Allowed values:
created_afterstringOptionalformat: "date-time"

Only return logs created at or after this timestamp (ISO 8601 date-time with offset)

created_beforestringOptionalformat: "date-time"

Only return logs created at or before this timestamp (ISO 8601 date-time with offset)

order_byenumOptionalDefaults to desc

Sort direction on createdAt. Ties are broken by log id so pages never overlap.

Allowed values:

Response

List of integration logs
idinteger
integrationIdinteger

The integration the sync ran for (an id from GET /integrations)

integrationTypestring or null

The integration’s type, as on GET /integrations (e.g. QUICKBOOKS). New types are added over time.

statusenum

A sync stays IN_PROGRESS while it is being retried and becomes FAILED only after the last retry, so FAILED is safe to alert on.

Allowed values:
createdAtstringformat: "date-time"
recordobject or null

The record the sync ran for; null when the log has no record

errorMessagestring or null

Why the sync failed, up to 500 characters. Set only on FAILED logs; null for other statuses and for failures that recorded no reason.

triggerobject or null

What triggered the sync; null when it is not recorded

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
502
Bad Gateway Error