{
	"info": {
		"_postman_id": "b5fe6049-d686-4ea1-b736-c1e8f0a6117d",
		"name": "DHL Shipment Tracking Push Postman Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "25285703"
	},
	"item": [
		{
			"name": "create subscription (by Account)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "DHL-API-Key",
						"value": "ADD HERE YOUR API KEY",
						"type": "text",
						"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"ADD HERE YOUR WEBHOOK SYSTEM URL\"\r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Account\",\r\n  \"service\": \"ADD HERE THE SERVICE\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"accountID\": \"ADD HERE YOUR ACCOUNT ID\"\r\n}\r\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
					"protocol": "https",
					"host": [
						"api-eu",
						"dhl",
						"com"
					],
					"path": [
						"tracking",
						"push",
						"v1",
						"subscription"
					]
				}
			},
			"response": [
				{
					"name": "Account ID Subscription (Example)",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "DHL-API-Key",
								"value": "ADD HERE YOUR API KEY",
								"type": "text",
								"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"https://examplewebhook.com\"\r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Account\",\r\n  \"service\": \"ecommerce-europe\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"accountID\": \"12345678\"\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
							"protocol": "https",
							"host": [
								"api-eu",
								"dhl",
								"com"
							],
							"path": [
								"tracking",
								"push",
								"v1",
								"subscription"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "Account ID Subscription with Authentication (Example)",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "DHL-API-Key",
								"value": "ADD HERE YOUR API KEY",
								"type": "text",
								"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"https://examplewebhook.com\",\r\n    \"authentication\": {\r\n      \"type\": \"ApiKeyAuthentication\",\r\n      \"header\": \"example-secure-header\",\r\n      \"token\": \"example-token-123\"\r\n    }\r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Account\",\r\n  \"service\": \"ecommerce-europe\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"accountID\": \"12345678\"\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
							"protocol": "https",
							"host": [
								"api-eu",
								"dhl",
								"com"
							],
							"path": [
								"tracking",
								"push",
								"v1",
								"subscription"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				}
			]
		},
		{
			"name": "Shipment ID Subscription Create",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "DHL-API-Key",
						"value": "ADD HERE YOUR API KEY",
						"type": "text",
						"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"ADD HERE YOUR WEBHOOK SYSTEM URL\"\r\n    \r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Shipment\",\r\n  \"service\": \"ADD HERE THE SERVICE\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"shipmentIDs\": [\"ADD HERE YOUR SHIPMENT ID\"]\r\n}\r\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
					"protocol": "https",
					"host": [
						"api-eu",
						"dhl",
						"com"
					],
					"path": [
						"tracking",
						"push",
						"v1",
						"subscription"
					]
				}
			},
			"response": [
				{
					"name": "Shipment ID Subscription (Example)",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "DHL-API-Key",
								"value": "ADD HERE YOUR API KEY",
								"type": "text",
								"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"https://examplewebhook.com\"\r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Shipment\",\r\n  \"service\": \"ecommerce-europe\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"shipmentIDs\": [\"12345678\"]\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
							"protocol": "https",
							"host": [
								"api-eu",
								"dhl",
								"com"
							],
							"path": [
								"tracking",
								"push",
								"v1",
								"subscription"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "Subscription ID with Authentication (Example)",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "DHL-API-Key",
								"value": "ADD HERE YOUR API KEY",
								"type": "text",
								"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"https://examplewebhook.com\",\r\n    \"authentication\": {\r\n      \"type\": \"ApiKeyAuthentication\",\r\n      \"header\": \"example-secure-header\",\r\n      \"token\": \"example-token-123\"\r\n    }\r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Shipment\",\r\n  \"service\": \"ecommerce-europe\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"shipmentIDs\": [\"12345678\"]\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
							"protocol": "https",
							"host": [
								"api-eu",
								"dhl",
								"com"
							],
							"path": [
								"tracking",
								"push",
								"v1",
								"subscription"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "Multiple Shipment IDs Subscription (Example)",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "DHL-API-Key",
								"value": "{{key}}",
								"type": "text",
								"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"hook\": {\r\n    \"uri\": \"https://webhook.site/020a3a3a-4957-42a9-8a9b-9ac6231c47bc\"\r\n  },\r\n  \"format\": \"Default\",\r\n  \"type\": \"Shipment\",\r\n  \"service\": \"ecommerce-europe\",\r\n  \"events\": [\r\n    \"Transit\", \"Delivered\", \"Pre-Transit\", \"Failure\", \"Unknown\"\r\n  ],\r\n  \"shipmentIDs\": [\r\n      \"12345678\",\r\n      \"87654321\",\r\n      \"88888888\"\r\n      ]\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription",
							"protocol": "https",
							"host": [
								"api-eu",
								"dhl",
								"com"
							],
							"path": [
								"tracking",
								"push",
								"v1",
								"subscription"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				}
			]
		},
		{
			"name": "Activate Subscription",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "DHL-API-Hook-Secret",
						"value": "ADD HERE THE SUBSCRIPTION SECRET",
						"type": "text",
						"description": "Add here the Secret from the Subscription ID. It was sent to your Webhook System after creating a Subscription request."
					},
					{
						"key": "DHL-API-Key",
						"value": "ADD HERE YOUR API KEY",
						"type": "text",
						"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription/ADD HERE YOUR SUBSCRIPTION ID",
					"protocol": "https",
					"host": [
						"api-eu",
						"dhl",
						"com"
					],
					"path": [
						"tracking",
						"push",
						"v1",
						"subscription",
						"ADD HERE YOUR SUBSCRIPTION ID"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Subscriptions (with API key)",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "DHL-API-Key",
						"value": "ADD HERE YOUR API KEY",
						"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://api-eu.dhl.com/tracking/push/v1/subscriptions",
					"protocol": "https",
					"host": [
						"api-eu",
						"dhl",
						"com"
					],
					"path": [
						"tracking",
						"push",
						"v1",
						"subscriptions"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Subscription ID details",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "DHL-API-Key",
						"value": "ADD HERE YOUR API KEY",
						"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription/ADD HERE YOUR SUBSCRIPTION ID",
					"protocol": "https",
					"host": [
						"api-eu",
						"dhl",
						"com"
					],
					"path": [
						"tracking",
						"push",
						"v1",
						"subscription",
						"ADD HERE YOUR SUBSCRIPTION ID"
					]
				}
			},
			"response": []
		},
		{
			"name": "Delete Subscription",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "DHL-API-Key",
						"value": "ADD HERE YOUR API KEY",
						"type": "text",
						"description": "Go to https://developer.dhl.com and check your apps in your user Dashboard to find your API key"
					},
					{
						"key": "DHL-API-Hook-Secret",
						"value": "ADD HERE THE SUBSCRIPTION SECRET",
						"description": "Add here the Secret from the Subscription ID. It was sent to your Webhook System after creating a Subscription request.",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://api-eu.dhl.com/tracking/push/v1/subscription/ADD HERE THE SUBSCRIPTION ID",
					"protocol": "https",
					"host": [
						"api-eu",
						"dhl",
						"com"
					],
					"path": [
						"tracking",
						"push",
						"v1",
						"subscription",
						"ADD HERE THE SUBSCRIPTION ID"
					]
				}
			},
			"response": []
		}
	]
}