> For the complete documentation index, see [llms.txt](https://rest-api.developer.24sevenoffice.com/doc/v1/llms.txt)

# Read vouchers

> GET /vouchers
> 
> Read a list of vouchers.



## Servers
- https://rest.api.24sevenoffice.com/v1: https://rest.api.24sevenoffice.com/v1


## Authentication methods
- Tfso


## Parameters
### Headers

- **Authorization** (string)
  Authorization header



### Query parameters

- **limit** (integer(int32))
  Maximum number of vouchers to return per page.

- **continuationToken** (string)
  The continuation token for paginated results. Used by the URL in the link-header when there are more results available.

- **status** (string)
  Filter vouchers by status.

- **documentType** (string)
  Filter vouchers by document type.

- **transactionTypeNumber** (integer(int32))
  Filter vouchers by transaction type. See `GET /transactiontypes` for a list of available types.

- **customerId** (integer(int32))
  Filter vouchers by the identifier of the associated customer or, for incoming invoices and credit notes, the supplier. See the `customer` property of the voucher.

- **invoiceNumber** (string)
  Filter vouchers by the associated invoice number.

- **invoiceDueDateFrom** (string(date))
  Filter vouchers by the associated invoice due date (start range).

- **invoiceDueDateTo** (string(date))
  Filter vouchers by the associated invoice due date (end range).

- **currencyCode** (string)
  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.

- **comment** (string)
  Filter vouchers by comment.

- **transactionDateFrom** (string(date))
  Only return vouchers with a `transactionDate` on or after this date.

- **transactionDateTo** (string(date))
  Only return vouchers with a `transactionDate` on or before this date.

- **createdFrom** (string(date-time))
  Only return vouchers with a `createdAt` on or after this timestamp.

- **createdTo** (string(date-time))
  Only return vouchers with a `createdAt` on or before this timestamp.

- **modifiedFrom** (string(date-time))
  Only return vouchers with a `modifiedAt` on or after this timestamp.

- **modifiedTo** (string(date-time))
  Only return vouchers with a `modifiedAt` on or before this timestamp. Useful together with `status` to find vouchers stuck without recent activity.



## Responses
### 200
OK
#### Headers

- **link** (string)
  The "link" header includes information on where to find the `first` and `next` page. `next` is only present when more results are available. Refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


#### Body: application/json (array[object])
- **id** (string(uuid))
  A unique identifier for the voucher within Finago Office ERP modules.

- **createdAt** (string(date-time))
  A timestamp for when the voucher was created, in ISO 8601 format.

- **modifiedAt** (string(date-time))
  A timestamp for when one of the properties of the voucher was last modified, in ISO 8601 format.

- **status** (string)
  Current status of the voucher. Possible values are the following:
  - `Empty`: The voucher has been created and is waiting for content to be filled in, typically via automated processing of an uploaded file.
  - `NotProcessed`: The voucher has been analysed but no action has been taken yet.
  - `InProgress`: The voucher is being worked on.
  - `AwaitingApproval`: The voucher is waiting for approval.
  - `AwaitingReview`: The voucher is waiting for review.
  - `Declined`: The voucher has been declined.
  - `OnHold`: The voucher has been put on hold. See `onHoldInfo` for the reason and the status it was held from.
  - `PostingPending`: The voucher is queued for posting to the general ledger.
  - `PostingFailed`: Posting the voucher to the general ledger failed.
  - `Posted`: The voucher has been posted to the general ledger.

  Note that the Finago Office user interface shows `AwaitingReview` and `PostingFailed` together as "Awaiting review", while the API keeps them as separate statuses.

- **onHoldInfo** (object)
  Present when `status` is `OnHold`. Since a voucher can be put on hold from almost any status, this records what status it was held from and why.

- **documentType** (string)
  The type of source document the voucher originates from. Possible values are the following:
  - `IncomingInvoice`: An invoice received from a supplier.
  - `OutgoingInvoice`: An invoice issued to a customer.
  - `IncomingCreditNote`: A credit note received from a supplier.
  - `OutgoingCreditNote`: A credit note issued to a customer.
  - `Receipt`: A receipt (e.g. expense or till receipt).
  - `BankStatement`: A transaction imported from a bank statement.
  - `Expense`: An expense.
  - `Misc`: Any other document type.

- **transactionTypeNumber** (integer)
  The transaction type of the voucher. Affects the number-series used for the posted transaction. See `GET /transactiontypes` for a list of available types.

- **transactionDate** (string(date))
  The accounting date of the voucher.

- **source** (object)
  How the voucher was received or created. A discriminated union keyed on `type`, with additional properties depending on the value.

- **customer** (object)
  The counterparty associated with the voucher, if applicable. This is the customer for outgoing documents, and the supplier for incoming documents (`documentType` `IncomingInvoice` or `IncomingCreditNote`).

- **dimensions** (array[object])
  A list of dimensions such as department or project.

- **transactionNumber** (integer)
  The transaction number of the posted transaction in the general ledger, corresponding to `transaction.number` in `GET /transactionlines`, not the UUID `transaction.id`. Use the `transactionNumber` query parameter on that endpoint to find its lines. Only set when `status` is `Posted`.

- **amount** (number | null)
  The total amount of the voucher, in the currency specified by `currency`.

- **currency** (object)
  The currency of the voucher or transaction line. A voucher or line without an explicit currency is in the organization's base currency, and is returned with that currency code and rate 1. Omitted only if the organization's base currency cannot be determined.

- **invoice** (object)
  Details of the invoice associated with the voucher, if applicable.

- **comment** (string)

- **attachment** (object)
  The source file (e.g. a scanned invoice) attached to the voucher, if any. The pages themselves are not embedded; use `GET /vouchers/{voucherId}/pages` to retrieve them.

- **transactionLines** (array[object])
  The individual transaction lines making up the voucher. The lines do not carry their own date, invoice details or dimensions; the voucher's `transactionDate`, `invoice` and `dimensions` apply to all lines.


### 400
Bad Request. A query parameter is unknown, repeated or invalid, or the `continuationToken` is invalid, expired or does not match the other query parameters of the request.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


### 401
Unauthorized. Missing or invalid bearer token.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


### 403
Forbidden. The token does not have the `api.accounting.voucher:read` scope.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


### 413
Content Too Large. The requested page of vouchers exceeds the maximum response size. Restart from the first page with a smaller `limit`.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)



[Powered by Bump.sh](https://bump.sh)
