{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-dctresponse-schema.json",
  "title": "DCTResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-mydhl-api-xml-dhl-express-openapi.yml#/components/schemas/DCTResponse",
  "type": "object",
  "oneOf": [
    {
      "properties": {
        "GetQuoteResponse": {
          "description": "Root element of Quote request\n\t\t\t\t\t\t\t",
          "properties": {
            "Response": {
              "description": "object",
              "properties": {
                "ServiceHeader": {
                  "$ref": "#/$defs/DCTResponseServiceHeader"
                }
              },
              "required": [
                "ServiceHeader"
              ]
            },
            "BkgDetails": {
              "type": "array",
              "minItems": 0,
              "items": {
                "properties": {
                  "QtdShp": {
                    "type": "array",
                    "minItems": 0,
                    "items": {
                      "$ref": "#/$defs/ResponseBkgDetailsType"
                    }
                  }
                }
              }
            },
            "Srvs": {
              "description": "object",
              "properties": {
                "Srv": {
                  "$ref": "#/$defs/SrvType"
                }
              }
            },
            "Note": {
              "type": "array",
              "minItems": 0,
              "items": {
                "$ref": "#/$defs/NoteType"
              }
            }
          },
          "required": [
            "Response"
          ]
        }
      },
      "required": [
        "GetQuoteResponse"
      ]
    },
    {
      "properties": {
        "GetCapabilityResponse": {
          "description": "Root element of Capability request\n\t\t\t\t\t\t\t",
          "properties": {
            "Response": {
              "description": "object",
              "properties": {
                "ServiceHeader": {
                  "$ref": "#/$defs/DCTResponseServiceHeader"
                }
              },
              "required": [
                "ServiceHeader"
              ]
            },
            "BkgDetails": {
              "type": "array",
              "minItems": 0,
              "items": {
                "properties": {
                  "QtdShp": {
                    "type": "array",
                    "minItems": 0,
                    "items": {
                      "$ref": "#/$defs/ResponseBkgDetailsType"
                    }
                  }
                }
              }
            },
            "Srvs": {
              "description": "object",
              "properties": {
                "Srv": {
                  "$ref": "#/$defs/SrvType"
                }
              }
            },
            "Note": {
              "type": "array",
              "minItems": 0,
              "items": {
                "$ref": "#/$defs/NoteType"
              }
            }
          },
          "required": [
            "Response"
          ]
        }
      },
      "required": [
        "GetCapabilityResponse"
      ]
    }
  ],
  "$defs": {
    "ChargeTaxAmountDetType": {
      "type": "object",
      "properties": {
        "TaxTypeRate": {
          "type": "number",
          "description": "object Positive number with 8 amount of digits. Positive number with 6 decimal places precision."
        },
        "TaxTypeCode": {
          "type": "string",
          "description": "object",
          "maxLength": 6
        },
        "TaxAmount": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "BaseAmount": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        }
      }
    },
    "CurrencyCode": {
      "type": "string",
      "description": "ISO currency code",
      "minLength": 3,
      "maxLength": 3,
      "pattern": "[^ ].*[^ ]"
    },
    "DCTResponseServiceHeader": {
      "type": "object",
      "description": "Standard routing header",
      "properties": {
        "MessageTime": {
          "type": "string",
          "description": "Time this message is sent",
          "format": "date-time"
        },
        "MessageReference": {
          "$ref": "#/$defs/MessageReference"
        },
        "SiteID": {
          "$ref": "#/$defs/SiteID"
        }
      },
      "required": [
        "SiteID"
      ]
    },
    "DeliveryDate": {
      "type": "object",
      "properties": {
        "DeliveryType": {
          "type": "string",
          "description": "The type of Delivery."
        },
        "DlvyDateTime": {
          "type": "string",
          "description": "The delivery date and time."
        },
        "DeliveryDateTimeOffset": {
          "type": "string",
          "description": "The GMT offset of the delivery time."
        }
      }
    },
    "DestSvcAreaType": {
      "type": "object",
      "properties": {
        "FacilityCode": {
          "type": "string",
          "description": "object",
          "minLength": 3,
          "maxLength": 3
        },
        "ServiceAreaCode": {
          "type": "string",
          "description": "object",
          "minLength": 3,
          "maxLength": 3
        }
      },
      "required": [
        "ServiceAreaCode"
      ]
    },
    "GlobalProductCode": {
      "type": "string",
      "description": "The GlobalProductCode Element is global product code for the shipment. It is the optional field in the Shipment Details segment. It is an optional field. Please refer to Reference Data (Global Product Codes)",
      "minLength": 1,
      "maxLength": 6,
      "pattern": "([A-Z0-9])*"
    },
    "LocalProductCode": {
      "type": "string",
      "description": "The LocalProductCode Element is local product code for the shipment. It is the optional field in the Shipment Details segment",
      "minLength": 1,
      "maxLength": 4,
      "pattern": "([A-Z0-9])*"
    },
    "MessageReference": {
      "type": "string",
      "description": "Reference to the requested Message",
      "minLength": 28,
      "maxLength": 32
    },
    "Money": {
      "type": "number",
      "description": "Monetary amount (with 2 decimal precision)\n\t\t\t"
    },
    "MrkSrvType": {
      "type": "object",
      "properties": {
        "NetworkTypeCode": {
          "type": "string",
          "description": "object"
        },
        "TransInd": {
          "type": "string",
          "description": "object"
        },
        "ChargeCodeType": {
          "type": "string",
          "description": "object"
        },
        "MrkSrvInd": {
          "type": "string",
          "description": "object",
          "minLength": 1,
          "maxLength": 1
        },
        "LocalProductCtryCd": {
          "type": "string",
          "description": "object",
          "minLength": 2,
          "maxLength": 2
        },
        "LocalProductDesc": {
          "type": "string",
          "description": "object"
        },
        "GlobalProductDesc": {
          "type": "string",
          "description": "object"
        },
        "GlobalServiceType": {
          "type": "string",
          "description": "object"
        },
        "BillingServiceIndicator": {
          "type": "string",
          "description": "object"
        },
        "LocalServiceName": {
          "type": "string",
          "description": "object"
        }
      },
      "oneOf": [
        {
          "properties": {
            "LocalProductCode": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "LocalServiceType": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "ProductShortName": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "GlobalServiceName": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "LocalProductName": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "LocalServiceTypeName": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "ProductDesc": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "ServiceDesc": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "POfferedCustAgreement": {
              "type": "string",
              "description": "object"
            }
          }
        },
        {
          "properties": {
            "SOfferedCustAgreement": {
              "type": "string",
              "description": "object"
            }
          }
        }
      ]
    },
    "NoteType": {
      "type": "object",
      "properties": {
        "ActionStatus": {
          "type": "string",
          "description": "object"
        },
        "Condition": {
          "description": "object",
          "properties": {
            "ConditionCode": {
              "type": "string",
              "description": "object",
              "minLength": 0,
              "maxLength": 10
            },
            "ConditionData": {
              "type": "string",
              "description": "object"
            }
          }
        }
      }
    },
    "OrgnSvcAreaType": {
      "type": "object",
      "properties": {
        "FacilityCode": {
          "type": "string",
          "description": "object",
          "minLength": 3,
          "maxLength": 3
        },
        "ServiceAreaCode": {
          "type": "string",
          "description": "object",
          "minLength": 3,
          "maxLength": 3
        }
      },
      "required": [
        "ServiceAreaCode"
      ]
    },
    "ProdType": {
      "type": "object",
      "properties": {
        "VldSrvComb": {
          "type": "array",
          "description": "object",
          "minItems": 0,
          "items": {
            "properties": {
              "SpecialServiceType": {
                "type": "string",
                "description": "object"
              },
              "LocalServiceType": {
                "type": "array",
                "minItems": 0,
                "items": {
                  "type": "string",
                  "description": "object"
                }
              },
              "CombRSrv": {
                "description": "object",
                "type": "array",
                "minItems": 0,
                "items": {
                  "properties": {
                    "RestrictedSpecialServiceType": {
                      "type": "string",
                      "description": "object"
                    },
                    "RestrictedLocalServiceType": {
                      "type": "array",
                      "minItems": 0,
                      "items": {
                        "type": "string",
                        "description": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "TotalDiscount": {
          "type": "string",
          "description": "object",
          "minLength": 1,
          "maxLength": 1
        }
      }
    },
    "QtdSExtrChrgInAdCurType": {
      "type": "object",
      "properties": {
        "ChargeValue": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "ChargeExchangeRate": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 6 decimal places precision."
        },
        "ChargeTaxAmount": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "CurrencyCode": {
          "type": "string",
          "description": "object",
          "minLength": 3,
          "maxLength": 3
        },
        "CurrencyRoleTypeCode": {
          "type": "string",
          "description": "object",
          "minLength": 5,
          "maxLength": 5
        },
        "ChargeTaxAmountDet": {
          "type": "array",
          "minItems": 0,
          "items": {
            "$ref": "#/$defs/ChargeTaxAmountDetType"
          }
        }
      }
    },
    "ResponseBkgDetailsType": {
      "type": "object",
      "properties": {
        "OriginServiceArea": {
          "$ref": "#/$defs/OrgnSvcAreaType"
        },
        "DestinationServiceArea": {
          "$ref": "#/$defs/DestSvcAreaType"
        },
        "GlobalProductCode": {
          "$ref": "#/$defs/GlobalProductCode"
        },
        "LocalProductCode": {
          "$ref": "#/$defs/LocalProductCode"
        },
        "ProductShortName": {
          "type": "string",
          "description": "The global product name of the shipment"
        },
        "LocalProductName": {
          "type": "string",
          "description": "Local product name of the shipment"
        },
        "NetworkTypeCode": {
          "type": "string",
          "description": "Network type of the product in the shipment"
        },
        "POfferedCustAgreement": {
          "type": "string",
          "description": "Indicates that the product or service or solution only can be offered to a customer agreement that are not default to a billing entity"
        },
        "TransInd": {
          "type": "string",
          "description": "Indicates the web user interface indicator. If value of Y, it is show on the Web user interface"
        },
        "PickupDate": {
          "type": "string",
          "description": "Date of pickup",
          "format": "date"
        },
        "PickupCutoffTime": {
          "type": "string",
          "description": "The pick up cut off time in origin's time zone"
        },
        "BookingTime": {
          "type": "string",
          "description": "Booking cut off time"
        },
        "CurrencyCode": {
          "$ref": "#/$defs/CurrencyCode"
        },
        "ExchangeRate": {
          "type": "number",
          "description": "The exchange rate between EUR and charge currency code. Positive number with 18 amount of digits. Positive number with 6 decimal places precision."
        },
        "WeightCharge": {
          "type": "number",
          "description": "The weight price including tax. Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "WeightChargeTax": {
          "type": "number",
          "description": "The tax for weight quote. Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "weightChargeTaxRate": {
          "type": "number",
          "description": "The number of transit days. Positive number with 6 amount of digits. Positive number with 3 decimal places precision."
        },
        "TotalTransitDays": {
          "type": "number",
          "description": "The number of transit days."
        },
        "PickupPostalLocAddDays": {
          "type": "number",
          "description": "The in-forwarding days. This is additional transit delays (in days) for shipment picked up from the mentioned city or postal area to arrival at the service area."
        },
        "DeliveryPostalLocAddDays": {
          "type": "number",
          "description": "The on-forwarding days. This is additional transit delays (in days) for shipment delivered to the mentioned city or postal area following arrival at the service area."
        },
        "DeliveryDate": {
          "type": "array",
          "minItems": 0,
          "items": {
            "$ref": "#/$defs/DeliveryDate"
          }
        },
        "DeliveryTime": {
          "type": "string",
          "description": "the commited delivery by time (actual delivery can occur before this time)"
        },
        "DeliveryTimeGMTOffset": {
          "type": "string",
          "description": "the GMT offset of the delivery time"
        },
        "DimensionalWeight": {
          "$ref": "#/$defs/Weight"
        },
        "WeightUnit": {
          "$ref": "#/$defs/WeightUnit"
        },
        "PickupDayOfWeekNum": {
          "type": "string",
          "description": "the pickup day in week number"
        },
        "DestinationDayOfWeekNum": {
          "type": "string",
          "description": "the destination day in week number"
        },
        "QuotedWeight": {
          "type": "number",
          "description": "Weight of piece or shipment Positive number with 3 decimal places precision. Positive number with 10 amount of digits.",
          "minimum": 0,
          "maximum": 999999,
          "multipleOf": 0.001
        },
        "QuotedWeightUOM": {
          "type": "string",
          "description": "WeightUOM",
          "minLength": 1,
          "maxLength": 3,
          "enum": [
            "KG",
            "Lbs"
          ]
        },
        "QtdShpExChrg": {
          "type": "array",
          "minItems": 0,
          "items": {
            "$ref": "#/$defs/ResponseQtdShpExChrgType"
          }
        },
        "PricingDate": {
          "type": "string",
          "description": "The date of the price",
          "format": "date"
        },
        "ShippingCharge": {
          "$ref": "#/$defs/Money"
        },
        "TotalTaxAmount": {
          "$ref": "#/$defs/Money"
        },
        "TotalDiscount": {
          "$ref": "#/$defs/Money"
        },
        "WeightChargeTaxDet": {
          "type": "array",
          "minItems": 0,
          "items": {
            "$ref": "#/$defs/WeightChargeTaxDetType"
          }
        },
        "PickupWindowEarliestTime": {
          "type": "string",
          "description": "The pickup window earliest time"
        },
        "PickupWindowLatestTime": {
          "type": "string",
          "description": "The pickup window latest time"
        },
        "BookingCutoffOffset": {
          "type": "string",
          "description": "The booking cutoff offset"
        },
        "PickupLeadTime": {
          "type": "string",
          "description": "The pickup lead time details"
        },
        "PickupCloseTime": {
          "type": "string",
          "description": "the pickup close time details"
        },
        "WeightChargeDisc": {
          "type": "array",
          "minItems": 0,
          "items": {
            "properties": {
              "DiscAmt": {
                "type": "number",
                "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
              },
              "BaseAmount": {
                "type": "number",
                "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
              },
              "CurrencyCode": {
                "type": "string",
                "description": "object",
                "minLength": 3,
                "maxLength": 3
              },
              "DiscType": {
                "type": "string",
                "description": "object",
                "minLength": 1,
                "maxLength": 1
              },
              "DiscPercentage": {
                "type": "number",
                "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
              }
            }
          }
        },
        "QtdShpExChrgDisc": {
          "type": "array",
          "minItems": 0,
          "items": {
            "properties": {
              "DiscAmt": {
                "type": "string",
                "description": "object",
                "minLength": 5,
                "maxLength": 5
              },
              "BaseAmt": {
                "type": "number",
                "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
              },
              "CurrencyCode": {
                "type": "string",
                "description": "object",
                "minLength": 3,
                "maxLength": 3
              },
              "CurrencyRoleTypeCode": {
                "type": "string",
                "description": "object",
                "minLength": 5,
                "maxLength": 5
              },
              "DiscPercentage": {
                "type": "number",
                "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
              }
            }
          }
        }
      },
      "required": [
        "OriginServiceArea",
        "DestinationServiceArea",
        "PickupWindowEarliestTime",
        "PickupWindowLatestTime",
        "BookingCutoffOffset"
      ]
    },
    "ResponseQtdShpExChrgType": {
      "type": "object",
      "properties": {
        "SpecialServiceType": {
          "type": "string",
          "description": "The global or network charge code of the service.",
          "maxLength": 6
        },
        "LocalSpecialServiceType": {
          "type": "string",
          "description": "The local charge code of the service.",
          "maxLength": 3
        },
        "GlobalServiceName": {
          "type": "string",
          "description": "The global service name of the service."
        },
        "LocalServiceTypeName": {
          "type": "string",
          "description": "The local service name of the service."
        },
        "SOfferedCustAgreement": {
          "type": "string",
          "description": "Indicates that the service or solution only can be offered to a customer agreement that are not default to a billing entity."
        },
        "ChargeCodeType": {
          "type": "string",
          "description": "Indicates special service charge code type of the service."
        },
        "InsPrmRateInPercentage": {
          "type": "number",
          "description": "object Positive number with 8 amount of digits. Positive number with 4 decimal places precision."
        },
        "CurrencyCode": {
          "type": "string",
          "description": "object",
          "minLength": 3,
          "maxLength": 3
        },
        "ChargeValue": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "ChargeTaxAmount": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "ChargeTaxRate": {
          "type": "number",
          "description": "object Positive number with 6 amount of digits. Positive number with 3 decimal places precision."
        },
        "ChargeTaxAmountDet": {
          "type": "array",
          "minItems": 0,
          "items": {
            "$ref": "#/$defs/ChargeTaxAmountDetType"
          }
        },
        "QtdSExtrChrgInAdCur": {
          "type": "array",
          "minItems": 0,
          "items": {
            "$ref": "#/$defs/QtdSExtrChrgInAdCurType"
          }
        }
      }
    },
    "SBTPType": {
      "type": "object",
      "properties": {
        "Prod": {
          "$ref": "#/$defs/ProdType"
        }
      }
    },
    "SiteID": {
      "type": "string",
      "description": "Site ID used for verifying the sender",
      "minLength": 6,
      "maxLength": 20
    },
    "SrvType": {
      "type": "array",
      "minItems": 0,
      "items": {
        "properties": {
          "GlobalProductCode": {
            "type": "string",
            "description": "object"
          },
          "MrkSrv": {
            "type": "array",
            "minItems": 0,
            "items": {
              "$ref": "#/$defs/MrkSrvType"
            }
          },
          "SBTP": {
            "$ref": "#/$defs/SBTPType"
          }
        }
      },
      "required": [
        "GlobalProductCode"
      ]
    },
    "Weight": {
      "type": "number",
      "description": "Weight of piece or shipment",
      "minLength": 0,
      "maxLength": 999999999999999,
      "multipleOf": 0.001
    },
    "WeightChargeTaxDetType": {
      "type": "object",
      "properties": {
        "TaxTypeRate": {
          "type": "number",
          "description": "object Positive number with 8 amount of digits. Positive number with 6 decimal places precision."
        },
        "TaxTypeCode": {
          "type": "string",
          "description": "object",
          "maxLength": 6
        },
        "WeightChargeTax": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        },
        "BaseAmt": {
          "type": "number",
          "description": "object Positive number with 18 amount of digits. Positive number with 3 decimal places precision."
        }
      }
    },
    "WeightUnit": {
      "type": "string",
      "description": "Unit of weight measurement (K:KiloGram)",
      "minLength": 0,
      "maxLength": 1,
      "enum": [
        "K",
        "L"
      ]
    }
  }
}