{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-app-shopping-cart-preview-pdfrequest-schema.json",
  "title": "AppShoppingCartPreviewPDFRequest",
  "description": "The request object for validate (preview) shopping cart pdf.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-deutsche-post-internetmarke-post-parcel-germany-openapi.yml#/components/schemas/AppShoppingCartPreviewPDFRequest",
  "required": [
    "voucherLayout"
  ],
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/AppCheckoutPDFRequest"
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "AppShoppingCartPDFRequest",
            "AppShoppingCartPreviewPDFRequest"
          ],
          "default": "AppShoppingCartPreviewPDFRequest",
          "description": "set AppShoppingCartPDFRequest if validate=false, AppShoppingCartPreviewPDFRequest if validate=true"
        },
        "productCode": {
          "minimum": 1,
          "type": "integer",
          "description": "The product code for the selected product, e.g. standard letter, maxi letter etc. The product code must be greater than 0 and the product must be available in the third-party application.",
          "format": "int32"
        },
        "imageID": {
          "type": "integer",
          "description": "The ID of the motif.",
          "format": "int32"
        },
        "voucherLayout": {
          "type": "string",
          "enum": [
            "ADDRESS_ZONE",
            "FRANKING_ZONE"
          ]
        },
        "pageFormatId": {
          "minimum": 1,
          "type": "integer",
          "description": "The ID of the print format. All available formats can be identified by request /app/catalog?types=PAGE_FORMATS",
          "format": "int32"
        },
        "dpi": {
          "type": "string",
          "enum": [
            "DPI300",
            "DPI203"
          ]
        }
      }
    }
  ],
  "$defs": {
    "AppCheckoutPDFRequest": {
      "description": "The base request object for external partners to get an internet stamp in PDF format.",
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        }
      }
    }
  }
}