Query parameters
-
Maximum number of vouchers to return per page.
Minimum value is
1, maximum value is200. Default value is50. -
The continuation token for paginated results. Used by the URL in the link-header when there are more results available.
-
Filter vouchers by status.
Values are
Empty,NotProcessed,InProgress,AwaitingApproval,AwaitingReview,Declined,OnHold,PostingPending,PostingFailed, orPosted. -
Filter vouchers by document type.
Values are
IncomingInvoice,OutgoingInvoice,IncomingCreditNote,OutgoingCreditNote,Receipt,BankStatement,Expense, orMisc. -
Filter vouchers by transaction type. See
GET /transactiontypesfor a list of available types. -
Filter vouchers by the identifier of the associated customer or, for incoming invoices and credit notes, the supplier. See the
customerproperty of the voucher. -
Filter vouchers by the associated invoice number.
Maximum length is
50. -
Filter vouchers by the associated invoice due date (start range).
-
Filter vouchers by the associated invoice due date (end range).
-
Filter vouchers by currency code. The organization's base currency also matches vouchers stored without an explicit currency, since those are returned with the base currency.
Format should match the following pattern:
^[A-Z]{3}$. -
Filter vouchers by comment.
Maximum length is
255. -
Only return vouchers with a
transactionDateon or after this date. -
Only return vouchers with a
transactionDateon or before this date. -
Only return vouchers with a
createdAton or after this timestamp. -
Only return vouchers with a
createdAton or before this timestamp. -
Only return vouchers with a
modifiedAton or after this timestamp. -
Only return vouchers with a
modifiedAton or before this timestamp. Useful together withstatusto find vouchers stuck without recent activity.
Responses
-
OK
-
Bad Request. A query parameter is unknown, repeated or invalid, or the
continuationTokenis invalid, expired or does not match the other query parameters of the request. -
Unauthorized. Missing or invalid bearer token.
-
Forbidden. The token does not have the
api.accounting.voucher:readscope. -
Content Too Large. The requested page of vouchers exceeds the maximum response size. Restart from the first page with a smaller
limit.
curl \
--request GET 'https://rest.api.24sevenoffice.com/v1/vouchers' \
--header "Authorization: string"
# Headers
link: string
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2025-04-09T08:00:00Z",
"modifiedAt": "2025-04-09T09:30:00Z",
"status": "Posted",
"onHoldInfo": {
"heldAt": "2025-04-09T09:30:00Z",
"heldFromStatus": "AwaitingApproval",
"reason": "Waiting for clarification from supplier"
},
"documentType": "IncomingInvoice",
"transactionTypeNumber": 1001,
"transactionDate": "2025-04-09",
"source": {
"type": "Ehf"
},
"customer": {
"id": 6001,
"name": "Acme AS"
},
"dimensions": [
{
"dimensionType": 1,
"value": "13",
"name": "Project with ID 13"
}
],
"transactionNumber": 50123,
"amount": 1500,
"currency": {
"code": "NOK",
"rate": 1
},
"invoice": {
"number": "INV-12345",
"dueDate": "2025-05-05",
"remittanceReference": "1234567890",
"bankAccount": "1234.56.78901"
},
"comment": "Invoice #12345",
"attachment": {
"documentId": 12345,
"pageCount": 3
},
"transactionLines": [
{
"accountNumber": 1920,
"amount": 1500,
"comment": "string",
"periodDate": "2026-05-04",
"currency": {
"code": "NOK",
"rate": 1
},
"tax": {
"number": 1
}
}
]
}
]