Read vouchers

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://rest-api.developer.24sevenoffice.com/doc/v1/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "v1 MCP server": {
    "url": "https://rest-api.developer.24sevenoffice.com/doc/v1/mcp"
  }
}

Close
GET /vouchers

Read a list of vouchers.

Headers

  • Authorization string Required

    Authorization header

Query parameters

  • limit integer(int32)

    Maximum number of vouchers to return per page.

    Minimum value is 1, maximum value is 200. Default value is 50.

  • 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.

    Values are Empty, NotProcessed, InProgress, AwaitingApproval, AwaitingReview, Declined, OnHold, PostingPending, PostingFailed, or Posted.

  • documentType string

    Filter vouchers by document type.

    Values are IncomingInvoice, OutgoingInvoice, IncomingCreditNote, OutgoingCreditNote, Receipt, BankStatement, Expense, or Misc.

  • 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.

    Maximum length is 50.

  • 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.

    Format should match the following pattern: ^[A-Z]{3}$.

  • comment string

    Filter vouchers by comment.

    Maximum length is 255.

  • 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 application/json

    OK

    Hide headers attributes Show headers attributes
    Hide response attributes Show response attributes object
    • id string(uuid) Required

      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 Required

      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.

      Values are Empty, NotProcessed, InProgress, AwaitingApproval, AwaitingReview, Declined, OnHold, PostingPending, PostingFailed, or Posted.

    • 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.

      Hide onHoldInfo attributes Show onHoldInfo attributes object
      • heldAt string(date-time) Required

        A timestamp for when the voucher was put on hold, in ISO 8601 format.

      • heldFromStatus string Required

        The status the voucher was in when it was put on hold. Never OnHold itself.

        Values are Empty, NotProcessed, InProgress, AwaitingApproval, AwaitingReview, Declined, OnHold, PostingPending, PostingFailed, or Posted.

      • reason string Required

        Free-text reason for why the voucher was put on hold.

        Maximum length is 255.

    • 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.

      Values are IncomingInvoice, OutgoingInvoice, IncomingCreditNote, OutgoingCreditNote, Receipt, BankStatement, Expense, or Misc.

    • 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.

      One of:
    • 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).

      Hide customer attributes Show customer attributes object
      • id integer

        The identifier of the customer or supplier.

      • name string

        The name of the customer or supplier.

    • dimensions array[object]

      A list of dimensions such as department or project.

      Not more than 10 elements.

      Hide dimensions attributes Show dimensions attributes object
      • dimensionType integer Required

        The unique identifier for the dimension within Finago Office ERP modules.

      • value string Required

        The value (ie key) for the dimension.

      • name string Required

        The display name associated with the value of the dimension.

    • 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 Required

      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.

      Hide currency attributes Show currency attributes object
      • code string Required

        Format should match the following pattern: ^[A-Z]{3}$.

      • rate number Required
    • invoice object

      Details of the invoice associated with the voucher, if applicable.

      Hide invoice attributes Show invoice attributes object
      • number string

        Maximum length is 50.

      • dueDate string(date)
      • remittanceReference string

        Maximum length is 32.

      • bankAccount string

        Maximum length is 50.

    • comment string

      Maximum length is 75.

    • 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.

      Hide attachment attributes Show attachment attributes object
      • documentId integer

        The document number associated with the transactions posted to the general ledger from this voucher. Only set once the voucher has been posted. Use with GET /documents/{documentId} to retrieve the document.

      • pageCount integer

        The number of pages attached to the voucher. Retrieve them with GET /vouchers/{voucherId}/pages.

    • 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.

      Not more than 1000 elements.

      Hide transactionLines attributes Show transactionLines attributes object

      A transaction line on the voucher. The date, invoice details and dimensions are not repeated per line; use transactionDate, invoice and dimensions of the voucher.

      • accountNumber integer | null Required
      • amount number | null Required
      • comment string

        Maximum length is 75.

      • periodDate string(date)
      • 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.

        Hide currency attributes Show currency attributes object
        • code string Required

          Format should match the following pattern: ^[A-Z]{3}$.

        • rate number Required
      • tax object

        The tax code applied to the transaction line. Only the tax code number is returned; see GET /taxes for its name and rate.

        Hide tax attribute Show tax attribute object
        • number integer

          The number of the tax code.

  • 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.

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
  • 401

    Unauthorized. Missing or invalid bearer token.

    Hide headers attributes Show headers attributes
    • 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.

    Hide headers attributes Show headers attributes
    • 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.

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
GET /vouchers
curl \
 --request GET 'https://rest.api.24sevenoffice.com/v1/vouchers' \
 --header "Authorization: string"
Response examples (200)
# 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
        }
      }
    ]
  }
]