---
title: "Document"
url: "https://developer.migros.ch/apis/products-related-8/versions/605be1d6-ffb8-4b27-8cd0-286a81eaec29/schemas/Document"
---

> Full API specification: https://developer.migros.ch/apis/products-related-8/versions/605be1d6-ffb8-4b27-8cd0-286a81eaec29.md

# Document

Represents a document.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Products Related
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api.migros.ch
components:
  schemas:
    DocumentPurpose:
      description: Represents the purposes of a document.
      properties:
        code:
          nullable: true
          type: string
        description:
          type: string
      type: object
    Document:
      description: Represents a document.
      properties:
        label:
          nullable: true
          type: string
        purpose:
          description: List of purpose items
          items:
            $ref: "#/components/schemas/DocumentPurpose"
          nullable: true
          type: array
        type:
          type: string
        url:
          description: MIME type of the document.
          type: string
      type: object
```
