{
	"info": {
		"_postman_id": "3645125e-5be8-4bec-9d73-9193e4f8b9a3",
		"name": "DHL  Freight Price Quote - SANDBOX - 2025/R02",
		"description": "Name: Postman Collection of DHL Freight Price Quote API\n\nTarget: DHL API Developer Portal SANDBOX\n\nClassification: For Public Use if the customer has valid business contract with DHL Freight\n\nPublished: March 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 Price Quote",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status : Success!\", function () {\r",
							"    pm.response.to.have.status(200);\r",
							"});\r",
							"(\"Status : Bad Request or JSON Syntax Error!\", function () {\r",
							"    pm.response.to.have.status(400);\r",
							"});\r",
							"(\"Status : Unauthorized Request Usage!\", function () {\r",
							"    pm.response.to.have.status(401);\r",
							"});\r",
							"(\"Status : JSON Syntax or Server Side Error!\", function () {\r",
							"    pm.response.to.have.status(500);\r",
							"});"
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "oauth2",
					"oauth2": [
						{
							"key": "accessTokenUrl",
							"value": "https://api-sandbox.dhl.com/auth/v1/token?response_type=access_token&grant_type=client_credentials",
							"type": "string"
						},
						{
							"key": "clientSecret",
							"value": "your_APP_key",
							"type": "string"
						},
						{
							"key": "clientId",
							"value": "your_APP_secret",
							"type": "string"
						},
						{
							"key": "tokenName",
							"value": "BearerKey",
							"type": "string"
						},
						{
							"key": "grant_type",
							"value": "client_credentials",
							"type": "string"
						},
						{
							"key": "authUrl",
							"value": "https://api-sandbox.dhl.com/auth/v1/token?response_type=access_token&grant_type=client_credentials",
							"type": "string"
						},
						{
							"key": "addTokenTo",
							"value": "header",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"eid\": {\r\n        \"userName\": \"PQ-USERNAME\",\r\n        \"password\": \"PQ-PASSWORD\"\r\n    },\r\n    \"shipment\": {\r\n        \"productCode\": \"ECI\",\r\n        \"totalNumberOfPieces\": 2,\r\n        \"totalWeight\": 1000,\r\n        \"totalVolume\": 2.4,\r\n        \"totalLoadingMeters\": 0.8,\r\n        \"totalPalletPlaces\": 2,\r\n        \"goodsValue\": 500,\r\n        \"goodsValueCurrency\": \"EUR\",\r\n        \"parties\": [\r\n            {\r\n                \"id\": \"20110531.NL0001\",\r\n                \"type\": \"Consignor\",\r\n                \"address\": {\r\n                    \"cityName\": \"DORP\",\r\n                    \"postalCode\": \"6658\",\r\n                    \"countryCode\": \"NL\"\r\n                }\r\n            },\r\n            {\r\n                \"id\": \"\",\r\n                \"type\": \"Consignee\",\r\n                \"address\": {\r\n                    \"cityName\": \"DORF\",\r\n                    \"postalCode\": \"2030\",\r\n                    \"countryCode\": \"AT\"\r\n                }\r\n            }\r\n        ],\r\n        \"payerCode\": {\r\n            \"code\": \"DAP\",\r\n            \"location\": \"\"\r\n        },\r\n        \"pieces\": [\r\n            {\r\n                \"packageType\": \"PAL\",\r\n                \"numberOfPieces\": 2,\r\n                \"weight\": 500,\r\n                \"volume\": 1.2,\r\n                \"loadingMeters\": 0.4,\r\n                \"palletPlaces\": 1,\r\n                \"width\": 100,\r\n                \"height\": 20,\r\n                \"length\": 120,\r\n                \"stackable\": false\r\n            }\r\n        ],\r\n        \"additionalServices\": {\r\n            \"priorityServiceP10\": false,\r\n            \"priorityServiceP12\": false,\r\n            \"cashOnDelivery\": {\r\n                \"amount\": 750,\r\n                \"currency\": \"EUR\"\r\n            },\r\n            \"thermoCold\": {},\r\n            \"insurance\": {\r\n                \"currency\": \"EUR\",\r\n                \"value\": 1200\r\n            },\r\n            \"fixedDeliveryDate\": {\r\n                \"date\": \"2024-11-06\"\r\n            },\r\n            \"timeSlotBookingPickup\": false,\r\n            \"timeSlotBookingDelivery\": false,\r\n            \"preAdvice\": true,\r\n            \"after12Delivery\": false\r\n        }\r\n    },\r\n    \"ownSurCharge\": {\r\n        \"percentage\": 0,\r\n        \"value\": 0\r\n    }\r\n}\r\n\r\n[\r\n    {\r\n        \"description\": \"Enligt avtal\",\r\n        \"descriptionEng\": \"Agreement price\",\r\n        \"id\": \"AGR\",\r\n        \"sortOrder\": -3\r\n    },\r\n    {\r\n        \"description\": \"VRACHTKOSTEN\",\r\n        \"descriptionEng\": \"Volumetric weight\",\r\n        \"id\": \"ChargedWeight\",\r\n        \"sortOrder\": -2,\r\n        \"unit\": \"kg\",\r\n        \"value\": \"1400.00\"\r\n    },\r\n    {\r\n        \"description\": \"VRACHTKOSTEN\",\r\n        \"descriptionEng\": \"Freight cost\",\r\n        \"id\": \"FreightCost\",\r\n        \"sortOrder\": -1,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"340.53\"\r\n    },\r\n    {\r\n        \"description\": \"CASH BIJ LEVERING (COD)\",\r\n        \"descriptionEng\": \"COD FEE\",\r\n        \"id\": \"406\",\r\n        \"sortOrder\": 0,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"0.00\"\r\n    },\r\n    {\r\n        \"description\": \"DIESEL TOESLAG\",\r\n        \"descriptionEng\": \"FUEL SURCHARGE\",\r\n        \"id\": \"FuelSurcharge\",\r\n        \"sortOrder\": 10,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"37.46\"\r\n    },\r\n    {\r\n        \"description\": \"VOORAANMELDING LEVERING\",\r\n        \"descriptionEng\": \"PRE ADVICE DELIVERY\",\r\n        \"id\": \"preAdvice\",\r\n        \"sortOrder\": 20,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"3.33\"\r\n    },\r\n    {\r\n        \"description\": \"TIME SLOT BOOKING - DELIVERY\",\r\n        \"descriptionEng\": \"TIME SLOT BOOKING - DELIVERY\",\r\n        \"id\": \"timeDefiniteUnloading\",\r\n        \"sortOrder\": 20,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"11.11\"\r\n    },\r\n    {\r\n        \"description\": \"INSURANCE\",\r\n        \"descriptionEng\": \"INSURANCE\",\r\n        \"id\": \"insurance\",\r\n        \"sortOrder\": 20,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"18.00\"\r\n    },\r\n    {\r\n        \"description\": \"Total\",\r\n        \"descriptionEng\": \"Total price\",\r\n        \"id\": \"TotalPrice\",\r\n        \"sortOrder\": 100,\r\n        \"unit\": \"EUR\",\r\n        \"value\": \"410.43\"\r\n    }\r\n]",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api-sandbox.dhl.com/freight/info/pricequote/v1/pricequote/quoteforprice",
					"protocol": "https",
					"host": [
						"api-sandbox",
						"dhl",
						"com"
					],
					"path": [
						"freight",
						"info",
						"pricequote",
						"v1",
						"pricequote",
						"quoteforprice"
					]
				}
			},
			"response": [
				{
					"name": "DHL Freight Price Quote",
					"originalRequest": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n   \"eid\":{\r\n      \"userName\":\"PQ-USERNAME\",\r\n      \"password\":\"PQ-PASSWORD\"\r\n   },\r\n   \"shipment\":{\r\n      \"productCode\":\"ECI\",\r\n      \"totalNumberOfPieces\":2,\r\n      \"totalWeight\":1000,\r\n      \"totalVolume\":2.4,\r\n      \"totalLoadingMeters\":0.8,\r\n      \"totalPalletPlaces\":2,\r\n      \"goodsValue\":500,\r\n      \"goodsValueCurrency\":\"EUR\",\r\n      \"parties\":[\r\n         {\r\n            \"id\":\"20110531.NL0001\",\r\n            \"type\":\"Consignor\",\r\n            \"address\":{\r\n               \"cityName\":\"DORP\",\r\n               \"postalCode\":\"6658\",\r\n               \"countryCode\":\"NL\"\r\n            }\r\n         },\r\n         {\r\n            \"id\":\"\",\r\n            \"type\":\"Consignee\",\r\n            \"address\":{\r\n               \"cityName\":\"DORF\",\r\n               \"postalCode\":\"2030\",\r\n               \"countryCode\":\"AT\"\r\n            }\r\n         }\r\n      ],\r\n      \"payerCode\":{\r\n         \"code\":\"DAP\",\r\n         \"location\":\"\"\r\n      },\r\n      \"pieces\":[\r\n         {\r\n            \"packageType\":\"PAL\",\r\n            \"numberOfPieces\":2,\r\n            \"weight\":500,\r\n            \"volume\":1.2,\r\n            \"loadingMeters\":0.4,\r\n            \"palletPlaces\":1,\r\n            \"width\":100,\r\n            \"height\":20,\r\n            \"length\":120,\r\n            \"stackable\":false\r\n         }\r\n      ],\r\n      \"additionalServices\":{\r\n         \"priorityServiceP10\":false,\r\n         \"priorityServiceP12\":false,\r\n         \"cashOnDelivery\":{\r\n            \"amount\":750,\r\n            \"currency\":\"EUR\"\r\n         },\r\n         \"thermoCold\":{\r\n            \r\n         },\r\n         \"insurance\":{\r\n            \"currency\":\"EUR\",\r\n            \"value\":1200\r\n         },\r\n         \"fixedDeliveryDate\":{\r\n            \"date\":\"2024-11-06\"\r\n         },\r\n         \"timeDefiniteLoading\":{\r\n            \"dateTime\":\"2024-11-06\"\r\n         },\r\n         \"timeDefiniteUnloading\":{\r\n            \"dateTime\":\"2024-11-06\"\r\n         },\r\n         \"preAdvice\":true,\r\n         \"after12Delivery\":false\r\n      }\r\n   },\r\n   \"ownSurCharge\":{\r\n      \"percentage\":0,\r\n      \"value\":0\r\n   }\r\n}\r\n\r\n[\r\n   {\r\n      \"description\":\"Enligt avtal\",\r\n      \"descriptionEng\":\"Agreement price\",\r\n      \"id\":\"AGR\",\r\n      \"sortOrder\":-3\r\n   },\r\n   {\r\n      \"description\":\"VRACHTKOSTEN\",\r\n      \"descriptionEng\":\"Volumetric weight\",\r\n      \"id\":\"ChargedWeight\",\r\n      \"sortOrder\":-2,\r\n      \"unit\":\"kg\",\r\n      \"value\":\"1400.00\"\r\n   },\r\n   {\r\n      \"description\":\"VRACHTKOSTEN\",\r\n      \"descriptionEng\":\"Freight cost\",\r\n      \"id\":\"FreightCost\",\r\n      \"sortOrder\":-1,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"340.53\"\r\n   },\r\n   {\r\n      \"description\":\"CASH BIJ LEVERING (COD)\",\r\n      \"descriptionEng\":\"COD FEE\",\r\n      \"id\":\"406\",\r\n      \"sortOrder\":0,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"0.00\"\r\n   },\r\n   {\r\n      \"description\":\"DIESEL TOESLAG\",\r\n      \"descriptionEng\":\"FUEL SURCHARGE\",\r\n      \"id\":\"FuelSurcharge\",\r\n      \"sortOrder\":10,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"37.46\"\r\n   },\r\n   {\r\n      \"description\":\"VOORAANMELDING LEVERING\",\r\n      \"descriptionEng\":\"PRE ADVICE DELIVERY\",\r\n      \"id\":\"preAdvice\",\r\n      \"sortOrder\":20,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"3.33\"\r\n   },\r\n   {\r\n      \"description\":\"TIME SLOT BOOKING - DELIVERY\",\r\n      \"descriptionEng\":\"TIME SLOT BOOKING - DELIVERY\",\r\n      \"id\":\"timeDefiniteUnloading\",\r\n      \"sortOrder\":20,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"11.11\"\r\n   },\r\n   {\r\n      \"description\":\"INSURANCE\",\r\n      \"descriptionEng\":\"INSURANCE\",\r\n      \"id\":\"insurance\",\r\n      \"sortOrder\":20,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"18.00\"\r\n   },\r\n   {\r\n      \"description\":\"Total\",\r\n      \"descriptionEng\":\"Total price\",\r\n      \"id\":\"TotalPrice\",\r\n      \"sortOrder\":100,\r\n      \"unit\":\"EUR\",\r\n      \"value\":\"410.43\"\r\n   }\r\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-sandbox.dhl.com/freight/info/pricequote/v1/pricequote/quoteforprice",
							"protocol": "https",
							"host": [
								"api-sandbox",
								"dhl",
								"com"
							],
							"path": [
								"freight",
								"info",
								"pricequote",
								"v1",
								"pricequote",
								"quoteforprice"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Date",
							"value": "Sat, 04 Jan 2025 16:10:12 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json; charset=utf-8"
						},
						{
							"key": "Content-Length",
							"value": "1592"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Access-Control-Allow-Origin",
							"value": "https://developer.dhl.com/"
						},
						{
							"key": "Vary",
							"value": "Origin"
						},
						{
							"key": "Access-Control-Allow-Methods",
							"value": "GET,OPTIONS"
						},
						{
							"key": "Access-Control-Max-Age",
							"value": "7200"
						},
						{
							"key": "Access-Control-Allow-Headers",
							"value": "Accept-Encoding,Accept-Language,Accept,Authorization,Cache-Control,Content-Language,Content-Length,Content-Type,Correlation-Id,DHL-API-Key,Expires,Host,Last-Modified,Origin,Pragma,Referer,User-Agent,X-Forwarded-For,X-Forwarded-Port,X-Forwarded-Proto,X-Requested-With"
						},
						{
							"key": "Access-Control-Expose-Headers",
							"value": "Cache-Control,Content-Encoding,Content-Language,Content-Length,Content-Type,Correlation-Id,Expires,Last-Modified,Pragma,Referrer-Policy,Strict-Transport-Security,Vary,X-Content-Type-Options,X-DNS-Prefetch-Control,X-Frame-Options,X-XSS-Protection"
						},
						{
							"key": "Strict-Transport-Security",
							"value": "max-age=63072000; includeSubDomains; preload"
						},
						{
							"key": "Correlation-Id",
							"value": "e9965a63-4ba9-44e4-9607-1bf0e414de35"
						},
						{
							"key": "Expires",
							"value": "Sun, 19 Nov 1978 05:00:00 GMT"
						},
						{
							"key": "Cache-Control",
							"value": "must-revalidate, no-cache, private"
						},
						{
							"key": "X-XSS-Protection",
							"value": "1; mode=block"
						},
						{
							"key": "Content-Security-Policy",
							"value": "default-src 'self'; script-src 'self'"
						},
						{
							"key": "X-Content-Type-Options",
							"value": "nosniff"
						}
					],
					"cookie": [],
					"body": "[\n    {\n        \"description\": \"Enligt avtal\",\n        \"descriptionEng\": \"Agreement price\",\n        \"id\": \"AGR\",\n        \"sortOrder\": -3\n    },\n    {\n        \"description\": \"VRACHTKOSTEN\",\n        \"descriptionEng\": \"Volumetric weight\",\n        \"id\": \"ChargedWeight\",\n        \"sortOrder\": -2,\n        \"unit\": \"kg\",\n        \"value\": \"1000.00\"\n    },\n    {\n        \"description\": \"VRACHTKOSTEN\",\n        \"descriptionEng\": \"Freight cost\",\n        \"id\": \"FreightCost\",\n        \"sortOrder\": -1,\n        \"unit\": \"EUR\",\n        \"value\": \"555.55\"\n    },\n    {\n        \"description\": \"CASH BIJ LEVERING (COD)\",\n        \"descriptionEng\": \"COD FEE\",\n        \"id\": \"406\",\n        \"sortOrder\": 0,\n        \"unit\": \"EUR\",\n        \"value\": \"0.00\"\n    },\n    {\n        \"description\": \"DIESEL TOESLAG\",\n        \"descriptionEng\": \"FUEL SURCHARGE\",\n        \"id\": \"FuelSurcharge\",\n        \"sortOrder\": 10,\n        \"unit\": \"EUR\",\n        \"value\": \"61.12\"\n    },\n    {\n        \"description\": \"VOORAANMELDING LEVERING\",\n        \"descriptionEng\": \"PRE ADVICE DELIVERY\",\n        \"id\": \"preAdvice\",\n        \"sortOrder\": 20,\n        \"unit\": \"EUR\",\n        \"value\": \"3.33\"\n    },\n    {\n        \"description\": \"TIME SLOT BOOKING - DELIVERY\",\n        \"descriptionEng\": \"TIME SLOT BOOKING - DELIVERY\",\n        \"id\": \"timeDefiniteUnloading\",\n        \"sortOrder\": 20,\n        \"unit\": \"EUR\",\n        \"value\": \"11.11\"\n    },\n    {\n        \"description\": \"INSURANCE\",\n        \"descriptionEng\": \"INSURANCE\",\n        \"id\": \"insurance\",\n        \"sortOrder\": 20,\n        \"unit\": \"EUR\",\n        \"value\": \"18.00\"\n    },\n    {\n        \"description\": \"Total\",\n        \"descriptionEng\": \"Total price\",\n        \"id\": \"TotalPrice\",\n        \"sortOrder\": 100,\n        \"unit\": \"EUR\",\n        \"value\": \"649.11\"\n    }\n]"
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}