Skip to main content

Get Journal Entry Attachment Sync

GET 

/api/ledger/entries/:entry/attachment-sync

The sync state of each source-document file attachment across every connection. When the entry's source document (purchase invoice, vendor credit, or vendor deposit) has attachments, this returns one row per (attachment × connection) describing whether the file was uploaded to the matching Xero/QBO document.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Returns an empty data array when the source has no attachments, no attachment concept, or nothing has been attempted yet.

Each row includes:

  • source_attachment_id — the SKU attachment row id
  • file_name — the source file's display name
  • connection_id, provider — the accounting connection and its integration name (e.g. Xero, QuickBooks Online)
  • remote_type, remote_id — the provider document the file is attached to (e.g. qbo_vendor_credit)
  • remote_attachment_id — the Xero AttachmentID / QBO Attachable.Id (null while failed/pending)
  • statussynced, failed, or pending
  • last_error — failure reason (null on success)
  • synced_at — ISO-8601 UTC timestamp of the last successful upload (null otherwise)

Authentication: requires a Bearer token.

Request

Responses

OK

Response Headers
    Content-Type