{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-parcels-product-reference-data-schema.json",
  "title": "parcelsProductReferenceData",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-ecommerce-uk-openapi.json#/components/schemas/parcelsProductReferenceData",
  "required": [
    "accountType",
    "productCode",
    "productName",
    "shipmentIdentifierType",
    "shipmentType"
  ],
  "type": "object",
  "properties": {
    "productCode": {
      "type": "string",
      "description": "Product code"
    },
    "productName": {
      "type": "string",
      "description": "Product Name"
    },
    "shipmentType": {
      "enum": [
        "parceluk",
        "international"
      ],
      "type": "string",
      "description": "Type of shipment this product can be used for"
    },
    "sortOrder": {
      "type": "number",
      "description": "Sort order used when displaying multiple products, lowest value equals highest sort order in a list. For example sort order 1 would be first item in the list"
    },
    "maximumParcels": {
      "type": "number",
      "description": "Maximum number of parcels per shipment when using this product"
    },
    "maximumWeight": {
      "type": "number",
      "description": "Maximum weight per shipment when using this product"
    },
    "fixedParcels": {
      "type": "number",
      "description": "Does this product have a fixed value for the number of parcels that must be applied if selected e.g. 1. If value is 0 then no fixed value applies"
    },
    "fixedWeight": {
      "type": "number",
      "description": "Does this product have a fixed value for weight that must be applied if selected e.g. 5. If value is 0 then no fixed value applies"
    },
    "dimensionsMandatory": {
      "type": "boolean",
      "description": "Is is mandatory to provide parcel dimensions when using this product?"
    },
    "maximumLength": {
      "type": "number",
      "description": "Maximum parcel length when using this product. If value is 0 then no maximum applies"
    },
    "maximumWidth": {
      "type": "number",
      "description": "Maximum parcel width when using this product. If value is 0 then no maximum applies"
    },
    "maximumHeight": {
      "type": "number",
      "description": "Maximum parcel height when using this product. If value is 0 then no maximum applies"
    },
    "bulkyLength": {
      "type": "number",
      "description": "When length of any parcel in shipment is greater than or equal to this value then shipment must be declared as bulky when the shipment is manifested. If value is 0 then this rule does not apply"
    },
    "bulkyWidth": {
      "type": "number",
      "description": "When width of any parcel in shipment is greater than or equal to this value then shipment must be declared as bulky when the shipment is manifested. If value is 0 then this rule does not apply"
    },
    "bulkyHeight": {
      "type": "number",
      "description": "When height of any parcel in shipment is greater than or equal to this value then shipment must be declared as bulky when the shipment is manifested. If value is 0 then this rule does not apply"
    },
    "bulkyGirth": {
      "type": "number",
      "description": "When girth of any parcel in shipment is greater than or equal to this value then shipment must be declared as bulky when the shipment is manifested. If value is 0 then this rule does not apply"
    },
    "accountType": {
      "enum": [
        "ukDomestic",
        "internationalRoad",
        "internationalAir",
        "returns"
      ],
      "type": "string",
      "description": "Type of account required when creating a shipment for this product"
    },
    "shipmentIdentifierType": {
      "enum": [
        "parceluk",
        "mh10",
        "s10"
      ],
      "type": "string",
      "description": "Type of shipment identifier to generate when creating a new shipment for this product"
    },
    "labelType": {
      "enum": [
        "parcel-connect-uk",
        "parcel-international-uk",
        "domestic-uk",
        "international-uk"
      ],
      "type": "string",
      "description": "Type of label to generate when producing a label for this product,"
    },
    "labelProductName": {
      "type": "string",
      "description": "Product name to print on labels when a label for this product is generated"
    },
    "labelSortationName": {
      "type": "string",
      "description": "Sortation code to print on labels when a label for this product is generated. For deliveries in the United Kingdom this will be empty and the label sortation code will need to be looked up from the UKPostcodeDistrict resource using the UK delivery postcode"
    },
    "barcodeProductCode": {
      "type": "string",
      "description": "Product code to encode into a DHL routing barcode when generating a label"
    },
    "servicePointCollection": {
      "type": "boolean",
      "description": "Does this product allow collections from ServicePoint's?"
    },
    "servicePointDelivery": {
      "type": "boolean",
      "description": "Does this product allow delivery to ServicePoint's?"
    }
  }
}