---
title: "Invoice:AllLines"
method: GET
path: "/invoicelines"
tags: ["Merchants"]
---

# Invoice:AllLines

`GET /invoicelines`

A Pay. invoice contains multiple invoice lines. This API returns all invoice lines for a specified period. If you are a partner and you have rights to your merchants you can retrieve the invoice lines also for your merchants

## Query parameters

- `limit` integer
- `page` integer
- `date` object
  - `eq` string, date — Get results that equal the given value
  - `gt` string, date — Get results that are greater than the given value
  - `gte` string, date — Get results that are greater than or equal to the given value
  - `lt` string, date — Get results that are less than the given value
  - `lte` string, date — Get results that are less than or equal to the given value
- `processedDate` object
  - `eq` string, date — Get results that equal the given value
  - `gt` string, date — Get results that are greater than the given value
  - `gte` string, date — Get results that are greater than or equal to the given value
  - `lt` string, date — Get results that are less than the given value
  - `lte` string, date — Get results that are less than or equal to the given value
- `merchant` object
  - `eq` string — Get results that equal the given value
  - `neq` string — Get results that do not equal the given value
- `billingLineType` object
  - `eq` integer — Get results that equal the given value
- `turnoverGroup` object
  - `eq` integer — Get results that equal the given value
- `state` object
  - `eq` integer — Get results that equal the given value
- `invoiceID` object
  - `eq` integer — Get results that equal the given value
- `type` object
  - `eq` integer — Get results that equal the given value

## Response `200`

Ok.

- object
  - `total` integer, required
  - `count` integer, required
  - `pages` integer
  - `invoiceLines` InvoiceLine[], required
    - `code` string, required
    - `merchant` object, required — The corresponding merchant for the invoice line
      - `code` Code, required — unresolved $ref
      - `contractPackage` string, required — The merchant's package type
    - `turnoverGroup` object, nullable, required — The turnover group for the invoice line
      - `code` string, required — The turnover group code
      - `name` string, required — The turnover group name
      - `bankAccount` object — $turnoverGroup
        - `code` Code — unresolved $ref
        - `status` Status — unresolved $ref
        - `method` Method — unresolved $ref
        - `iban` BankAccount
          - `iban` string, required — The International Bank Account Number (IBAN).
          - `bic` string, required — Business Identifier Codes (BIC/SWIFT).
          - `owner` string, required — The owner of the bank account.
    - `terminal` object — string>
      - `code` string — The unique identifier of the terminal.
      - `hardwareCode` string — The unique hardware identifier of the terminal.
      - `terminalType` string — The type of terminal.
      - `name` string — The name of the terminal.
    - `billingLineType` object, nullable, required — The type of billing used for the invoice, c.q. payment method
      - `id` integer, required — ID of the billing type
      - `name` string, required — The name for the corresponding billing type
    - `volume` object — The volume of the invoice line
      - `amount` number — Amount of the volume as decimal
      - `currency` string — The currency in ISO-4217 format.
    - `totalCosts` object[] — The total costs per invoice line
      - `totalCosts` object — $totalCosts
        - `type` string — The type of total costs
        - `totalCosts` number — The total costs amount as decimal
        - `currency` string — The currency in ISO-4217 format.
    - `transactions` integer
    - `payers` integer
    - `vatPercentage` number, required
    - `date` string, date, nullable, required
    - `valueDate` string, date, nullable, required
    - `paymentDate` string, date, nullable, required
    - `state` 'OPEN' | 'PAYABLE' | 'PAID', nullable, required
    - `invoiceID` string, nullable, required
    - `lines` FinanceTransactionLine[]
      - `code` string
      - `type` 'BUY' | 'SELL' — The type of invoice line. Can either be SELL or BUY.
      - `unitType` object, nullable — The specification for the unit's type
        - `id` integer, required — The unit type ID
        - `name` string, required — The unit type's name
      - `amount` number
      - `costs` object — The costs revue per financial transaction with the corresponding currency
        - `revenue` number — The revenue for the costs as a decimal (/float)
        - `currency` string — The currency in ISO-4217 format.
      - `processedDate` string, date, nullable
  - `_links` object, required
    - `first` object
      - `href` Href — unresolved $ref
    - `previous` object
      - `href` Href — unresolved $ref
    - `next` object
      - `href` Href — unresolved $ref
    - `last` object
      - `href` Href — unresolved $ref
    - `self` object
      - `href` Href — unresolved $ref
      - `rel` Rel — unresolved $ref
      - `type` Type — unresolved $ref

## Other responses

- `401` — Unauthorized. Supplied credentials are invalid
- `403` — Forbidden. Supplied credentials have no rights
- `405` — Used HTTP method is not allowed
- `406` — Not acceptable. The supplied content type in the accept parameter in the header is not supported
- `429` — Rate limit reached.
- `500` — An internal error occurred

---

[API](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api.md) · [All operations](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/revisions/2bc260c7bdfc/schema)
