{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-close-container-response-schema.json",
  "title": "closeContainerResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-container-dhl-ecommerce-americas-openapi.yml#/components/schemas/closeContainerResponse",
  "type": "object",
  "properties": {
    "pickup": {
      "type": "string",
      "maxLength": 10,
      "minLength": 4,
      "description": "DHLeCS pickup account number. You will receive this number from DHL eCommerce with the Onboarding Form. (M)"
    },
    "containerRef1": {
      "type": "string",
      "maxLength": 30,
      "minLength": 1,
      "description": "Client container reference number. (O)"
    },
    "sortLevel": {
      "type": "string",
      "description": "The sort level for the container. (M)",
      "enum": [
        "GND",
        "EXP",
        "MAX"
      ]
    },
    "containerType": {
      "type": "string",
      "description": "The type of container. (M)",
      "enum": [
        "PALLET"
      ]
    },
    "containerId": {
      "type": "string",
      "maxLength": 28,
      "minLength": 1,
      "description": "Unique container ID. (M)"
    },
    "status": {
      "type": "string",
      "description": "The status of the container changes to Closed. Packages can no longer be added.",
      "enum": [
        "CLOSED"
      ]
    },
    "packageCount": {
      "type": "number",
      "maximum": 20000,
      "minimum": 0,
      "description": "The number of packages in the container. (M)"
    },
    "packageIds": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "packageid": {
            "type": "string",
            "description": "The IDs of the packages in the container. (M)"
          }
        }
      }
    },
    "label": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "labelData": {
            "type": "string",
            "description": "This will be an encoded string containing the container label plain text ZPL string. (C)",
            "minLength": 0,
            "maxLength": 100000
          },
          "encodeType": {
            "type": "string",
            "description": "Plain text label format. (M)",
            "enum": [
              "PLAIN"
            ]
          },
          "format": {
            "type": "string",
            "description": "Format supported is ZPL. (M)",
            "enum": [
              "ZPL"
            ]
          },
          "link": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "description": "Link to the container label. (M)"
          }
        }
      }
    }
  }
}