{"info":{"_postman_id":"a58c1881-59a1-4198-b912-f3d79499f37a","name":"Magento 2 Reward Points Pro REST API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"a58c1881-59a1-4198-b912-f3d79499f37a","publishedId":"TVYDeeYK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-23T02:19:55.000Z"},"item":[{"name":"CART","item":[{"name":"Get Spending Rule Configuration","id":"7262d699-343d-453c-8361-90b24e1d131f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/carts/mine/spending-configuration","urlObject":{"path":["rest","V1","mpReward","carts","mine","spending-configuration"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9e82ed1c-5ce7-4dd6-9dac-0c3b6d01f6df","name":"Get Spending Rule Configuration Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/carts/mine/spending-configuration"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Oct 2020 02:19:12 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uv2qg5oqm258jjc4sb8snukbs9; expires=Fri, 23-Oct-2020 03:19:12 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"341"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"263945"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"pointSpent\": 7,\n        \"ruleApplied\": \"no_apply\",\n        \"rules\": [\n            {\n                \"id\": \"no_apply\",\n                \"label\": \"\",\n                \"min\": 0,\n                \"max\": 1,\n                \"step\": 1,\n                \"isDisplaySlider\": false\n            },\n            {\n                \"id\": \"rate\",\n                \"label\": \"Each of 10points gets $1.00 discount\",\n                \"min\": 7,\n                \"max\": 22,\n                \"step\": 1,\n                \"isDisplaySlider\": true\n            },\n            {\n                \"id\": \"4\",\n                \"label\": \"Shopping Cart Spending Rule 1\",\n                \"min\": 0,\n                \"max\": 1,\n                \"step\": 1,\n                \"isDisplaySlider\": false\n            }\n        ]\n    }\n]"}],"_postman_id":"7262d699-343d-453c-8361-90b24e1d131f"}],"id":"7df4eccc-8145-4bc7-9cde-ff5ed5500526","_postman_id":"7df4eccc-8145-4bc7-9cde-ff5ed5500526","description":""},{"name":"CATALOG RULES","item":[{"name":"Get Catalog Rules List","id":"dca03366-72f6-4d23-8d81-26ab267e377a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules","urlObject":{"path":["rest","V1","mpReward","catalog-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ef3fb79c-179a-423f-8c65-2b81ee0c4c74","name":"Get Catalog Rules List Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:18:37 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:18:37 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"943"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"104257"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"point_amount\": 10,\n            \"money_step\": 0,\n            \"max_points\": 0,\n            \"rule_id\": 2,\n            \"name\": \"catalog rule\",\n            \"description\": \"catalog rule by api\",\n            \"from_date\": null,\n            \"to_date\": null,\n            \"is_active\": 1,\n            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\",\\\"attribute\\\":\\\"category_ids\\\",\\\"operator\\\":\\\"==\\\",\\\"value\\\":\\\"4\\\",\\\"is_value_processed\\\":false}]}\",\n            \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Action\\\\\\\\Collection\\\",\\\"attribute\\\":null,\\\"operator\\\":\\\"=\\\",\\\"value\\\":null}\",\n            \"stop_rules_processing\": 0,\n            \"sort_order\": 0,\n            \"action\": \"fixed\",\n            \"website_ids\": [\n                1\n            ],\n            \"customer_group_ids\": [\n                0,\n                1,\n                2,\n                3\n            ]\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": [],\n        \"sort_orders\": [\n            {\n                \"field\": null,\n                \"direction\": null\n            }\n        ]\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"dca03366-72f6-4d23-8d81-26ab267e377a"},{"name":"Delete Catalog Rule","id":"23c63adf-263d-490d-ba05-4db3d0d77f19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules/:id","urlObject":{"path":["rest","V1","mpReward","catalog-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"2","key":"id"}]}},"response":[{"id":"dabbcc83-1823-4b26-97eb-b612b00dda4d","name":"Delete Catalog Rule Example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","catalog-rules",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:19:41 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:19:41 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"725404"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"23c63adf-263d-490d-ba05-4db3d0d77f19"},{"name":"Get Catalog Rule By Id","id":"99c338e3-a1ab-43c8-940c-e8d3fa62978b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules/:id","urlObject":{"path":["rest","V1","mpReward","catalog-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"3","key":"id"}]}},"response":[{"id":"162b1584-0d0b-412f-bf3c-99cd5b0690e8","name":"Get Catalog Rule By ID Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","catalog-rules",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:24:58 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:24:58 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"828"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"104482"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"point_amount\": 10,\n    \"money_step\": 0,\n    \"max_points\": 0,\n    \"rule_id\": 3,\n    \"name\": \"catalog rule\",\n    \"description\": \"catalog rule by api\",\n    \"from_date\": null,\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\",\\\"attribute\\\":\\\"category_ids\\\",\\\"operator\\\":\\\"==\\\",\\\"value\\\":\\\"4\\\",\\\"is_value_processed\\\":false}]}\",\n    \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Action\\\\\\\\Collection\\\",\\\"attribute\\\":null,\\\"operator\\\":\\\"=\\\",\\\"value\\\":null}\",\n    \"stop_rules_processing\": 0,\n    \"sort_order\": 0,\n    \"action\": \"fixed\",\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        0,\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"99c338e3-a1ab-43c8-940c-e8d3fa62978b"},{"name":"Create or Update Catalog Rule","id":"d7f7ae15-6b2d-4b2d-b796-7c50684e3e63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"name\": \"catalog rule\",\r\n        \"description\": \"catalog rule by api\",\r\n        \"point_amount\": 10,\r\n        \"is_active\": 1,\r\n        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\",\\\"attribute\\\":\\\"category_ids\\\",\\\"operator\\\":\\\"==\\\",\\\"value\\\":\\\"4\\\",\\\"is_value_processed\\\":false}]}\",\r\n        \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Action\\\\\\\\Collection\\\",\\\"attribute\\\":null,\\\"operator\\\":\\\"=\\\",\\\"value\\\":null}\",\r\n        \"stop_rules_processing\": 0,\r\n        \"sort_order\": 0,\r\n        \"action\": \"fixed\",\r\n        \"website_ids\": [\r\n            1\r\n        ],\r\n        \"customer_group_ids\": [\r\n            0,\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules","urlObject":{"path":["rest","V1","mpReward","catalog-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"5186970c-31d1-4b75-be5d-4d973afb4df7","name":"Create or Update Catalog Rule Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"name\": \"catalog rule\",\r\n        \"description\": \"catalog rule by api\",\r\n        \"point_amount\": 10,\r\n        \"is_active\": 1,\r\n        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\",\\\"attribute\\\":\\\"category_ids\\\",\\\"operator\\\":\\\"==\\\",\\\"value\\\":\\\"4\\\",\\\"is_value_processed\\\":false}]}\",\r\n        \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Action\\\\\\\\Collection\\\",\\\"attribute\\\":null,\\\"operator\\\":\\\"=\\\",\\\"value\\\":null}\",\r\n        \"stop_rules_processing\": 0,\r\n        \"sort_order\": 0,\r\n        \"action\": \"fixed\",\r\n        \"website_ids\": [\r\n            1\r\n        ],\r\n        \"customer_group_ids\": [\r\n            0,\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/catalog-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:19:51 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:19:51 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"828"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"725409"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"point_amount\": 10,\n    \"money_step\": 0,\n    \"max_points\": 0,\n    \"rule_id\": 3,\n    \"name\": \"catalog rule\",\n    \"description\": \"catalog rule by api\",\n    \"from_date\": null,\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\",\\\"attribute\\\":\\\"category_ids\\\",\\\"operator\\\":\\\"==\\\",\\\"value\\\":\\\"4\\\",\\\"is_value_processed\\\":false}]}\",\n    \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Action\\\\\\\\Collection\\\",\\\"attribute\\\":null,\\\"operator\\\":\\\"=\\\",\\\"value\\\":null}\",\n    \"stop_rules_processing\": 0,\n    \"sort_order\": 0,\n    \"action\": \"fixed\",\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        0,\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"d7f7ae15-6b2d-4b2d-b796-7c50684e3e63"}],"id":"3659a1ac-0300-4a43-9ed4-b5ba569b572d","_postman_id":"3659a1ac-0300-4a43-9ed4-b5ba569b572d","description":""},{"name":"SHOPPING CART RULES","item":[{"name":"Get Shopping Cart Earning Rules List","id":"3318ab99-6f14-4348-a695-1eb74687b12a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules","urlObject":{"path":["rest","V1","mpReward","shopping-cart-earning-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"3437abe3-ad9d-469e-9563-e7de3fce90d2","name":"Get Shopping Cart Earning Rules List Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:21:46 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:21:46 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1101"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"725454"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"rule_type\": 1,\n            \"point_amount\": 5,\n            \"money_step\": 0,\n            \"qty_step\": 0,\n            \"max_points\": 10,\n            \"discount_style\": \"fixed\",\n            \"discount_amount\": 10,\n            \"apply_to_shipping\": 0,\n            \"rule_id\": 2,\n            \"name\": \"Shopping Cart Earning Rule 1\",\n            \"description\": null,\n            \"from_date\": \"2020-10-14\",\n            \"to_date\": null,\n            \"is_active\": 1,\n            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Address\\\",\\\"attribute\\\":\\\"base_subtotal\\\",\\\"operator\\\":\\\">\\\",\\\"value\\\":\\\"100\\\",\\\"is_value_processed\\\":false}]}\",\n            \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"stop_rules_processing\": 0,\n            \"sort_order\": 0,\n            \"action\": \"fixed\",\n            \"website_ids\": [\n                1\n            ],\n            \"customer_group_ids\": [\n                1,\n                2,\n                3\n            ]\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": [],\n        \"sort_orders\": [\n            {\n                \"field\": null,\n                \"direction\": null\n            }\n        ]\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"3318ab99-6f14-4348-a695-1eb74687b12a"},{"name":"Get Shopping Cart Earning Rules by ID","id":"6ec56382-85f2-40c8-897b-0256dfc49e33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules/:id","urlObject":{"path":["rest","V1","mpReward","shopping-cart-earning-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"2","key":"id"}]}},"response":[{"id":"5d3535ca-5fdf-4381-8a18-3ef658c67d4f","name":"Get Shopping Cart Earning Rules by ID Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","shopping-cart-earning-rules",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:21:52 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:21:52 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"986"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"819382"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"rule_type\": 1,\n    \"point_amount\": 5,\n    \"money_step\": 0,\n    \"qty_step\": 0,\n    \"max_points\": 10,\n    \"discount_style\": \"fixed\",\n    \"discount_amount\": 10,\n    \"apply_to_shipping\": 0,\n    \"rule_id\": 2,\n    \"name\": \"Shopping Cart Earning Rule 1\",\n    \"description\": null,\n    \"from_date\": \"2020-10-14\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Address\\\",\\\"attribute\\\":\\\"base_subtotal\\\",\\\"operator\\\":\\\">\\\",\\\"value\\\":\\\"100\\\",\\\"is_value_processed\\\":false}]}\",\n    \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n    \"stop_rules_processing\": 0,\n    \"sort_order\": 0,\n    \"action\": \"fixed\",\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"6ec56382-85f2-40c8-897b-0256dfc49e33"},{"name":"Delete Shopping Cart Earning Rules by ID","id":"81d061b1-fd73-4ad8-b33f-c5b8b89159ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules/:id","urlObject":{"path":["rest","V1","mpReward","shopping-cart-earning-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"3","key":"id"}]}},"response":[{"id":"3fb96489-fd03-42c8-8696-a4ae4f5d1d9a","name":"Delete Shopping Cart Earning Rules by ID Example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","shopping-cart-earning-rules",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:35:31 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:35:31 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"104997"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"81d061b1-fd73-4ad8-b33f-c5b8b89159ab"},{"name":"Create/Update Shopping Cart Earning Rules by ID","id":"b619556c-7401-4e05-8074-5efbf6065a69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"rule_type\": 1,\r\n        \"point_amount\": 5,\r\n        \"money_step\": 0,\r\n        \"qty_step\": 0,\r\n        \"max_points\": 10,\r\n        \"discount_style\": \"fixed\",\r\n        \"discount_amount\": 10,\r\n        \"apply_to_shipping\": 0,\r\n        \"name\": \"Shopping Cart Earning Rule 1\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-14\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Address\\\",\\\"attribute\\\":\\\"base_subtotal\\\",\\\"operator\\\":\\\">\\\",\\\"value\\\":\\\"100\\\",\\\"is_value_processed\\\":false}]}\",\r\n        \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\r\n        \"stop_rules_processing\": 0,\r\n        \"sort_order\": 0,\r\n        \"action\": \"fixed\",\r\n        \"website_ids\": [\r\n            1\r\n        ],\r\n        \"customer_group_ids\": [\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules","urlObject":{"path":["rest","V1","mpReward","shopping-cart-earning-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1528985e-997a-4234-a93f-4354da99f727","name":"Create/Update Shopping Cart Earning Rules by ID Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"rule_type\": 1,\r\n        \"point_amount\": 5,\r\n        \"money_step\": 0,\r\n        \"qty_step\": 0,\r\n        \"max_points\": 10,\r\n        \"discount_style\": \"fixed\",\r\n        \"discount_amount\": 10,\r\n        \"apply_to_shipping\": 0,\r\n        \"name\": \"Shopping Cart Earning Rule 1\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-14\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Address\\\",\\\"attribute\\\":\\\"base_subtotal\\\",\\\"operator\\\":\\\">\\\",\\\"value\\\":\\\"100\\\",\\\"is_value_processed\\\":false}]}\",\r\n        \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\r\n        \"stop_rules_processing\": 0,\r\n        \"sort_order\": 0,\r\n        \"action\": \"fixed\",\r\n        \"website_ids\": [\r\n            1\r\n        ],\r\n        \"customer_group_ids\": [\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-earning-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:23:53 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:23:53 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"986"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"759084"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"rule_type\": 1,\n    \"point_amount\": 5,\n    \"money_step\": 0,\n    \"qty_step\": 0,\n    \"max_points\": 10,\n    \"discount_style\": \"fixed\",\n    \"discount_amount\": 10,\n    \"apply_to_shipping\": 0,\n    \"rule_id\": 3,\n    \"name\": \"Shopping Cart Earning Rule 1\",\n    \"description\": null,\n    \"from_date\": \"2020-10-14\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Address\\\",\\\"attribute\\\":\\\"base_subtotal\\\",\\\"operator\\\":\\\">\\\",\\\"value\\\":\\\"100\\\",\\\"is_value_processed\\\":false}]}\",\n    \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n    \"stop_rules_processing\": 0,\n    \"sort_order\": 0,\n    \"action\": \"fixed\",\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"b619556c-7401-4e05-8074-5efbf6065a69"},{"name":"Get Shopping Cart Spending Rules List","id":"8b322200-3a3c-4f51-9401-25b1439adf08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules","urlObject":{"path":["rest","V1","mpReward","shopping-cart-spending-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a7d5640d-5c66-4657-8f69-f5d09c1d87c5","name":"Get Shopping Cart Spending Rules List Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:24:03 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:24:03 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"959"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"759087"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"labels\": [\n                {\n                    \"store_id\": 0,\n                    \"label\": \"Shopping Cart Spending Rule 1\"\n                }\n            ],\n            \"rule_type\": 2,\n            \"point_amount\": 10,\n            \"money_step\": 0,\n            \"qty_step\": 0,\n            \"max_points\": 0,\n            \"discount_style\": \"fixed\",\n            \"discount_amount\": 4,\n            \"apply_to_shipping\": 0,\n            \"rule_id\": 1,\n            \"name\": \"spending rule\",\n            \"description\": null,\n            \"from_date\": \"2020-10-15\",\n            \"to_date\": null,\n            \"is_active\": 1,\n            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"stop_rules_processing\": 1,\n            \"sort_order\": 0,\n            \"action\": \"fixed\",\n            \"website_ids\": [\n                1\n            ],\n            \"customer_group_ids\": [\n                1,\n                2,\n                3\n            ]\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": [],\n        \"sort_orders\": [\n            {\n                \"field\": null,\n                \"direction\": null\n            }\n        ]\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"8b322200-3a3c-4f51-9401-25b1439adf08"},{"name":"Get Shopping Cart Spending Rule by ID","id":"cde84e63-e565-4ebf-b3ee-d6f8e61e7e3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules/:id","urlObject":{"path":["rest","V1","mpReward","shopping-cart-spending-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"8df64809-ad56-4d8b-9b73-ee977dba1e29","name":"Get Shopping Cart Spending Rule by ID Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","shopping-cart-spending-rules",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:36:46 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:36:46 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"844"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"105101"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"labels\": [\n        {\n            \"store_id\": 0,\n            \"label\": \"Shopping Cart Spending Rule 1\"\n        }\n    ],\n    \"rule_type\": 2,\n    \"point_amount\": 10,\n    \"money_step\": 0,\n    \"qty_step\": 0,\n    \"max_points\": 0,\n    \"discount_style\": \"fixed\",\n    \"discount_amount\": 4,\n    \"apply_to_shipping\": 0,\n    \"rule_id\": 1,\n    \"name\": \"spending rule\",\n    \"description\": null,\n    \"from_date\": \"2020-10-15\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n    \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n    \"stop_rules_processing\": 1,\n    \"sort_order\": 0,\n    \"action\": \"fixed\",\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"cde84e63-e565-4ebf-b3ee-d6f8e61e7e3f"},{"name":"Delete Shopping Cart Spending Rule by ID","id":"a61a04ef-face-4275-9a76-47bf1b5604a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules/:id","urlObject":{"path":["rest","V1","mpReward","shopping-cart-spending-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"6661225e-096f-4e2b-814a-3b05825d0266","name":"Delete Shopping Cart Spending Rule by ID Example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","shopping-cart-spending-rules",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:37:08 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:37:08 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"789891"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"a61a04ef-face-4275-9a76-47bf1b5604a1"},{"name":"Create/Update Shopping Cart Spending Rule","id":"7f2ee974-9c80-4a39-a06d-0d6c31bb4553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"labels\": [\r\n            {\r\n                \"store_id\": 0,\r\n                \"label\": \"Shopping Cart Spending Rule 1\"\r\n            }\r\n        ],\r\n        \"rule_type\": 2,\r\n        \"point_amount\": 10,\r\n        \"money_step\": 0,\r\n        \"qty_step\": 0,\r\n        \"max_points\": 0,\r\n        \"discount_style\": \"fixed\",\r\n        \"discount_amount\": 4,\r\n        \"apply_to_shipping\": 0,\r\n        \"name\": \"spending rule\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-15\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\r\n        \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\r\n        \"stop_rules_processing\": 1,\r\n        \"sort_order\": 0,\r\n        \"action\": \"fixed\",\r\n        \"website_ids\": [\r\n            1\r\n        ],\r\n        \"customer_group_ids\": [\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules","urlObject":{"path":["rest","V1","mpReward","shopping-cart-spending-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c647ad5a-0405-45ba-aa71-7c35e3894030","name":"Create/Update Shopping Cart Spending Rule Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"labels\": [\r\n            {\r\n                \"store_id\": 0,\r\n                \"label\": \"Shopping Cart Spending Rule 1\"\r\n            }\r\n        ],\r\n        \"rule_type\": 2,\r\n        \"point_amount\": 10,\r\n        \"money_step\": 0,\r\n        \"qty_step\": 0,\r\n        \"max_points\": 0,\r\n        \"discount_style\": \"fixed\",\r\n        \"discount_amount\": 4,\r\n        \"apply_to_shipping\": 0,\r\n        \"name\": \"spending rule\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-15\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\r\n        \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\r\n        \"stop_rules_processing\": 1,\r\n        \"sort_order\": 0,\r\n        \"action\": \"fixed\",\r\n        \"website_ids\": [\r\n            1\r\n        ],\r\n        \"customer_group_ids\": [\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/shopping-cart-spending-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 04:38:33 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ic5mjijndlvbe529mrd693pj6f; expires=Thu, 22-Oct-2020 05:38:33 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"844"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"3904"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"labels\": [\n        {\n            \"store_id\": 0,\n            \"label\": \"Shopping Cart Spending Rule 1\"\n        }\n    ],\n    \"rule_type\": 2,\n    \"point_amount\": 10,\n    \"money_step\": 0,\n    \"qty_step\": 0,\n    \"max_points\": 0,\n    \"discount_style\": \"fixed\",\n    \"discount_amount\": 4,\n    \"apply_to_shipping\": 0,\n    \"rule_id\": 4,\n    \"name\": \"spending rule\",\n    \"description\": null,\n    \"from_date\": \"2020-10-15\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n    \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n    \"stop_rules_processing\": 1,\n    \"sort_order\": 0,\n    \"action\": \"fixed\",\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"7f2ee974-9c80-4a39-a06d-0d6c31bb4553"}],"id":"45740048-cb36-4c33-9d50-cc893bf20c74","_postman_id":"45740048-cb36-4c33-9d50-cc893bf20c74","description":""}],"event":[{"listen":"prerequest","script":{"id":"19e9c037-ed99-4e24-9738-32f58e347320","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d7c8ad39-bd7c-4041-b8ba-d3bb32d395be","type":"text/javascript","exec":[""]}}]}