{
	"info": {
		"_postman_id": "d18f7506-8796-490b-974c-1a2192e04033",
		"name": "Metrc Webhooks",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "v2",
			"item": [
				{
					"name": "/Webhooks/v2/allowedVerbs",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/allowedVerbs",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								"allowedVerbs"
							]
						}
					},
					"response": [
						{
							"name": "Success",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/Webhooks/v2/allowedVerbs",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"Webhooks",
										"v2",
										"allowedVerbs"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "[\n  \"<string>\",\n  \"<string>\"\n]"
						}
					]
				},
				{
					"name": "/Webhooks/v2/subscriptionStatuses",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/subscriptionStatuses",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								"subscriptionStatuses"
							]
						}
					},
					"response": [
						{
							"name": "Success",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/Webhooks/v2/subscriptionStatuses",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"Webhooks",
										"v2",
										"subscriptionStatuses"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "[\n  \"<string>\",\n  \"<string>\"\n]"
						}
					]
				},
				{
					"name": "/Webhooks/v2/subscribableObjects",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/subscribableObjects",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								"subscribableObjects"
							]
						}
					},
					"response": [
						{
							"name": "Success",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/Webhooks/v2/subscribableObjects",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"Webhooks",
										"v2",
										"subscribableObjects"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "[\n  \"<string>\",\n  \"<string>\"\n]"
						}
					]
				},
				{
					"name": "/Webhooks/v2",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								""
							]
						}
					},
					"response": [
						{
							"name": "Success",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/Webhooks/v2",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"Webhooks",
										"v2"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "[\n  {\n    \"subscriptionId\": \"<long>\",\n    \"username\": \"<string>\",\n    \"apiKeyName\": \"<string>\",\n    \"objectType\": 3,\n    \"url\": \"<string>\",\n    \"verb\": 1,\n    \"status\": 2,\n    \"errorMessage\": \"<string>\",\n    \"serverPublicKeyFingerprint\": \"<string>\",\n    \"template\": \"<string>\",\n    \"errorResponseJsonTemplate\": \"<string>\",\n    \"facilities\": [\n      {\n        \"facilityLicenseNumber\": \"<string>\",\n        \"invalidPermission\": \"<boolean>\"\n      }\n    ],\n    \"deployment\": \"<string>\"\n  },\n  {\n    \"subscriptionId\": \"<long>\",\n    \"username\": \"<string>\",\n    \"apiKeyName\": \"<string>\",\n    \"objectType\": 2,\n    \"url\": \"<string>\",\n    \"verb\": 2,\n    \"status\": 2,\n    \"errorMessage\": \"<string>\",\n    \"serverPublicKeyFingerprint\": \"<string>\",\n    \"template\": \"<string>\",\n    \"errorResponseJsonTemplate\": \"<string>\",\n    \"facilities\": [\n      {\n        \"facilityLicenseNumber\": \"<string>\",\n        \"invalidPermission\": \"<boolean>\"\n      }\n    ],\n    \"deployment\": \"<string>\"\n  }\n]"
						}
					]
				},
				{
					"name": "/Webhooks/v2",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"ObjectType\" : \"PlantBatch\",\n        \"URL\" : \"https://webhook.site/c4966d7e-a848-4bb0-be86-94edad1af30d\",\n        \"Verb\" : \"POST\",\n        \"Status\" : \"Active\",\n        \"UserApiKey\": \"pNio9ywv0vxAZQAIpWzrWINqTY9uHKzM52RJFeL1h4bpvDAm\",\n        \"TpiApiKey\" : \"9vFFKOF3CxIes1nN7QkLSoCW266qfuFAdR1qIaTmvAwvMZ1p\",\n        \"Template\" : \"\",\n        \"ErrorResponseJsonTemplate\" : \"\",\n        \"FacilityLicenseNumbers\" : [\"4a-X0001\", \"4b-x0002\", \"403-x0001\", \"403-x0002\"]\n    }\n]",
							"options": {
								"raw": {
									"headerFamily": "json",
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{host}}/Webhooks/v2",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2"
							]
						}
					},
					"response": [
						{
							"name": "Success",
							"originalRequest": {
								"method": "PUT",
								"header": [
									{
										"key": "Content-Type",
										"value": "application/json"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n  {\n    \"subscriptionId\": \"<long>\",\n    \"objectType\": 4,\n    \"url\": \"<string>\",\n    \"verb\": 2,\n    \"status\": 1,\n    \"errorMessage\": \"<string>\",\n    \"userApiKey\": \"<string>\",\n    \"tpiApiKey\": \"<string>\",\n    \"subscribedDateTime\": \"<dateTime>\",\n    \"serverPublicKeyFingerprint\": \"<string>\",\n    \"template\": \"<string>\",\n    \"errorResponseJsonTemplate\": \"<string>\",\n    \"facilityLicenseNumbers\": [\n      \"<string>\"\n    ]\n  },\n  {\n    \"subscriptionId\": \"<long>\",\n    \"objectType\": 18,\n    \"url\": \"<string>\",\n    \"verb\": 1,\n    \"status\": 2,\n    \"errorMessage\": \"<string>\",\n    \"userApiKey\": \"<string>\",\n    \"tpiApiKey\": \"<string>\",\n    \"subscribedDateTime\": \"<dateTime>\",\n    \"serverPublicKeyFingerprint\": \"<string>\",\n    \"template\": \"<string>\",\n    \"errorResponseJsonTemplate\": \"<string>\",\n    \"facilityLicenseNumbers\": [\n      \"<string>\"\n    ]\n  }\n]",
									"options": {
										"raw": {
											"headerFamily": "json",
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/Webhooks/v2",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"Webhooks",
										"v2"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "[\n  {\n    \"subscriptionId\": \"<long>\",\n    \"username\": \"<string>\",\n    \"apiKeyName\": \"<string>\",\n    \"objectType\": 3,\n    \"url\": \"<string>\",\n    \"verb\": 1,\n    \"status\": 2,\n    \"errorMessage\": \"<string>\",\n    \"serverPublicKeyFingerprint\": \"<string>\",\n    \"template\": \"<string>\",\n    \"errorResponseJsonTemplate\": \"<string>\",\n    \"facilities\": [\n      {\n        \"facilityLicenseNumber\": \"<string>\",\n        \"invalidPermission\": \"<boolean>\"\n      }\n    ],\n    \"deployment\": \"<string>\"\n  },\n  {\n    \"subscriptionId\": \"<long>\",\n    \"username\": \"<string>\",\n    \"apiKeyName\": \"<string>\",\n    \"objectType\": 2,\n    \"url\": \"<string>\",\n    \"verb\": 2,\n    \"status\": 2,\n    \"errorMessage\": \"<string>\",\n    \"serverPublicKeyFingerprint\": \"<string>\",\n    \"template\": \"<string>\",\n    \"errorResponseJsonTemplate\": \"<string>\",\n    \"facilities\": [\n      {\n        \"facilityLicenseNumber\": \"<string>\",\n        \"invalidPermission\": \"<boolean>\"\n      }\n    ],\n    \"deployment\": \"<string>\"\n  }\n]"
						}
					]
				},
				{
					"name": "/Webhooks/v2/:subscriptionId",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/:subscriptionId",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								":subscriptionId"
							],
							"variable": [
								{
									"key": "subscriptionId",
									"value": "<long>"
								}
							]
						}
					},
					"response": [
						{
							"name": "Success",
							"originalRequest": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/Webhooks/v2/:subscriptionId",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"Webhooks",
										"v2",
										":subscriptionId"
									],
									"variable": [
										{
											"key": "subscriptionId"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n  \"subscriptionId\": \"<long>\",\n  \"username\": \"<string>\",\n  \"apiKeyName\": \"<string>\",\n  \"objectType\": 17,\n  \"url\": \"<string>\",\n  \"verb\": 1,\n  \"status\": 1,\n  \"errorMessage\": \"<string>\",\n  \"serverPublicKeyFingerprint\": \"<string>\",\n  \"template\": \"<string>\",\n  \"errorResponseJsonTemplate\": \"<string>\",\n  \"facilities\": [\n    {\n      \"facilityLicenseNumber\": \"<string>\",\n      \"invalidPermission\": \"<boolean>\"\n    }\n  ],\n  \"deployment\": \"<string>\"\n}"
						}
					]
				},
				{
					"name": "/Webhooks/v2/disable/:subscriptionId",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/disable/:subscriptionId",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								"disable",
								":subscriptionId"
							],
							"variable": [
								{
									"key": "subscriptionId",
									"value": "<long>"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "/Webhooks/v2/enable/:subscriptionId",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Accept",
								"value": "text/plain"
							}
						],
						"url": {
							"raw": "{{host}}/Webhooks/v2/enable/:subscriptionId",
							"host": [
								"{{host}}"
							],
							"path": [
								"Webhooks",
								"v2",
								"enable",
								":subscriptionId"
							],
							"variable": [
								{
									"key": "subscriptionId",
									"value": "<long>"
								}
							]
						}
					},
					"response": []
				}
			],
			"auth": {
				"type": "apikey",
				"apikey": [
					{
						"key": "value",
						"value": "{{webhooksApiKey}}",
						"type": "string"
					},
					{
						"key": "key",
						"value": "X-Metrc-Auth",
						"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": "host",
			"value": "https://example.com",
			"type": "default"
		},
		{
			"key": "webhooksApiKey",
			"value": ""
		}
	]
}