{
	"info": {
		"_postman_id": "0d3f34b5-64f1-4ddc-a379-e7eab4742649",
		"name": "DHL Freight Time Table - SANDBOX - 2024/R07",
		"description": "Name: Postman Collection of DHL Freight Time Table API\n\nTarget: DHL Developer Portal SANDBOX\n\nClassification: For Public Use\n\nPublished: October 2024\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 Time Table SANDBOX",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status : #200: Success!\", function () {",
							"    pm.response.to.have.status(200);",
							"});",
							"pm.test(\"Status : #400: Bad Request! Please check your JSON\", function () {",
							"    pm.response.to.have.status(400);",
							"});",
							"pm.test(\"Status : #401: Unauthorized! Please authorize first\", function () {",
							"    pm.response.to.have.status(401);",
							"});",
							"pm.test(\"Status : #500: Server or JSON Syntax Error! Please check them all\", function () {",
							"    pm.response.to.have.status(500);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "oauth2",
					"oauth2": [
						{
							"key": "clientSecret",
							"value": "your_API_KEY_should_be_copied_here",
							"type": "string"
						},
						{
							"key": "clientId",
							"value": "your_API_SECRET_should_be_copied_here",
							"type": "string"
						},
						{
							"key": "accessTokenUrl",
							"value": "https://api-sandbox.dhl.com/auth/v1/token?response_type=access_token&grant_type=client_credentials",
							"type": "string"
						},
						{
							"key": "grant_type",
							"value": "client_credentials",
							"type": "string"
						},
						{
							"key": "client_authentication",
							"value": "header",
							"type": "string"
						},
						{
							"key": "authUrl",
							"value": "https://api-sandbox.dhl.com/auth/v1/token?response_type=access_token&grant_type=client_credentials",
							"type": "string"
						},
						{
							"key": "tokenName",
							"value": "BearerKey",
							"type": "string"
						},
						{
							"key": "addTokenTo",
							"value": "header",
							"type": "string"
						},
						{
							"key": "tokenRequestParams",
							"value": [],
							"type": "any"
						},
						{
							"key": "redirect_uri",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"Parties\": [\r\n        {\r\n            \"Address\": {\r\n                \"CountryCode\": \"DE\",\r\n                \"PostalCode\": \"53175\"\r\n            },\r\n            \"Type\": \"Consignor\"\r\n        },\r\n        {\r\n            \"Address\": {\r\n                \"CountryCode\": \"FR\",\r\n                \"PostalCode\": \"69000\"\r\n            },\r\n            \"Type\": \"Consignee\"\r\n        }\r\n    ],\r\n    \"PickupDate\": \"2025-12-04\",\r\n    \"productCode\": \"ECI\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api-sandbox.dhl.com/freight/info/time-table/v1/timetable/gettimetable",
					"protocol": "https",
					"host": [
						"api-sandbox",
						"dhl",
						"com"
					],
					"path": [
						"freight",
						"info",
						"time-table",
						"v1",
						"timetable",
						"gettimetable"
					]
				}
			},
			"response": [
				{
					"name": "DHL Freight Time Table SANDBOX",
					"originalRequest": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"Parties\": [\r\n        {\r\n            \"Address\": {\r\n                \"CountryCode\": \"TR\",\r\n                \"PostalCode\": \"06100\"\r\n            },\r\n            \"Type\": \"Consignor\"\r\n        },\r\n        {\r\n            \"Address\": {\r\n                \"CountryCode\": \"FR\",\r\n                \"PostalCode\": \"69000\"\r\n            },\r\n            \"Type\": \"Consignee\"\r\n        }\r\n    ],\r\n    \"PickupDate\": \"2025-12-04\",\r\n    \"productCode\": \"ECI\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-sandbox.dhl.com/freight/info/time-table/v1/timetable/gettimetable",
							"protocol": "https",
							"host": [
								"api-sandbox",
								"dhl",
								"com"
							],
							"path": [
								"freight",
								"info",
								"time-table",
								"v1",
								"timetable",
								"gettimetable"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Date",
							"value": "Fri, 11 Oct 2024 12:37:26 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json; charset=utf-8"
						},
						{
							"key": "Content-Length",
							"value": "472"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "client-key",
							"value": "9D7723F8-9F00-4DB2-9CFA-62AA3863D699"
						},
						{
							"key": "apifarm-session-id",
							"value": "4d5545a0-ed40-4779-9983-ce089c7cefcb"
						},
						{
							"key": "Set-Cookie",
							"value": "BIGipServerpl_dev-apigee.freight-logistics.dhl.com_8443=!fY6SCuKDHi7goCrVVzycNtTZ2xLMfWlJyWwZGZ10it64bm4AoefssWyDrDcbtNdfOZuTLVRKWAEgvg==; path=/; Httponly; Secure"
						},
						{
							"key": "Set-Cookie",
							"value": "TS01197d15=012d4839b3ea0ff113ef4b185b8ff6570d6d79a18259da1952ddcf022e649c7157e1c262fcbb89fbf66d386c25819580bde1eee456d25bc58f9a03e5f4851b10f1e5a4a333; Path=/; Secure; HTTPOnly"
						},
						{
							"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": "d11310a3-b195-4097-9e8f-9817f040a480"
						},
						{
							"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        \"product\": \"ECE\",\n        \"productCode\": \"ECI\",\n        \"priorityServiceP10\": false,\n        \"priorityServiceP12\": false,\n        \"sameDayPickup12\": false,\n        \"sameDayPickup15\": false,\n        \"pickupDate\": \"2025-12-05T00:00:00\",\n        \"plannedDeliveryDate\": \"2025-12-16T00:00:00\",\n        \"fixedDeliveryDates\": [\n            \"2025-12-17T00:00:00\",\n            \"2025-12-18T00:00:00\",\n            \"2025-12-19T00:00:00\",\n            \"2025-12-22T00:00:00\",\n            \"2025-12-26T00:00:00\"\n        ]\n    }\n]"
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}