{
	"info": {
		"_postman_id": "2f821579-6c7f-4da9-9af1-6877a2ab6b60",
		"name": "IM Rest-Apigee - kundenextern - variables in preferences",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Workflow Checkout PDF",
			"item": [
				{
					"name": "01 Retrieve authorization token",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response for user authorization success case\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.userToken).not.empty;",
									"});",
									"",
									"// update userToken",
									"var userToken = pm.response.json().userToken;",
									"console.log('new userToken received: ', userToken);",
									"pm.globals.set(\"userToken\", userToken);",
									"var access_token = pm.response.json().access_token;",
									"console.log('new access_token received: ', access_token);",
									"pm.globals.set(\"access_token\", access_token);",
									"",
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "client_id",
									"value": "{{client_id}}",
									"type": "text"
								},
								{
									"key": "client_secret",
									"value": "{{client_secret}}",
									"type": "text"
								},
								{
									"key": "username",
									"value": "{{pcf_username}}",
									"type": "text"
								},
								{
									"key": "password",
									"value": "{{pcf_password}}",
									"type": "text"
								},
								{
									"key": "grant_type",
									"value": "client_credentials",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/user",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"user"
							]
						}
					},
					"response": []
				},
				{
					"name": "02 Initialize shopping cart",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert shopping cart ID is created\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.shopOrderId).is.not.null;",
									"    ",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shopOrderId);",
									"    console.log('New shopping cart created: ', pm.collectionVariables.get('shopOrderId'));",
									"});",
									"",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart"
							]
						}
					},
					"response": []
				},
				{
					"name": "03 Fill shopping cart PDF",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPDFRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"pageFormatId\": 2,\n    \"positions\": [\n        {\n            \"productCode\": 10001,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"Professor Dr.\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Der Chef\",\n                    \"name\": \"Musterfirma\",\n                    \"addressLine1\": \"IrgendWo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 125,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							]
						}
					},
					"response": []
				},
				{
					"name": "03b Fill SC PDF  multiple recipients",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    //pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    pm.expect(jsonData.shoppingCart.voucherList.length).to.equal(pm.collectionVariables.get('nrOfVouchers'));",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPDFRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"pageFormatId\": 103,\n    \"positions\": [\n        {\n            \"productCode\": 1012,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"Deutsche Post AG\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Company Name\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        },\n        {\n            \"productCode\": 1012,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Deutsche Post AG\",\n                    \"name\": \"Company Name\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 2,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        },\n        {\n            \"productCode\": 1012,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"Deutsche Post AG\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"DPHL AG\",\n                    \"name\": \"Company Name\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 2,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 1035,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03c Fill SC PDF cart without address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPDFRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"pageFormatId\": 2,\n    \"positions\": [\n        {\n            \"productCode\": 1,\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 95,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03d Fill SC PDF Nachnahmeprodukt",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPDFRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"pageFormatId\": 1,\n    \"positions\": [\n        {\n            \"productCode\": 41,\n            \"voucherLayout\": \"FRANKING_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 510,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03e Fill SC PDF Einschreiben Rückschein",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\" : \"AppShoppingCartPDFRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"pageFormatId\": 1,\n    \"positions\": [\n        {\n            \"productCode\": 1008,\n            \"additionalInfo\": \"zusatz info 1\",\n            \"voucherLayout\": \"FRANKING_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 580,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03f Fill shopping cart PDF with Additional cash Info (SEPA only)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\" : \"AppShoppingCartPDFRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"pageFormatId\": 2,\n    \"positions\": [\n        {\n            \"productCode\": 10001,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Generaldirektor\",\n                    \"name\": \"Company Name\",\n                    \"addressLine1\": \"IrgendWo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"additionalInfo\": \"zusatz info 1\",\n            \"cashOnDelivery\": {\n                \"paymentRecipient\": \"Erika Mustermann\",\n                \"paymentReference\": \"Rechnung XXX\",\n                \"iban\": \"DE12345678901234567890\",\n                \"bic\": \"ABCDABABABC\",\n                \"accountOwner\": \"Erich Mustermann\",\n                \"amount\": 10000\n                },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 125,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PDF directCheckout Maxibrief without address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPDFRequest\",\n    \"pageFormatId\": 2,\n    \"positions\": [\n        {\n            \"productCode\": 31,\n            \"additionalInfo\": \"*More to know*\",\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 290,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PDF directCheckout Einschreiben with address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPDFRequest\",\n    \"pageFormatId\": 2,\n    \"positions\": [\n        {\n            \"productCode\": 1007,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Bertold Bürger\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3. Etage\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Haus am Eaton-Platz\",\n                    \"name\": \"Der Hausherr\",\n                    \"addressLine1\": \"Beste Lage 1\",\n                    \"addressLine2\": \"Vorderhaus\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 360,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PDF directCheckout Standard Letter International  with address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\" : \"AppShoppingCartPDFRequest\",\n    \"pageFormatId\": 2,\n    \"positions\": [\n        {\n            \"productCode\": 10001,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"M. Dupont\",\n                    \"name\": \"Pompes funèbres Dupont et Fils\",\n                    \"addressLine1\": \"199, Rue St. Maure\",\n                    \"addressLine2\": \"´1er étage\",\n                    \"postalCode\": \"75011\",\n                    \"city\": \"Paris\",\n                    \"country\": \"FRA\"\n                }\n            },\n            \"additionalInfo\": \"zusatz info 1\",\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"position\": {\n                \"labelX\": 1,\n                \"labelY\": 1,\n                \"page\": 1\n            },\n            \"positionType\": \"AppShoppingCartPDFPosition\"\n        }\n    ],\n    \"total\": 125,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "04 Validate stamp PDF",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.link).contains('/PcfExtensionWeb/preview?keyphase=');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"type\" : \"AppShoppingCartPreviewPDFRequest\",  \n  \"productCode\" : 1012,\n  \"imageID\" : 152,\n  \"voucherLayout\" : \"ADDRESS_ZONE\",\n  \"pageFormatId\" : \"2\",\n  \"dpi\" : \"DPI203\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/pdf?validate=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"pdf"
							],
							"query": [
								{
									"key": "validate",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "05 Retrieve shopping cart",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response contains relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.voucherList.length).to.equal(pm.collectionVariables.get('nrOfVouchers'));",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/{{shopOrderId}}",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"{{shopOrderId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request retoure",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"shoppingCart\": {\n    \"shopOrderId\": \"{{shopOrderId}}\"\n  }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request Retoure Single Voucher",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"shoppingCart\": {\n        \"shopOrderId\": \"{{shopOrderId}}\",\n        \"voucherList\": [\n            {\n                \"voucherId\": \"{{voucherId}}\"\n            }\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request Retoure Single Voucher ohne shopOrderId",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"shoppingCart\": {\n        \"voucherList\": [\n            {\n                \"voucherId\": \"{{voucherId_1}}\"\n            },\n            {\n                \"voucherId\": \"{{voucherId_2}}\"\n            },\n            {\n                \"voucherId\": \"{{voucherId_n}}\"\n            }\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request Retoure Multiple Voucher ohne shopOrderId",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"shoppingCart\": {\n        \"voucherList\": [\n            {\n                \"voucherId\": \"{{voucherId_1}}\"\n            },\n            {\n                \"voucherId\": \"{{voucherId_2}}\"\n            }\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "07 Retrieve Retoure State",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.shopOrderId).is.not.null;",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null; ",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure?retoureTransactionId={{retoureTransactionId}}&shopRetoureId={{shopRetoureId}}",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							],
							"query": [
								{
									"key": "retoureTransactionId",
									"value": "{{retoureTransactionId}}"
								},
								{
									"key": "shopRetoureId",
									"value": "{{shopRetoureId}}"
								}
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "Workflow Checkout PNG",
			"item": [
				{
					"name": "01 Retrieve authorization token",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response for user authorization success case\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.userToken).not.empty;",
									"});",
									"",
									"// update userToken",
									"var userToken = pm.response.json().userToken;",
									"console.log('new userToken received: ', userToken);",
									"pm.globals.set(\"userToken\", userToken);",
									"var access_token = pm.response.json().access_token;",
									"console.log('new access_token received: ', access_token);",
									"pm.globals.set(\"access_token\", access_token);"
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "client_id",
									"value": "{{client_id}}",
									"type": "text"
								},
								{
									"key": "client_secret",
									"value": "{{client_secret}}",
									"type": "text"
								},
								{
									"key": "username",
									"value": "{{pcf_username}}",
									"type": "text"
								},
								{
									"key": "password",
									"value": "{{pcf_password}}",
									"type": "text"
								},
								{
									"key": "grant_type",
									"value": "client_credentials",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/user",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"user"
							]
						}
					},
					"response": []
				},
				{
					"name": "02 Initialize shopping cart",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert shopping cart ID is created\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.shopOrderId).is.not.null;",
									"    ",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shopOrderId);",
									"    console.log('New shopping cart created: ', pm.collectionVariables.get('shopOrderId'));",
									"});",
									"",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart"
							]
						}
					},
					"response": []
				},
				{
					"name": "03 Fill shopping cart PNG",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"positions\": [\n        {\n            \"productCode\": 10001,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Vorname Nachname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Chef von\",\n                    \"name\": \"Musterfirma\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"Penthaus\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 125,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							]
						}
					},
					"response": []
				},
				{
					"name": "03b Fill SC PNG  multiple recipients",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    //pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    pm.expect(jsonData.shoppingCart.voucherList.length).to.equal(pm.collectionVariables.get('nrOfVouchers'));",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"positions\": [\n        {\n            \"productCode\": 1012,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"Deutsche Post AG\",\n                    \"name\": \"Kunden Service\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Chef von\",\n                    \"name\": \"Musterfirma\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        },\n        {\n            \"productCode\": 1012,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": null,\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Deutsche Post AG\",\n                    \"name\": \"Company Name\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        },\n        {\n            \"productCode\": 1012,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"Deutsche Post AG\",\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"DPHL AG\",\n                    \"name\": \"Company Name\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 1035,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03c Fill SC PNG cart without adresse",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"positions\": [\n        {\n            \"productCode\": 1,\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 95,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03d Fill SC PNG Nachnahmeprodukt",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"positions\": [\n        {\n            \"productCode\": 41,\n            \"voucherLayout\": \"FRANKING_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 510,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?validate=false",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "validate",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "03f Fill shopping cart PNG with Additional Cash Info (SEPA only)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"shopOrderId\": \"{{shopOrderId}}\",\n    \"positions\": [\n        {\n            \"productCode\": 10001,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"A.B. Sender\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"E.M. Pfänger\",\n                    \"name\": \"Firma\",\n                    \"addressLine1\": \"Irgend-Wo-Weg 25a\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"cashOnDelivery\": {\n                \"paymentRecipient\": \"Erika Mustermann\",\n                \"paymentReference\": \"Rechnung XXX\",\n                \"iban\": \"DE12345678901234567890\",\n                \"bic\": \"ABCDABABABC\",\n                \"accountOwner\": \"Erich Mustermann\",\n                \"amount\": 10000\n            },\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 125,\n    \"createManifest\": true,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PNG directCheckout Maxibrief without address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"positions\": [\n        {\n            \"productCode\": 31,\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 290,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PNG directCheckout Maxibrief without address Copy",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"positions\": [\n        {\n            \"productCode\": 31,\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 290,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PNG directCheckout Einschreiben with address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"positions\": [\n        {\n            \"productCode\": 1007,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": \"\",\n                    \"name\": \"Bertold Bürger\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3. Etage\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"Abteilung Gardinen und Teppiche\",\n                    \"name\": \"Kaufhaus des Ostens \",\n                    \"addressLine1\": \"Beste Lage 1\",\n                    \"addressLine2\": \"Vorderhaus\",\n                    \"postalCode\": \"10115\",\n                    \"city\": \"Berlin\",\n                    \"country\": \"DEU\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 360,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "02+03 Fill SC PNG directCheckout Standard Letter International  with address",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"    ",
									"pm.test(\"Assert response contains all relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.not.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).to.be.equal(pm.collectionVariables.get('shopOrderId'));",
									"",
									"    pm.collectionVariables.set('shopOrderId', jsonData.shoppingCart.shopOrderId);",
									"    pm.collectionVariables.set('nrOfVouchers', jsonData.shoppingCart.voucherList.length);",
									"",
									"    console.log('Current shopping cart contains: ', jsonData.shoppingCart.voucherList.length , ' vouchers.');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"AppShoppingCartPNGRequest\",\n    \"positions\": [\n        {\n            \"productCode\": 10001,\n            \"address\": {\n                \"sender\": {\n                    \"additionalName\": null,\n                    \"name\": \"Firstname Lastname\",\n                    \"addressLine1\": \"Weiss-Nicht-Wo Str. 12\",\n                    \"addressLine2\": \"3rd Floor\",\n                    \"postalCode\": \"57044\",\n                    \"city\": \"Bonn\",\n                    \"country\": \"DEU\"\n                },\n                \"receiver\": {\n                    \"additionalName\": \"M. Dupont\",\n                    \"name\": \"Pompes funèbres Dupont et Fils\",\n                    \"addressLine1\": \"199, Rue St. Maure\",\n                    \"addressLine2\": \"1er étage\",\n                    \"postalCode\": \"75011\",\n                    \"city\": \"Paris\",\n                    \"country\": \"FRA\"\n                }\n            },\n            \"voucherLayout\": \"ADDRESS_ZONE\",\n            \"positionType\": \"AppShoppingCartPosition\"\n        }\n    ],\n    \"total\": 125,\n    \"createManifest\": false,\n    \"createShippingList\": \"2\",\n    \"dpi\": \"DPI300\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?directCheckout=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "directCheckout",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "04 Validate stamp PNG",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.link).contains('/PcfExtensionWeb/preview?keyphase=');",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"type\" : \"AppShoppingCartPreviewPNGRequest\",  \n  \"productCode\" : 1012,\n  \"imageID\" : 152,\n  \"voucherLayout\" : \"ADDRESS_ZONE\",\n  \"dpi\" : \"DPI203\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/png?validate=true",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"png"
							],
							"query": [
								{
									"key": "validate",
									"value": "true"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "05 Retrieve shopping cart",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response contains relevant information\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.link).exist;",
									"    pm.expect(jsonData.manifestLink).exist;",
									"    pm.expect(jsonData.walletBallance).is.null;",
									"    pm.expect(jsonData.shoppingCart.shopOrderId).exist;",
									"    pm.expect(jsonData.shoppingCart.voucherList.length).to.equal(pm.collectionVariables.get('nrOfVouchers'));",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/shoppingcart/{{shopOrderId}}",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"shoppingcart",
								"{{shopOrderId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request retoure",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"shoppingCart\": {\n    \"shopOrderId\": \"{{shopOrderId}}\"\n  }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request Retoure Single Voucher",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"shoppingCart\": {\n        \"shopOrderId\": \"{{shopOrderId}}\",\n        \"voucherList\": [\n            {\n                \"voucherId\": \"{{voucherId}}\"\n            }\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request Retoure Single Voucher ohne shopOrderId",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"shoppingCart\": {\n        \"voucherList\": [\n            {\n                \"voucherId\": \"{{voucherId}}\"\n            }\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "06 Request Retoure Multiple Voucher ohne shopOrderId",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retoure was successful and retoureTransactionId is present\", function () {",
									"    var jsonData = pm.response.json();",
									"",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null;",
									"    pm.expect(jsonData.shopRetoureId).is.not.null;",
									"",
									"    pm.collectionVariables.set('retoureTransactionId', jsonData.retoureTransactionId);",
									"    pm.collectionVariables.set('shopRetoureId', jsonData.shopRetoureId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"shoppingCart\": {\n        \"voucherList\": [\n            {\n                \"voucherId\": \"{{voucherId_1}}\"\n            },\n            {\n                \"voucherId\": \"{{voucherId_2}}\"\n            }\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							]
						}
					},
					"response": []
				},
				{
					"name": "07 Retrieve Retoure State",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.shopOrderId).is.not.null;",
									"    pm.expect(jsonData.retoureTransactionId).is.not.null; ",
									"});",
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/retoure?retoureTransactionId={{retoureTransactionId}}&shopRetoureId={{shopRetoureId}}",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"retoure"
							],
							"query": [
								{
									"key": "retoureTransactionId",
									"value": "{{retoureTransactionId}}"
								},
								{
									"key": "shopRetoureId",
									"value": "{{shopRetoureId}}"
								}
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "General",
			"item": [
				{
					"name": "API Status / Healthcheck",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"User authorization success case\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.userToken).not.empty;",
									"    pm.expect(jsonData.walletBalance).to.be.greaterThan(100);",
									"    pm.expect(jsonData.showTermsAndConditions).to.eql(false);",
									"    pm.expect(jsonData.infoMessage).is.empty;",
									"});"
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "GET",
						"header": [
							{
								"key": "x-partner-id",
								"value": "to-be-replaced",
								"type": "text",
								"disabled": true
							},
							{
								"key": "x-request-timestamp",
								"value": "to-be-replaced",
								"type": "text",
								"disabled": true
							},
							{
								"key": "x-key-phase",
								"value": "to-be-replaced",
								"type": "text",
								"disabled": true
							},
							{
								"key": "x-signature-algorithm",
								"value": "to-be-replaced",
								"type": "text",
								"disabled": true
							},
							{
								"key": "x-partner-signature",
								"value": "to-be-replaced",
								"type": "text",
								"disabled": true
							},
							{
								"key": "dhl-api-key",
								"value": "{{dhl-api-key}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Retrieve authorization token",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response for user authorization success case\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.userToken).not.empty;",
									"});",
									"",
									"// update userToken",
									"var userToken = pm.response.json().userToken;",
									"console.log('new userToken received: ', userToken);",
									"pm.globals.set(\"userToken\", userToken);",
									"var access_token = pm.response.json().access_token;",
									"console.log('new access_token received: ', access_token);",
									"pm.globals.set(\"access_token\", access_token);"
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "client_id",
									"value": "{{client_id}}",
									"type": "text"
								},
								{
									"key": "client_secret",
									"value": "{{client_secret}}",
									"type": "text"
								},
								{
									"key": "username",
									"value": "{{pcf_username}}",
									"type": "text"
								},
								{
									"key": "password",
									"value": "{{pcf_password}}",
									"type": "text"
								},
								{
									"key": "grant_type",
									"value": "client_credentials",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/user",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"user"
							]
						}
					},
					"response": []
				},
				{
					"name": "Retrieve Profile",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert response for user authorization success case\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.userToken).not.empty;",
									"});",
									"",
									"// update userToken",
									"var userToken = pm.response.json().userToken;",
									"console.log('new userToken received: ', userToken);",
									"pm.globals.set(\"userToken\", userToken);"
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {},
						"disableBodyPruning": true
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"body": {
							"mode": "urlencoded",
							"urlencoded": []
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/user/profile",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"user",
								"profile"
							]
						}
					},
					"response": []
				},
				{
					"name": "Charge wallet (SEPA only)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retrieve galleries response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.pageFormats[0].name).to.eql('Herma 4676 SuperPrint 105 x 148');",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"",
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [
							{
								"key": "dhl-api-key",
								"value": "{{dhl-api-key}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/wallet?amount=1000",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"wallet"
							],
							"query": [
								{
									"key": "amount",
									"value": "1000"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Retrieve  catalogs - PUBLIC",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retrieve galleries response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.privateGallery.imageLink).is.null;",
									"    pm.expect(jsonData.publicGallery.items).not.empty;",
									"    pm.expect(jsonData.pageFormats).not.empty;",
									"    pm.expect(jsonData.contractProducts.products).is.null;",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"",
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/catalog?types=PUBLIC",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"catalog"
							],
							"query": [
								{
									"key": "types",
									"value": "PUBLIC"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Retrieve  catalogs - Etiketten",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retrieve galleries response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.privateGallery.imageLink).is.null;",
									"    pm.expect(jsonData.publicGallery.items).not.empty;",
									"    pm.expect(jsonData.pageFormats).not.empty;",
									"    pm.expect(jsonData.contractProducts.products).is.null;",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"",
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/catalog?types=PAGE_FORMATS",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"catalog"
							],
							"query": [
								{
									"key": "types",
									"value": "PAGE_FORMATS"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Retrieve  catalogs - Vertragsprodukte",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Assert retrieve galleries response\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData.privateGallery.imageLink).is.null;",
									"    pm.expect(jsonData.publicGallery.items).not.empty;",
									"    pm.expect(jsonData.pageFormats).not.empty;",
									"    pm.expect(jsonData.contractProducts.products).is.null;",
									"});"
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"",
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{access_token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{hostname}}/{{basePath}}/app/catalog?types=CONTRACT_PRODUCTS",
							"protocol": "https",
							"host": [
								"{{hostname}}"
							],
							"path": [
								"{{basePath}}",
								"app",
								"catalog"
							],
							"query": [
								{
									"key": "types",
									"value": "CONTRACT_PRODUCTS"
								}
							]
						}
					},
					"response": []
				}
			],
			"auth": {
				"type": "bearer",
				"bearer": [
					{
						"key": "token",
						"value": "{{userToken}}",
						"type": "string"
					}
				]
			},
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "hostname",
			"value": "api-eu.dhl.com",
			"type": "string"
		},
		{
			"key": "basePath",
			"value": "post/de/shipping/im/v1",
			"type": "string"
		},
		{
			"key": "client_id",
			"value": "YOUR_GDP_CLIENT_ID",
			"type": "string"
		},
		{
			"key": "client_secret",
			"value": "YOUR_GDP_CLIENT_SECRET",
			"type": "string"
		},
		{
			"key": "pcf_username",
			"value": "YOUR_PORTOKASSE",
			"type": "string"
		},
		{
			"key": "pcf_password",
			"value": "YOUR_PORTOKASSE_PASSWORD",
			"type": "string"
		},
		{
			"key": "pcf_default_ppl",
			"value": "54",
			"type": "string"
		},
		{
			"key": "pcf_default_productCode",
			"value": "1",
			"type": "string"
		},
		{
			"key": "pcf_default_total",
			"value": "85",
			"type": "string"
		},
		{
			"key": "productCode",
			"value": "{{pcf_default_productCode}}",
			"type": "default"
		},
		{
			"key": "productPrice",
			"value": "{{pcf_default_total}}",
			"type": "default"
		},
		{
			"key": "nrOfPositions",
			"value": "500",
			"type": "default"
		},
		{
			"key": "elementsInXRow",
			"value": "2",
			"type": "default"
		},
		{
			"key": "elementsInYColumn",
			"value": "3",
			"type": "default"
		},
		{
			"key": "shopOrderId",
			"value": ""
		},
		{
			"key": "retoureTransactionId",
			"value": ""
		},
		{
			"key": "dynamic_request_body",
			"value": ""
		},
		{
			"key": "shopRetoureId",
			"value": ""
		},
		{
			"key": "nrOfVouchers",
			"value": ""
		}
	]
}