{
	"info": {
		"_postman_id": "fb60f490-74de-4900-9c97-04a71e1c5f9a",
		"name": "Drop Your Product Examples",
		"description": "An overview of all DYP-requests. ",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "7485084"
	},
	"item": [
		{
			"name": "Upload Files",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "404f7ffc-313f-405c-8012-08ec06171e3c",
							"type": "string"
						},
						{
							"key": "username",
							"value": "test@test.nl",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "",
							"type": "file",
							"src": "/C:/Users/stefandh/Pictures/Testfoto's/New folder/PrinterEvaluationImage_V002_ProPhoto.jpg"
						}
					]
				},
				"url": {
					"raw": "{{BASE_URL}}/UploadFiles",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"UploadFiles"
					]
				},
				"description": "To send in attachments/images. This request returns an attachmentID/hash which should be sent in with the order request to attach the right image(s) to the order."
			},
			"response": []
		},
		{
			"name": "Create Order",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "404f7ffc-313f-405c-8012-08ec06171e3c",
							"type": "string"
						},
						{
							"key": "username",
							"value": "test@test.nl",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"BillTo\": {\r\n        \"Firstname\": \"Angela\", // required\r\n        \"Lastname\": \"Sorensen\", // required\r\n        \"AddressLine1\": \"4755  Kessla Way\", // optional: will be used if street is empty\r\n        \"AddressLine2\": \"\", // optional\r\n        \"AddressLine3\": \"\", // optional\r\n        \"Street\": \"\", // optional: will be used if addressline is empty\r\n        \"PostalCode\": \"4651GE\", // required\r\n        \"HouseNumber\": \"4755\", // optional: will be used if addressline is empty\r\n        \"Building\": \"Upper\",  // optional\r\n        \"SubBuilding\": \"65a\",  // optional\r\n        \"City\": \"Rotterdam\", // required\r\n        \"State\": \"Zuid-Holland\", // optional for some countries\r\n        \"Country\": \"NL\", // 2 alpha ISO_3166 code\r\n        \"PhoneNumber\": \"555-123456789\", // optional\r\n        \"Email\": \"test@test.nl\" // optional\r\n    },\r\n    \"ShipTo\": {\r\n        \"Firstname\": \"Angela\", // required\r\n        \"Lastname\": \"Sorensen\", // required\r\n        \"AddressLine1\": \"4755  Kessla Way\", // optional: will be used if street is empty\r\n        \"AddressLine2\": \"\", // optional\r\n        \"AddressLine3\": \"\", // optional\r\n        \"Street\": \"\", // optional: will be used if addressline is empty\r\n        \"PostalCode\": \"4651GE\", // required\r\n        \"HouseNumber\": \"4755\", // optional: will be used if addressline is empty\r\n        \"Building\": \"Upper\",  // optional\r\n        \"SubBuilding\": \"65a\",  // optional\r\n        \"City\": \"Rotterdam\", // required\r\n        \"State\": \"Zuid-Holland\", // optional for some countries\r\n        \"Country\": \"NL\", // 2 alpha ISO_3166 code\r\n        \"PhoneNumber\": \"555-123456789\", // optional\r\n        \"Email\": \"test@test.nl\" // optional\r\n    },\r\n    \"ExternalID\": \"123456\", // optional: your own order ID\r\n    \"CallBackURL\": \"https://webhook.site/9d840391-3ef9-454e-9193-af1d4a9a1d24\", // optional: URL to receive callbacks with order status updates\r\n    \"SkipEnhancement\" : false, // optional: set to true to skip enhancement in production\r\n    \"Products\": [\r\n        {\r\n            \"ProductID\": 1, // get a list of valid product ID's from the Get Product Catalog call\r\n            \"Amount\": 1, \r\n            \"Attachments\": [\r\n                {\r\n                    \"Hash\": \"c635e8bf-a7f8-4cc3-844a-5e5e6d58d12a\",\r\n                       \"Amount\": 1, \r\n                },\r\n                {\r\n                    \"Hash\": \"c635e8bf-a7f8-4cc3-844a-5e5e6d58d12a\",\r\n                    \"Amount\": 1, \r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"
				},
				"url": {
					"raw": "{{BASE_URL}}/Order",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"Order"
					]
				},
				"description": "Creates a new order and returns the information for this order."
			},
			"response": []
		},
		{
			"name": "Get Order Information",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "username",
							"value": "test@test.nl",
							"type": "string"
						},
						{
							"key": "password",
							"value": "404f7ffc-313f-405c-8012-08ec06171e3c",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{BASE_URL}}/Order/124258",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"Order",
						"124258"
					]
				},
				"description": "Retrieves order information / status of the order on the orderID. "
			},
			"response": []
		},
		{
			"name": "Get Order Information By External ID",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "username",
							"value": "test@test.nl",
							"type": "string"
						},
						{
							"key": "password",
							"value": "404f7ffc-313f-405c-8012-08ec06171e3c",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{BASE_URL}}/Order?externalID=xxxx",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"Order"
					],
					"query": [
						{
							"key": "externalID",
							"value": "xxxx"
						}
					]
				},
				"description": "Retrieves order information / status of the order on the orderID. "
			},
			"response": []
		},
		{
			"name": "Get Product Catalog",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "404f7ffc-313f-405c-8012-08ec06171e3c",
							"type": "string"
						},
						{
							"key": "username",
							"value": "test@test.nl",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{BASE_URL}}/Product",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"Product"
					]
				},
				"description": "Retrieves the product catalog, including IDs and basic information for all products."
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "https://dyp-staging.fujifilm-imaging.nl/api/"
		}
	]
}