{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-product-catalog-countries-schema.json",
  "title": "ProductCatalogCountries",
  "description": "Defines the response structure of the product catalog countries webservice",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-dhl-parcel-de-private-shipping-post-parcel-germany-openapi.yml#/components/schemas/ProductCatalogCountries",
  "type": "object",
  "properties": {
    "countries": {
      "description": "the countries for which products are available represented as an associative array with alphabetical ISO3 country code keys",
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ProductCatalogCountry"
      }
    }
  },
  "$defs": {
    "ProductCatalogCountry": {
      "type": "object",
      "description": "Defines and describes attributes of a country in the response structure of the product catalog countries webservice.",
      "properties": {
        "LANGCUSTDECL": {
          "description": "languages eligible for customer declarations",
          "type": "string"
        },
        "CP71MAND": {
          "description": "whether or not a CP71 form is required for shipments to this country",
          "type": "boolean"
        },
        "CONTENTLIMIT": {
          "description": "textual description of limitations on the allowed shipment contents",
          "type": "string"
        },
        "DESTINLIMIT": {
          "description": "textual description of limitations on the possible destinations in this country",
          "type": "string"
        },
        "PROVINCEAVAILABLE": {
          "description": "whether or not the country has provinces",
          "type": "boolean"
        },
        "PROVINCE": {
          "description": "includes all provinces of the country",
          "type": "object",
          "properties": {
            "required": {
              "type": "boolean"
            }
          }
        },
        "PRODUCTEXCLUDES": {
          "description": "Lists all locked products for the selected country including a specified reason for the lock.",
          "type": "object",
          "properties": {
            "de": {
              "$ref": "#/$defs/ProductCatalogCountryLanguage"
            },
            "en": {
              "$ref": "#/$defs/ProductCatalogCountryLanguage"
            }
          }
        }
      }
    },
    "ProductCatalogCountryLanguage": {
      "description": "All listed Productcodes are locked with the corresponding texts for the listed country.",
      "type": "object",
      "properties": {
        "paket": {
          "description": "The productLocked value `true` means the products are not available for the selected country. The productLocked value `false` means the products are all generally available for the selected country.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductCatalogCountryProductgroup"
          }
        },
        "express": {
          "description": "The productLocked value `true` means the products are not available for the selected country. The productLocked value `false` means the products are all generally available for the selected country.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductCatalogCountryProductgroup"
          }
        }
      }
    },
    "ProductCatalogCountryProductgroup": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "productLocked": {
          "type": "boolean"
        },
        "productcodes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}