{
	"info": {
		"_postman_id": "91cdb17a-2bbb-47c9-a3a9-1ea90b8e06a2",
		"name": "Recyda API Gateway Example",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "30738195"
	},
	"item": [
		{
			"name": "Upsert Packaging Project and Evaluate Rulesets (Laundry Example)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-recyda-api-client-key",
						"value": "YOUR API CLIENT KEY HERE",
						"type": "text"
					},
					{
						"key": "x-recyda-api-client-secret",
						"value": "YOUR API CLIENT SECRET HERE",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"foreignKey\": \"LAU123456\",\n    \"consumerSalesUnitInput\": {\n        \"id\": \"LAU123456\",\n        \"name\": \"Fresh Breeze Liquid Detergent 1L\",\n        \"description\": \"Standard household laundry detergent bottle\",\n        \"metaData\": {\n            \"productCategory\": \"householdCare\",\n            \"subCategory\": \"laundryDetergent\"\n        },\n        \"packagingUnits\": [\n            {\n                \"quantity\": 1,\n                \"packagingUnit\": {\n                    \"id\": \"LAU123456-PU1\",\n                    \"name\": \"Detergent Bottle with Cap\",\n                    \"packagingType\": \"BO\",\n                    \"mainPackagingBodyComponentId\": \"LAU123456-C1\",\n                    \"attributes\": {\n                        \"shape\": \"CYLINDRICAL\",\n                        \"function\": [\"RECLOSABLE\"],\n                        \"dimensions\": {\n                            \"width\": {\n                                \"value\": 95,\n                                \"unitOfMeasurement\": \"MMT\"\n                            },\n                            \"height\": {\n                                \"value\": 280,\n                                \"unitOfMeasurement\": \"MMT\"\n                            },\n                            \"depth\": {\n                                \"value\": 95,\n                                \"unitOfMeasurement\": \"MMT\"\n                            }\n                        },\n                        \"volume\": {\n                            \"value\": 1,\n                            \"unitOfMeasurement\": \"LTR\"\n                        }\n                    },\n                    \"components\": [\n                        {\n                            \"id\": \"LAU123456-C1\",\n                            \"name\": \"Bottle Body\",\n                            \"componentType\": \"PACKAGING_BODY\",\n                            \"attributes\": {\n                                \"opacity\": \"OPAQUE\",\n                                \"colourFamilyCode\": \"WHITE\",\n                                \"rigidity\": \"RIGID\"\n                            },\n                            \"layers\": [\n                                {\n                                    \"id\": \"LAU123456-L1\",\n                                    \"name\": \"HDPE Body Layer\",\n                                    \"packagingMaterialTypeCode\": \"POLYMER_HDPE\",\n                                    \"attributes\": {\n                                        \"weight\": {\n                                            \"value\": 45,\n                                            \"unitOfMeasurement\": \"GRM\"\n                                        },\n                                        \"recyclate\": {\n                                            \"postConsumerRecyclate\": {\n                                                \"value\": 30,\n                                                \"unitOfMeasurement\": \"P1\"\n                                            }\n                                        }\n                                    }\n                                }\n                            ]\n                        },\n                        {\n                            \"id\": \"LAU123456-C2\",\n                            \"name\": \"Screw Cap\",\n                            \"componentType\": \"SCREW_CAP\",\n                            \"attributes\": {\n                                \"colourFamilyCode\": \"BLUE\",\n                                \"rigidity\": \"RIGID\"\n                            },\n                            \"layers\": [\n                                {\n                                    \"id\": \"LAU123456-L2\",\n                                    \"name\": \"PP Cap Layer\",\n                                    \"packagingMaterialTypeCode\": \"POLYMER_PP\",\n                                    \"attributes\": {\n                                        \"weight\": {\n                                            \"value\": 8,\n                                            \"unitOfMeasurement\": \"GRM\"\n                                        }\n                                    }\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        ]\n    },\n    \"selectedRulesets\": [\n        {\n            \"rulesetFamily\": \"minimum_standard_de\",\n            \"majorVersion\": 3\n        }\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api-prod.recyda.com/v2/evaluate",
					"protocol": "https",
					"host": [
						"api-prod",
						"recyda",
						"com"
					],
					"path": [
						"v2",
						"evaluate"
					]
				}
			},
			"response": []
		}
	]
}