{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-create-container-request-schema.json",
  "title": "createContainerRequest",
  "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/createContainerRequest",
  "type": "object",
  "required": [
    "pickup",
    "sortLevel",
    "containerType"
  ],
  "properties": {
    "pickup": {
      "type": "string",
      "maxLength": 10,
      "minLength": 4,
      "pattern": "^[\\S]+$",
      "description": "DHL eCommerce pickup account number. You will receive this after onboarding with DHL eCommerce. This is not the same as the Sold To Account number. (M)"
    },
    "containerRef1": {
      "type": "string",
      "maxLength": 30,
      "minLength": 1,
      "description": "Client Container Reference Number. (O)"
    },
    "sortLevel": {
      "type": "string",
      "description": "Sort Level for the container. (M)",
      "enum": [
        "GND",
        "EXP",
        "MAX"
      ]
    },
    "containerType": {
      "type": "string",
      "enum": [
        "PALLET"
      ],
      "description": "The type of container. (M)"
    },
    "label": {
      "type": "object",
      "properties": {
        "generate": {
          "type": "boolean",
          "description": "Indicates whether to generate a container label. (O)",
          "enum": [
            true,
            false
          ]
        },
        "format": {
          "type": "string",
          "description": "Format for the container label. Mandatory if generate = true. (C)",
          "enum": [
            "ZPL"
          ]
        }
      }
    }
  }
}