> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QuerySalesInvoicesInternal

> Delivers a queryable overview list of all sales invoices



**query** `QuerySalesInvoicesInternal(depositAttributeName: String!, fromDate: DateTime!, toDate: DateTime!, companyId: ID!, first: Int, after: String, last: Int, before: String, where: SalesInvoiceInternalFilterInput, order: [SalesInvoiceInternalSortInput!]): QuerySalesInvoicesInternalConnection`

## Arguments

**`depositAttributeName`**: `String!` (required)

---

**`fromDate`**: `DateTime!` (required)

---

**`toDate`**: `DateTime!` (required)

---

**`companyId`**: `ID!` (required)

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`before`**: `String`

Returns the elements in the list that come before the specified cursor.

---

**`where`**: `SalesInvoiceInternalFilterInput`

---

**`order`**: `[SalesInvoiceInternalSortInput!]`

## Returns

`QuerySalesInvoicesInternalConnection`

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`edges`**: `[QuerySalesInvoicesInternalEdge!]`

A list of edges.

---

**`nodes`**: `[SalesInvoiceInternal!]`

A flattened list of the nodes.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QuerySalesInvoicesInternal($depositAttributeName: String!, $fromDate: DateTime!, $toDate: DateTime!, $companyId: ID!) {
  QuerySalesInvoicesInternal(depositAttributeName: $depositAttributeName, fromDate: $fromDate, toDate: $toDate, companyId: $companyId) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        salesOrderId
        salesInvoiceId
        customerId
        platformId
        salesInvoicePaymentMethodId
        companyId
      }
    }
    nodes {
      salesOrderId
      salesInvoiceId
      customerId
      platformId
      salesInvoicePaymentMethodId
      companyId
    }
    totalCount
  }
}
```

```json Variables
{
  "depositAttributeName": "string",
  "fromDate": "value",
  "toDate": "value",
  "companyId": "id"
}
```

```json Response
{
  "data": {
    "QuerySalesInvoicesInternal": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "salesOrderId": "id",
            "salesInvoiceId": "id",
            "customerId": "id",
            "platformId": "id",
            "salesInvoicePaymentMethodId": "id",
            "companyId": "id"
          }
        }
      ],
      "nodes": [
        {
          "salesOrderId": "id",
          "salesInvoiceId": "id",
          "customerId": "id",
          "platformId": "id",
          "salesInvoicePaymentMethodId": "id",
          "companyId": "id"
        }
      ],
      "totalCount": 1
    }
  }
}
```
