---
id: legal-documents
title: legalDocuments
---

List of legal documents. In a shop context only published documents are returned. PUBLIC

```graphql
legalDocuments(
  after: String
  before: String
  first: Int
  last: Int
  required: [Boolean!]
): LegalDocumentConnection!
```

### Arguments

#### [`legalDocuments.after`](#after) · [`String`](/docs/developers/api-reference/booking/v1/types/scalars/string) **scalar** {#after}

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

#### [`legalDocuments.before`](#before) · [`String`](/docs/developers/api-reference/booking/v1/types/scalars/string) **scalar** {#before}

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

#### [`legalDocuments.first`](#first) · [`Int`](/docs/developers/api-reference/booking/v1/types/scalars/int) **scalar** {#first}

Returns the first \_n\_ elements from the list.

#### [`legalDocuments.last`](#last) · [`Int`](/docs/developers/api-reference/booking/v1/types/scalars/int) **scalar** {#last}

Returns the last \_n\_ elements from the list.

#### [`legalDocuments.required`](#required) · [`[Boolean!]`](/docs/developers/api-reference/booking/v1/types/scalars/boolean) **list** **scalar** {#required}

Filter by whether customers must accept the document at checkout.

### Type

#### [`LegalDocumentConnection`](/docs/developers/api-reference/booking/v1/types/objects/legal-document-connection) **object**

The connection type for LegalDocument.
