{
	"info": {
		"_postman_id": "bb6be5d3-1a11-4a97-945c-2bf11eba1862",
		"name": "Customer group price & product group (special) price",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Authorization",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"username\": \"admin\",\n    \"password\": \"a111111\"\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/V1/integration/admin/token",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"V1",
						"integration",
						"admin",
						"token"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Product Group Price Info",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"skus\": [\n    \"Test-2\"\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-prices-information",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-prices-information"
					]
				}
			},
			"response": []
		},
		{
			"name": "Delete Product Group Price",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n    {\n        \"group_name\": \"General\",\n        \"price\": \"110\",\n        \"sku\": \"Test-2\",\n        \"website_id\": 0,\n        \"price_type_code\": \"fixed\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-prices-delete",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-prices-delete"
					]
				}
			},
			"response": []
		},
		{
			"name": "Update (or Create) Product Group Prices",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n    {\n        \"group_name\": \"General\",\n        \"price\": \"44\",\n        \"sku\": \"Test-2\",\n        \"website_id\": 1,\n        \"price_type_code\": \"fixed\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-prices",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-prices"
					]
				}
			},
			"response": []
		},
		{
			"name": "Replace Product Group Prices",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n    {\n        \"group_name\": \"all groups\",\n        \"price\": \"55\",\n        \"sku\": \"Test\",\n        \"website_id\": 2,\n        \"price_type_code\": \"fixed\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-prices",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-prices"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Product Group Special Price Info",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"skus\": [\n    \"Test-2\"\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-special-prices-information",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-special-prices-information"
					]
				}
			},
			"response": []
		},
		{
			"name": "Delete Product Group Special Price",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n    {\n        \"group_name\": \"General\",\n        \"price\": \"110\",\n        \"sku\": \"Test-2\",\n        \"website_id\": 0,\n        \"price_type_code\": \"fixed\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-prices-delete",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-prices-delete"
					]
				}
			},
			"response": []
		},
		{
			"name": "Replace Product Group Special Prices",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n  \t\n    {\n        \"group_name\": \"Wholesale\",\n        \"price\": \"400\",\n        \"sku\": \"Test-3\",\n        \"website_id\": 1,\n        \"price_type_code\": \"fixed\"\n    },\n    {\n        \"group_name\": \"General\",\n        \"price\": \"200\",\n        \"sku\": \"Test-3\",\n        \"website_id\": 2,\n        \"price_type_code\": \"fixed\"\n    },\n    {\n        \"group_name\": \"Wholesale\",\n        \"price\": \"100\",\n        \"sku\": \"Test-3\",\n        \"website_id\": 2,\n        \"price_type_code\": \"fixed\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/products/mw-group-special-prices",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"products",
						"mw-group-special-prices"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Customer Group Info",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"ids\": [\n    \"1\"\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/customerGroups/mw-group-prices-information",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"customerGroups",
						"mw-group-prices-information"
					]
				}
			},
			"response": []
		},
		{
			"name": "Delete Customer Group Price",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n\t    {\n\t        \"group_id\": 0,\n\t        \"website_id\": 0,\n\t        \"price\": \"50\",\n\t        \"price_type_code\": \"fixed\"\n\t    },\n\t    {\n\t        \"group_id\": 3,\n\t        \"price\": \"100\",\n\t        \"website_id\": 0,\n\t        \"price_type_code\": \"percent\"\n\t    },\n\t    {\n\t        \"group_id\": 1,\n\t        \"price\": \"-66\",\n\t        \"website_id\": 0,\n\t        \"price_type_code\": \"percent\"\n\t    }\n\t]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/customerGroups/mw-group-prices-delete",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"customerGroups",
						"mw-group-prices-delete"
					]
				}
			},
			"response": []
		},
		{
			"name": "Update (or Create) Customer Group Price",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n    {\n        \"group_id\": 2,\n        \"price\": \"-50\",\n        \"website_id\": 0,\n        \"price_type_code\": \"percent\"\n    },\n    {\n        \"group_id\": 3,\n        \"price\": \"-20\",\n        \"website_id\": 0,\n        \"price_type_code\": \"percent\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/customerGroups/mw-group-prices",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"customerGroups",
						"mw-group-prices"
					]
				}
			},
			"response": []
		},
		{
			"name": "Replace Customer Group Price",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token_prices}}",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [
					{
						"key": "Content-Type",
						"type": "text",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"prices\": [\n    {\n        \"group_id\": 2,\n        \"price\": \"115\",\n        \"website_id\": 0,\n        \"price_type_code\": \"fixed\"\n    },\n    {\n        \"group_id\": 3,\n        \"price\": \"-20\",\n        \"website_id\": 0,\n        \"price_type_code\": \"percent\"\n    }\n  ]\n}"
				},
				"url": {
					"raw": "{{host_prices}}/index.php/rest/default/V1/customerGroups/mw-group-prices",
					"host": [
						"{{host_prices}}"
					],
					"path": [
						"index.php",
						"rest",
						"default",
						"V1",
						"customerGroups",
						"mw-group-prices"
					]
				}
			},
			"response": []
		}
	],
	"protocolProfileBehavior": {}
}