Get documents

GET/v1/operations/documents.get

Synced documents by id: one, or several separated by commas (up to 50). Each comes with its supplier, number, dates, currency and totals; its coded lines (the account, tax, class and customer each line was published with); and its invoice line items (what the supplier's invoice itself listed: product code, quantity, unit, unit price, tax and amount). The ids are the document ids ledger.account_transactions returns. An id that is not one of this organisation's documents is listed under notFound.

Scope
synced.read · reads only
Roles
Super admin, Admin (by default; an admin can change this per operation)
MCP tool
documents_get

Request

Send the token as Authorization: Bearer. A token approved for several organisations also sends Synced-Organisation: {id} (see Organisations).

Query parameters

NameTypeDescription
idsrequiredstringDocument idsOne or more Synced document ids, comma separated (up to 50).

Response

200 with a JSON body. 401 without a valid token, 403 when the scope, role or organisation does not allow it, 429 when rate limited (see Errors and limits).

NameTypeDescription
documentsobject[]
idstring
numberstring
typestring
supplierstring
datestring
dueDatestring
currencystring
subtotalnumber
taxnumber
totalnumber
accountingIdstring
publishedAtstring
linkstring
codedLinesobject[]
idstring
descriptionstring
quantitynumber
subtotalnumber
taxnumber
totalnumber
accountstring
accountIdstring
taxCodeIdstring
classstring
customerstring
invoiceLinesobject[]
idstring
descriptionstring
productCodestring
quantitynumber
unitstring
unitPricenumber
taxnumber
amountnumber
notFoundstring[]

Example

curl -X GET 'https://api.syncedhq.com/v1/operations/documents.get' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Try it

Try it

Sign in to send this request as yourself. You choose the organisations on Synced's consent screen; the token stays in this tab and expires within an hour.

One or more Synced document ids, comma separated (up to 50).

Required: ids

Request
curl -X GET 'https://api.syncedhq.com/v1/operations/documents.get' \
  -H 'Accept: application/json'
Response
Sign in, then send the request.