{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-label-download-schema.json",
  "title": "LabelDownload",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-dhl-parcel-de-private-shipping-post-parcel-germany-openapi.yml#/components/schemas/LabelDownload",
  "type": "object",
  "properties": {
    "label": {
      "$ref": "#/$defs/DownloadFile"
    },
    "mopsValue": {
      "type": "string",
      "description": "mops values inserted if ?withMopsValue=true attached to the url"
    }
  },
  "$defs": {
    "DownloadFile": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "name of the file"
        },
        "file": {
          "type": "string",
          "description": "base64 encoded file"
        },
        "type": {
          "type": "string",
          "description": "the mime type"
        },
        "numberOfPages": {
          "type": "integer",
          "description": "if system enabled number of pages of document (if applicable, as example pdf)"
        },
        "pakId": {
          "type": "string",
          "description": "pakId of the shipment if exists"
        }
      }
    }
  }
}