{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-product-dhl-freight-openapi.yml#/components/schemas/Product",
  "type": "object",
  "properties": {
    "isDomestic": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "productCode": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "customRules": {
      "type": "string"
    },
    "active": {
      "type": "boolean"
    },
    "stackable": {
      "type": "boolean"
    },
    "shipmentTotal": {
      "$ref": "#/$defs/ShipmentTotal"
    },
    "piece": {
      "$ref": "#/$defs/Piece"
    },
    "fromCountries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FromCountry"
      }
    },
    "toCountries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ToCountry"
      }
    },
    "marketAvailability": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MarketAvailability"
      }
    },
    "packageTypes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PackageType"
      }
    },
    "exclusions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Exclusion"
      }
    },
    "dangerousGoodsExclusions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DangerousGoodsExclusion"
      }
    },
    "payerCodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PayerCodeResponse"
      }
    },
    "additionalServices": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdditionalService"
      }
    }
  },
  "$defs": {
    "AdditionalService": {
      "type": "object",
      "properties": {
        "code": {
          "$ref": "#/$defs/AdditionalServiceType"
        },
        "name": {
          "type": "string"
        },
        "information": {
          "type": "string"
        },
        "codeMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeMapping"
          }
        },
        "translations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Translation"
          }
        },
        "customs": {
          "type": "boolean"
        },
        "customUsageRules": {
          "type": "string"
        }
      }
    },
    "AdditionalServiceType": {
      "type": "string",
      "format": "int32",
      "enum": [
        "CashOnDelivery",
        "DangerousGoods",
        "FixedDeliveryDate",
        "Insurance",
        "HighValueShipment",
        "PreAdvice",
        "TailLiftLoading",
        "TailLiftUnloading",
        "SideLoadingPickup",
        "SideUnloadingDelivery",
        "ThermoCold",
        "DropOffByConsignor",
        "PriorityServiceP10",
        "PriorityServiceP12",
        "After12Delivery",
        "AvailablePickupTime",
        "AvailableDeliveryTime"
      ]
    },
    "CodeMapping": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "Country": {
      "type": "object",
      "properties": {
        "englishName": {
          "type": "string"
        },
        "countryCode": {
          "type": "string"
        },
        "customs": {
          "type": "boolean"
        }
      }
    },
    "DangerousGoodsExclusion": {
      "description": "Indicates whether a dangerous goods class is allowed or not. If a class is allowed, then the exceptions are not allowed If a class is not allowed, then the exceptions allowed",
      "type": "object",
      "properties": {
        "class": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "allowed": {
          "type": "boolean"
        },
        "exceptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DangerousGoodsExclusionException"
          }
        }
      }
    },
    "DangerousGoodsExclusionException": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "DeliveryType": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "shipmentTotal": {
          "$ref": "#/$defs/ShipmentTotal"
        },
        "piece": {
          "$ref": "#/$defs/Piece"
        }
      }
    },
    "Exclusion": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "FromCountry": {
      "type": "object",
      "properties": {
        "country": {
          "$ref": "#/$defs/Country"
        }
      }
    },
    "MarketAvailability": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "MinAndMaxDbl": {
      "type": "object",
      "properties": {
        "min": {
          "format": "double",
          "type": "number"
        },
        "max": {
          "format": "double",
          "type": "number"
        }
      }
    },
    "MinAndMaxInt": {
      "type": "object",
      "properties": {
        "min": {
          "format": "int32",
          "type": "integer"
        },
        "max": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "PackageType": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "PayerCodeResponse": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "customs": {
          "type": "boolean"
        }
      }
    },
    "Piece": {
      "type": "object",
      "properties": {
        "numberOfPieces": {
          "$ref": "#/$defs/MinAndMaxInt"
        },
        "weight": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "volume": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "loadingMeters": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "palletPlaces": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "width": {
          "$ref": "#/$defs/MinAndMaxInt"
        },
        "height": {
          "$ref": "#/$defs/MinAndMaxInt"
        },
        "length": {
          "$ref": "#/$defs/MinAndMaxInt"
        }
      }
    },
    "ShipmentTotal": {
      "type": "object",
      "properties": {
        "totalNumberOfPieces": {
          "$ref": "#/$defs/MinAndMaxInt"
        },
        "totalWeight": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "totalVolume": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "totalLoadingMeters": {
          "$ref": "#/$defs/MinAndMaxDbl"
        },
        "totalPalletPlaces": {
          "$ref": "#/$defs/MinAndMaxDbl"
        }
      }
    },
    "ToCountry": {
      "type": "object",
      "properties": {
        "country": {
          "$ref": "#/$defs/Country"
        },
        "postalCodeExcludes": {
          "type": "string"
        },
        "deliveryTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DeliveryType"
          }
        }
      }
    },
    "Translation": {
      "type": "object",
      "properties": {
        "languageCode": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "information": {
          "type": "string"
        }
      }
    }
  }
}