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

# QueryExternalDocumentsInternal

> Delivers a queryable overview list of all external documents



**query** `QueryExternalDocumentsInternal(fromDate: DateTime!, toDate: DateTime!, companyId: ID!, first: Int, after: String, last: Int, before: String, where: ExternalDocumentInternalFilterInput, order: [ExternalDocumentInternalSortInput!]): QueryExternalDocumentsInternalConnection`

## Arguments

**`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`**: `ExternalDocumentInternalFilterInput`

---

**`order`**: `[ExternalDocumentInternalSortInput!]`

## Returns

`QueryExternalDocumentsInternalConnection`

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

Information to aid in pagination.

---

**`edges`**: `[QueryExternalDocumentsInternalEdge!]`

A list of edges.

---

**`nodes`**: `[ExternalDocumentInternal!]`

A flattened list of the nodes.

---

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

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QueryExternalDocumentsInternal($fromDate: DateTime!, $toDate: DateTime!, $companyId: ID!) {
  QueryExternalDocumentsInternal(fromDate: $fromDate, toDate: $toDate, companyId: $companyId) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        externalDocumentTransactionId
        companyId
        customerId
        platformId
        paymentMethodId
        externalInvoiceDocumentId
      }
    }
    nodes {
      externalDocumentTransactionId
      companyId
      customerId
      platformId
      paymentMethodId
      externalInvoiceDocumentId
    }
    totalCount
  }
}
```

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

```json Response
{
  "data": {
    "QueryExternalDocumentsInternal": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "externalDocumentTransactionId": "id",
            "companyId": "id",
            "customerId": "id",
            "platformId": "id",
            "paymentMethodId": "id",
            "externalInvoiceDocumentId": "id"
          }
        }
      ],
      "nodes": [
        {
          "externalDocumentTransactionId": "id",
          "companyId": "id",
          "customerId": "id",
          "platformId": "id",
          "paymentMethodId": "id",
          "externalInvoiceDocumentId": "id"
        }
      ],
      "totalCount": 1
    }
  }
}
```
