{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-single-manifest-response-schema.json",
  "title": "SingleManifestResponse",
  "description": "Response containing the daily manifest document and sheet mappings.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-parcel-de-shipping-post-parcel-germany-v2-openapi.yml#/components/schemas/SingleManifestResponse",
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/$defs/RequestStatus"
    },
    "manifestDate": {
      "type": "string"
    },
    "manifest": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Document"
      }
    },
    "sheetNo": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BillingNoToSheetNo"
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShipmentNoToSheetNo"
      }
    }
  },
  "$defs": {
    "BillingNoToSheetNo": {
      "type": "object",
      "properties": {
        "billingNumber": {
          "type": "string"
        },
        "sheetNo": {
          "type": "string"
        }
      },
      "description": "Mapping between billing number and sheet number"
    },
    "Document": {
      "type": "object",
      "properties": {
        "b64": {
          "type": "string",
          "description": "The Base64 encoded byte stream"
        },
        "zpl2": {
          "type": "string",
          "description": "The document in zpl encoding"
        },
        "url": {
          "type": "string",
          "description": "URL reference to download document"
        },
        "fileFormat": {
          "type": "string",
          "description": "format of the encoded bytes",
          "enum": [
            "ZPL2",
            "PDF"
          ]
        },
        "printFormat": {
          "type": "string",
          "description": "The print format used. Customs documents and cash on delivery documents can only be returned in format A4.",
          "enum": [
            "A4-PT",
            "A4",
            "910-300-700",
            "910-300-700-oZ/oz",
            "910-300-300",
            "910-300-300-oz",
            "910-300-710",
            "910-300-600/610",
            "910-300-400/410",
            "100x70mm"
          ]
        }
      },
      "description": "Encoded document. All types of labels and documents."
    },
    "RequestStatus": {
      "type": "object",
      "description": "General status description for the attached response or response item.",
      "required": [
        "title",
        "status"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "statusCode": {
          "description": "The status code of the response. Usually, but not necessarliy the HTTP status code. Same as attribut \"status\" but deprecated. Do not use. Will be removed in the next major version.",
          "type": "integer",
          "format": "int32"
        },
        "status": {
          "description": "The status code of the response. Usually, but not necessarliy the HTTP status code.",
          "type": "integer",
          "format": "int32"
        },
        "instance": {
          "type": "string",
          "description": "A URI reference that identifies the specific occurrence of the problem."
        },
        "detail": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "ShipmentNoToSheetNo": {
      "type": "object",
      "properties": {
        "shipmentNo": {
          "type": "string"
        },
        "sheetNo": {
          "type": "string"
        },
        "sstatus": {
          "$ref": "#/$defs/RequestStatus"
        }
      },
      "description": "Mapping between shipment number and sheet number"
    }
  }
}