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

# QuerySalesInvoiceCancellationsInternal

> Delivers a queryable overview list of all invoice cancellations



**query** `QuerySalesInvoiceCancellationsInternal(depositAttributeName: String!, fromDate: DateTime!, toDate: DateTime!, companyId: ID!, first: Int, after: String, last: Int, before: String, where: SalesInvoiceCancellationInternalFilterInput, order: [SalesInvoiceCancellationInternalSortInput!]): QuerySalesInvoiceCancellationsInternalConnection`

## 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`**: `SalesInvoiceCancellationInternalFilterInput`

---

**`order`**: `[SalesInvoiceCancellationInternalSortInput!]`

## Returns

`QuerySalesInvoiceCancellationsInternalConnection`

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

Information to aid in pagination.

---

**`edges`**: `[QuerySalesInvoiceCancellationsInternalEdge!]`

A list of edges.

---

**`nodes`**: `[SalesInvoiceCancellationInternal!]`

A flattened list of the nodes.

---

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

Identifies the total count of items in the connection.

## Examples

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

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

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