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.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
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 idfile_name— the source file's display nameconnection_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)status—synced,failed, orpendinglast_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
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.