{
  "info": {
    "name": "DHL Freight Products - SANDBOX - 2025/R03",
    "description": "Name: Postman Collection of DHL Freight Products API\n\nTarget: DHL Developer Portal SANDBOX\n\nClassification: For Public Use\n\nPublished: May 2025\n\nSupport: [api4freight@dhl.com](https://mailto:api4freight@dhl.com) (Your DHL Freight API Farm Team)\n\nNote: After strict tests on SANDBOX, cURL should be changed to PRODUCTION by the Customer",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "DHL Freight Products SANDBOX {Products}",
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "",
            "value": "",
            "disabled": true,
            "type": "default"
          }
        ],
        "auth": {
          "type": "noauth"
        },
        "description": "",
        "url": {
          "raw": "https://api-sandbox.dhl.com/freight/info/products/services/v1/products",
          "protocol": "https",
          "host": [
            "api-sandbox",
            "dhl",
            "com"
          ],
          "path": [
            "freight",
            "info",
            "products",
            "services",
            "v1",
            "products"
          ],
          "query": [],
          "variable": []
        },
        "body": {
          "mode": "raw",
          "raw": "",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              "// Tests",
              "pm.test(\"Status : #200: Success!\", function () {",
              "    pm.expect(pm.response.code).to.equal(200);",
              "});",
              "pm.test(\"Status : #400: Bad Request! Please check your JSON\", function () {",
              "    pm.expect(pm.response.code).to.equal(400);",
              "});",
              "pm.test(\"Status : #401: Unauthorized! Please authorize first\", function () {",
              "    pm.expect(pm.response.code).to.equal(401);",
              "});",
              "pm.test(\"Status : #500: Server or JSON Syntax Error! Please check them all\", function () {",
              "    pm.expect(pm.response.code).to.equal(500);",
              "});",
              "pm.test(\"Response time is less than 9 seconds\", () => {",
              "  pm.expect(pm.response.responseTime).to.be.below(9000);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "DHL Freight Products SANDBOX {ProductCode}",
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Product_Code",
            "value": "ECI",
            "disabled": true,
            "type": "default"
          }
        ],
        "auth": {
          "type": "noauth"
        },
        "description": "",
        "url": {
          "raw": "https://api-sandbox.dhl.com/freight/info/products/services/v1/products/TCI?fromCountryCode=BE&toCountryCode=BE",
          "protocol": "https",
          "host": [
            "api-sandbox",
            "dhl",
            "com"
          ],
          "path": [
            "freight",
            "info",
            "products",
            "services",
            "v1",
            "products",
            "TCI"
          ],
          "query": [
            {
              "key": "fromCountryCode",
              "value": "BE"
            },
            {
              "key": "toCountryCode",
              "value": "BE"
            }
          ],
          "variable": []
        },
        "body": {
          "mode": "raw",
          "raw": "",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              "// Tests",
              "pm.test(\"Status : #200: Success!\", function () {",
              "    pm.expect(pm.response.code).to.equal(200);",
              "});",
              "pm.test(\"Status : #400: Bad Request! Please check your JSON\", function () {",
              "    pm.expect(pm.response.code).to.equal(400);",
              "});",
              "pm.test(\"Status : #401: Unauthorized! Please authorize first\", function () {",
              "    pm.expect(pm.response.code).to.equal(401);",
              "});",
              "pm.test(\"Status : #500: Server or JSON Syntax Error! Please check them all\", function () {",
              "    pm.expect(pm.response.code).to.equal(500);",
              "});",
              "pm.test(\"Response time is less than 9 seconds\", () => {",
              "  pm.expect(pm.response.responseTime).to.be.below(9000);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "DHL Freight Products SANDBOX {PackageTypes/ProductCode}",
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Product_Code",
            "value": "ECI",
            "disabled": true,
            "type": "default"
          }
        ],
        "auth": {
          "type": "noauth"
        },
        "description": "",
        "url": {
          "raw": "https://api-sandbox.dhl.com/freight/info/products/services/v1/packagetypes/?fromCountryCode=ES&toCountryCode=SE&productCode=ERI",
          "protocol": "https",
          "host": [
            "api-sandbox",
            "dhl",
            "com"
          ],
          "path": [
            "freight",
            "info",
            "products",
            "services",
            "v1",
            "packagetypes",
            ""
          ],
          "query": [
            {
              "key": "fromCountryCode",
              "value": "ES"
            },
            {
              "key": "toCountryCode",
              "value": "SE"
            },
            {
              "key": "productCode",
              "value": "ERI"
            }
          ],
          "variable": []
        },
        "body": {
          "mode": "raw",
          "raw": "",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              "// Tests",
              "pm.test(\"Status : #200: Success!\", function () {",
              "    pm.expect(pm.response.code).to.equal(200);",
              "});",
              "pm.test(\"Status : #400: Bad Request! Please check your JSON\", function () {",
              "    pm.expect(pm.response.code).to.equal(400);",
              "});",
              "pm.test(\"Status : #401: Unauthorized! Please authorize first\", function () {",
              "    pm.expect(pm.response.code).to.equal(401);",
              "});",
              "pm.test(\"Status : #500: Server or JSON Syntax Error! Please check them all\", function () {",
              "    pm.expect(pm.response.code).to.equal(500);",
              "});",
              "pm.test(\"Response time is less than 9 seconds\", () => {",
              "  pm.expect(pm.response.responseTime).to.be.below(9000);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "DHL Freight Products SANDBOX {ChargeableWeight/CalculationResults}",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Product_Code",
            "value": "ECI",
            "disabled": true,
            "type": "default"
          }
        ],
        "auth": {
          "type": "noauth"
        },
        "description": "",
        "url": {
          "raw": "https://api-sandbox.dhl.com/freight/info/products/services/v1/chargeableweight/calculationresults",
          "protocol": "https",
          "host": [
            "api-sandbox",
            "dhl",
            "com"
          ],
          "path": [
            "freight",
            "info",
            "products",
            "services",
            "v1",
            "chargeableweight",
            "calculationresults"
          ],
          "query": [],
          "variable": []
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"productCode\": \"ERI\",\n  \"totalNumberOfPieces\": 2,\n  \"totalWeight\": 1100,\n  \"totalVolume\": 20,\n  \"totalLoadingMeters\": 0,\n  \"totalPalletPlaces\": 2,\n  \"payerCode\": {\n    \"code\": \"DAP\"\n  },\n  \"parties\": [\n    {\n      \"type\": \"Consignor\",\n      \"address\": {\n        \"postalCode\": \"20159\",\n        \"countryCode\": \"ES\"\n      }\n    },\n    {  \"type\": \"Consignee\",\n      \"address\": {\n        \"postalCode\": \"37146\",\n        \"countryCode\": \"SE\"\n      }\n    }\n  ],\n  \"pieces\": [\n    {\n      \"numberOfPieces\": 0,\n      \"weight\": 0,\n      \"volume\": 0,\n      \"loadingMeters\": 0,\n      \"palletPlaces\": 0,\n      \"width\": 0,\n      \"height\": 0,\n      \"length\": 0,\n      \"stackable\": true\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              "// Tests",
              "pm.test(\"Status : #200: Success!\", function () {",
              "    pm.expect(pm.response.code).to.equal(200);",
              "});",
              "pm.test(\"Status : #400: Bad Request! Please check your JSON\", function () {",
              "    pm.expect(pm.response.code).to.equal(400);",
              "});",
              "pm.test(\"Status : #401: Unauthorized! Please authorize first\", function () {",
              "    pm.expect(pm.response.code).to.equal(401);",
              "});",
              "pm.test(\"Status : #500: Server or JSON Syntax Error! Please check them all\", function () {",
              "    pm.expect(pm.response.code).to.equal(500);",
              "});",
              "pm.test(\"Response time is less than 9 seconds\", () => {",
              "  pm.expect(pm.response.responseTime).to.be.below(9000);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "DHL Freight Products SANDBOX {ProductMatches}",
      "request": {
        "method": "POST",
        "header": [],
        "auth": {
          "type": "noauth"
        },
        "description": "",
        "url": {
          "raw": "https://api-sandbox.dhl.com/freight/info/products/services/v1/productmatches",
          "protocol": "https",
          "host": [
            "api-sandbox",
            "dhl",
            "com"
          ],
          "path": [
            "freight",
            "info",
            "products",
            "services",
            "v1",
            "productmatches"
          ],
          "query": [],
          "variable": []
        },
        "body": {
          "mode": "raw",
          "raw": "/* DHL Freight Products API Postman Collection | Sprint 2025/R03 @ May'25 */\n{\n  \"marketAvailability\": \"B2B\",\n  \"totalNumberOfPieces\": 2,\n  \"totalWeight\": 100,\n  \"totalVolume\": 2,\n  \"totalLoadingMeters\": 1,\n  \"totalPalletPlaces\": 2,\n  \"payerCode\": {\n    \"code\": \"DDP\"\n  },\n  \"parties\": [\n    {\n      \"type\": \"Consignor\",\n      \"address\": {\n        \"postalCode\": \"53175\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    {\n      \"type\": \"Consignee\",\n      \"address\": {\n        \"postalCode\": \"69000\",\n        \"countryCode\": \"FR\"\n      }\n    }\n  ],\n  \"pieces\": [\n    {\n      \"packageType\": \"PAL\",\n      \"numberOfPieces\": 2,\n      \"weight\": 300,\n      \"volume\": 1,\n      \"loadingMeters\": 1,\n      \"palletPlaces\": 2,\n      \"width\": 80,\n      \"height\": 80,\n      \"length\": 80,\n      \"stackable\": true\n    }\n  ]\n}\n/* DHL Freight API Farm Team | api4freight@dhl.com */",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              "// Tests",
              "pm.test(\"Status : #200: Success!\", function () {",
              "    pm.expect(pm.response.code).to.equal(200);",
              "});",
              "pm.test(\"Status : #400: Bad Request! Please check your JSON\", function () {",
              "    pm.expect(pm.response.code).to.equal(400);",
              "});",
              "pm.test(\"Status : #401: Unauthorized! Please authorize first\", function () {",
              "    pm.expect(pm.response.code).to.equal(401);",
              "});",
              "pm.test(\"Status : #500: Server or JSON Syntax Error! Please check them all\", function () {",
              "    pm.expect(pm.response.code).to.equal(500);",
              "});",
              "pm.test(\"Response time is less than 9 seconds\", () => {",
              "  pm.expect(pm.response.responseTime).to.be.below(9000);",
              "});"
            ]
          }
        }
      ]
    }
  ],
  "variable": []
}