{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-print-options-by-id-schema.json",
  "title": "PrintOptionsById",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-print-dhl-freight-openapi.yml#/components/schemas/PrintOptionsById",
  "type": "object",
  "properties": {
    "shipmentIds": {
      "type": "array",
      "maxItems": 999,
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "Provide one or more shipment ids that were returned from the Booking API."
    },
    "options": {
      "$ref": "#/$defs/ReportOptions"
    }
  },
  "$defs": {
    "LicenseBarCodeEnum": {
      "type": "string",
      "enum": [
        "GS1",
        "Code128"
      ]
    },
    "PageOptions": {
      "type": "object",
      "properties": {
        "pageType": {
          "$ref": "#/$defs/PageTypeEnum"
        },
        "marginLeft": {
          "format": "double",
          "type": "number"
        },
        "marginTop": {
          "format": "double",
          "type": "number"
        },
        "padding": {
          "format": "double",
          "type": "number"
        },
        "outputType": {
          "type": "string",
          "enum": [
            "PDF",
            "ZPL",
            "ZPL300",
            "ZPL600"
          ],
          "description": "PDF is suitable for all laser printers. For 203 DPI label printer support, please use ZPL."
        }
      }
    },
    "PageTypeEnum": {
      "type": "string",
      "enum": [
        "Label",
        "Label2xPortraitA4",
        "Label3xLandscapeA4",
        "LabelCompact"
      ],
      "description": "For ZPL outputs, only LabelCompact format is supported."
    },
    "ReportOptions": {
      "type": "object",
      "properties": {
        "label": {
          "type": "boolean"
        },
        "shipmentList": {
          "type": "boolean"
        },
        "shipmentListType": {
          "type": "string",
          "enum": [
            "Consignee",
            "Delivery"
          ]
        },
        "waybill": {
          "type": "boolean"
        },
        "guarantee": {
          "type": "boolean"
        },
        "returnLabel": {
          "type": "boolean"
        },
        "licensePlateBarCode": {
          "$ref": "#/$defs/LicenseBarCodeEnum"
        },
        "pageOptions": {
          "$ref": "#/$defs/PageOptions"
        }
      }
    }
  }
}