{"info":{"_postman_id":"3116deef-5c59-4cb3-8c0b-786b3f239b83","name":"Magento 2 Reward Points Ultimate 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":"3116deef-5c59-4cb3-8c0b-786b3f239b83","publishedId":"TVYDeemd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-23T03:24:31.000Z"},"item":[{"name":"INVITATIONS","item":[{"name":"Get Invitations List","id":"5638cf12-1fbc-46d7-946b-02e05e577eab","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/invitations?searchCriteria","urlObject":{"path":["rest","V1","mpReward","invitations"],"host":["{{magento_base_url}}"],"query":[{"key":"searchCriteria","value":null}],"variable":[]}},"response":[{"id":"44207fa2-f473-49c3-b8a7-06f6921ccf24","name":"Get Invitations List 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/invitations?searchCriteria","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","invitations"],"query":[{"key":"searchCriteria","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 09:56:14 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 10:56:14 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"266"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"594981"},{"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            \"invitation_id\": 1,\n            \"referral_email\": \"roni_cost@example.com\",\n            \"invited_email\": \"test@example.com\",\n            \"referral_earn\": 9,\n            \"invited_earn\": 5,\n            \"invited_discount\": 0,\n            \"store_id\": 1,\n            \"created_at\": \"2020-10-21 09:55:05\"\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": []\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"5638cf12-1fbc-46d7-946b-02e05e577eab"},{"name":"Get Invitations by Customer","id":"a7701784-af08-4e73-9b29-92f2196b4bfc","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/mine/invitations?searchCriteria","urlObject":{"path":["rest","V1","mpReward","mine","invitations"],"host":["{{magento_base_url}}"],"query":[{"key":"searchCriteria","value":null}],"variable":[]}},"response":[{"id":"2f3abfb6-8eb5-46c3-b7b4-69cb5ad0afe0","name":"Get Invitations by Customer Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/mine/invitations?searchCriteria","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","mine","invitations"],"query":[{"key":"searchCriteria","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 09:57:50 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 10:57:50 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"266"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"594992"},{"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            \"invitation_id\": 1,\n            \"referral_email\": \"roni_cost@example.com\",\n            \"invited_email\": \"test@example.com\",\n            \"referral_earn\": 9,\n            \"invited_earn\": 5,\n            \"invited_discount\": 0,\n            \"store_id\": 1,\n            \"created_at\": \"2020-10-21 09:55:05\"\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": []\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"a7701784-af08-4e73-9b29-92f2196b4bfc"},{"name":"Invite by Email","id":"328e8d64-4293-4cc1-983a-a77fc39f4807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"sendFrom","value":"store","type":"text"},{"key":"emails","value":"test@example.com","type":"text"},{"key":"message","value":"An invitation to your friends has been sent successfully!","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/mine/invite","urlObject":{"path":["rest","V1","mpReward","mine","invite"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9580ef5f-3180-4822-a1f7-224eff77a1e8","name":"Invite by Email Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"sendFrom","value":"store","type":"text"},{"key":"emails","value":"test@example.com","type":"text"},{"key":"message","value":"An invitation to your friends has been sent successfully!","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/mine/invite"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:01:33 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:01:33 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":"595189"},{"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":"328e8d64-4293-4cc1-983a-a77fc39f4807"},{"name":"Invite by Refer Code","id":"9ce39f5d-5ad0-4d45-a10b-99adf4d4ec62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"code","value":"MDozOnVMT09IQjRhbFR4Qit3QWdVZTBwMy93NE9CR0VYVUFObUpQUE9YVT0=","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/invitation/refer","urlObject":{"path":["rest","V1","mpReward","invitation","refer"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a562ad54-d665-4547-a6c6-a27a3378fc63","name":"Invite by Refer Code Example","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"code","value":"MDozOnVMT09IQjRhbFR4Qit3QWdVZTBwMy93NE9CR0VYVUFObUpQUE9YVT0=","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/invitation/refer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:04:50 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:04:50 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"mp_refer=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/"},{"key":"Set-Cookie","value":"mp_refer=MDozOnVMT09IQjRhbFR4Qit3QWdVZTBwMy93NE9CR0VYVUFObUpQUE9YVT0%3D; path=/"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1051220"},{"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":"9ce39f5d-5ad0-4d45-a10b-99adf4d4ec62"},{"name":"Get Refer Code","id":"e8d4e99d-0f83-469d-a4fe-807fed12d01b","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/invitation/mine/code","urlObject":{"path":["rest","V1","mpReward","invitation","mine","code"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1d343d58-7231-454a-b1b3-dd7050ee1790","name":"Get Refer Code 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/invitation/mine/code"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:07:40 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:07:40 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"62"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"986476"},{"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":"\"MDozOmJLdkphYzZONXAvbm1IMk14cXF2OTdaZksrVndwOE9kbFZTNGhvOD0=\""}],"_postman_id":"e8d4e99d-0f83-469d-a4fe-807fed12d01b"},{"name":"Count Invitations","id":"6af2fe30-41c4-4f5f-9ea4-7976b5580283","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/invitations/count","urlObject":{"path":["rest","V1","mpReward","invitations","count"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"5b3b20dd-3730-4b1e-9379-d1fae89775e4","name":"Count Invitations 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/invitations/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:09:22 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:09:22 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"141434"},{"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":"1"}],"_postman_id":"6af2fe30-41c4-4f5f-9ea4-7976b5580283"},{"name":"Get Invite by Email","id":"660062f8-e167-4423-b1ac-f0d515e7c775","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/invitations/invited/:email?searchCriteria","urlObject":{"path":["rest","V1","mpReward","invitations","invited",":email"],"host":["{{magento_base_url}}"],"query":[{"key":"searchCriteria","value":null}],"variable":[{"type":"string","value":"test@example.com","key":"email"}]}},"response":[{"id":"07bb9a2b-6afa-4bc7-a61b-d30ac44bd329","name":"Get Invite by Email 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/invitations/invited/:email?searchCriteria","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","invitations","invited",":email"],"query":[{"key":"searchCriteria","value":null}],"variable":[{"key":"email","value":"test@example.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:29:29 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:29:29 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"266"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"207072"},{"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            \"invitation_id\": 1,\n            \"referral_email\": \"roni_cost@example.com\",\n            \"invited_email\": \"test@example.com\",\n            \"referral_earn\": 9,\n            \"invited_earn\": 5,\n            \"invited_discount\": 0,\n            \"store_id\": 1,\n            \"created_at\": \"2020-10-21 09:55:05\"\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": []\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"660062f8-e167-4423-b1ac-f0d515e7c775"},{"name":"Get Referral by Email","id":"6b55bd5e-4c52-4f2c-ac4c-f00b61ee22e1","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/invitations/referral/:email?searchCriteria","urlObject":{"path":["rest","V1","mpReward","invitations","referral",":email"],"host":["{{magento_base_url}}"],"query":[{"key":"searchCriteria","value":null}],"variable":[{"type":"string","value":"roni_cost@example.com","key":"email"}]}},"response":[{"id":"0da5840d-455e-4bee-9bad-f9136cd0c5d2","name":"Get Referral by Email 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/invitations/referral/:email?searchCriteria","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","invitations","referral",":email"],"query":[{"key":"searchCriteria","value":null}],"variable":[{"key":"email","value":"roni_cost@example.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:55:55 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:55:55 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"266"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"885116"},{"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            \"invitation_id\": 1,\n            \"referral_email\": \"roni_cost@example.com\",\n            \"invited_email\": \"test@example.com\",\n            \"referral_earn\": 9,\n            \"invited_earn\": 5,\n            \"invited_discount\": 0,\n            \"store_id\": 1,\n            \"created_at\": \"2020-10-21 09:55:05\"\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": []\n    },\n    \"total_count\": 1\n}"}],"_postman_id":"6b55bd5e-4c52-4f2c-ac4c-f00b61ee22e1"}],"id":"df042c2a-6812-4b06-80d9-97406d130933","_postman_id":"df042c2a-6812-4b06-80d9-97406d130933","description":""},{"name":"REFERRAL RULES","item":[{"name":"Get Referral Rules List","id":"85c45b36-5296-4506-9b16-ccfc05f2f1e7","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/referral-rules","urlObject":{"path":["rest","V1","mpReward","referral-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"7ecdb228-265c-455b-bb8a-6b7213870a8b","name":"Get Referral 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/referral-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:58:28 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:58:28 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":"142940"},{"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_id\": 1,\n            \"name\": \"rule 1\",\n            \"description\": null,\n            \"from_date\": \"2020-10-09\",\n            \"to_date\": null,\n            \"is_active\": 1,\n            \"sort_order\": 0,\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\": 0,\n            \"customer_action\": \"fixed_points\",\n            \"customer_points\": 5,\n            \"customer_money_step\": 0,\n            \"customer_discount\": 0,\n            \"customer_apply_to_shipping\": 0,\n            \"referral_type\": \"price\",\n            \"referral_points\": 2,\n            \"referral_money_step\": 10,\n            \"referral_apply_to_shipping\": 0,\n            \"website_ids\": [\n                1\n            ],\n            \"customer_group_ids\": [\n                1,\n                2,\n                3\n            ],\n            \"referral_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":"85c45b36-5296-4506-9b16-ccfc05f2f1e7"},{"name":"Get Referral Rule by ID","id":"2454753e-d029-4ef2-8ef2-1955e7f8e228","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/referral-rules/:id","urlObject":{"path":["rest","V1","mpReward","referral-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"ff614184-6512-478e-8827-93480ecc90a0","name":"Get Referral Rule 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/referral-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","referral-rules",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:59:28 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:59:28 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"871"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"142943"},{"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_id\": 1,\n    \"name\": \"rule 1\",\n    \"description\": null,\n    \"from_date\": \"2020-10-09\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"sort_order\": 0,\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\": 0,\n    \"customer_action\": \"fixed_points\",\n    \"customer_points\": 5,\n    \"customer_money_step\": 0,\n    \"customer_discount\": 0,\n    \"customer_apply_to_shipping\": 0,\n    \"referral_type\": \"price\",\n    \"referral_points\": 2,\n    \"referral_money_step\": 10,\n    \"referral_apply_to_shipping\": 0,\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ],\n    \"referral_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"2454753e-d029-4ef2-8ef2-1955e7f8e228"},{"name":"Delete Referral Rule by ID","id":"de20c046-e346-46b0-8bfa-3e629a9abb97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/referral-rules/:id","urlObject":{"path":["rest","V1","mpReward","referral-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"15dcdb12-073c-49d9-a1bb-fd225860fcb3","name":"Get Referral Rule 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/referral-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","referral-rules",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 10:59:28 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 11:59:28 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"871"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"142943"},{"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_id\": 1,\n    \"name\": \"rule 1\",\n    \"description\": null,\n    \"from_date\": \"2020-10-09\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"sort_order\": 0,\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\": 0,\n    \"customer_action\": \"fixed_points\",\n    \"customer_points\": 5,\n    \"customer_money_step\": 0,\n    \"customer_discount\": 0,\n    \"customer_apply_to_shipping\": 0,\n    \"referral_type\": \"price\",\n    \"referral_points\": 2,\n    \"referral_money_step\": 10,\n    \"referral_apply_to_shipping\": 0,\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ],\n    \"referral_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"de20c046-e346-46b0-8bfa-3e629a9abb97"},{"name":"Create Referral Rule","id":"beb978e4-1ca8-4784-a3b2-5b163476a68b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"name\": \"rule 1\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-09\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"sort_order\": 0,\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\": 0,\r\n        \"customer_action\": \"fixed_points\",\r\n        \"customer_points\": 5,\r\n        \"customer_money_step\": 0,\r\n        \"customer_discount\": 0,\r\n        \"customer_apply_to_shipping\": 0,\r\n        \"referral_type\": \"price\",\r\n        \"referral_points\": 2,\r\n        \"referral_money_step\": 10,\r\n        \"referral_apply_to_shipping\": 0,\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        \"referral_group_ids\": [\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/referral-rules","urlObject":{"path":["rest","V1","mpReward","referral-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"d8ad3097-9580-43fe-b00d-025a2346fe0b","name":"Create Referral Rule Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"name\": \"rule 1\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-09\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"sort_order\": 0,\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\": 0,\r\n        \"customer_action\": \"fixed_points\",\r\n        \"customer_points\": 5,\r\n        \"customer_money_step\": 0,\r\n        \"customer_discount\": 0,\r\n        \"customer_apply_to_shipping\": 0,\r\n        \"referral_type\": \"price\",\r\n        \"referral_points\": 2,\r\n        \"referral_money_step\": 10,\r\n        \"referral_apply_to_shipping\": 0,\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        \"referral_group_ids\": [\r\n            1,\r\n            2,\r\n            3\r\n        ]\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/referral-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 11:04:15 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 12:04:15 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"871"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"822421"},{"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_id\": 2,\n    \"name\": \"rule 1\",\n    \"description\": null,\n    \"from_date\": \"2020-10-09\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"sort_order\": 0,\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\": 0,\n    \"customer_action\": \"fixed_points\",\n    \"customer_points\": 5,\n    \"customer_money_step\": 0,\n    \"customer_discount\": 0,\n    \"customer_apply_to_shipping\": 0,\n    \"referral_type\": \"price\",\n    \"referral_points\": 2,\n    \"referral_money_step\": 10,\n    \"referral_apply_to_shipping\": 0,\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        1,\n        2,\n        3\n    ],\n    \"referral_group_ids\": [\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"beb978e4-1ca8-4784-a3b2-5b163476a68b"}],"id":"2304b623-a3a3-4d15-8885-0ae5359d2ab2","_postman_id":"2304b623-a3a3-4d15-8885-0ae5359d2ab2","description":""},{"name":"BEHAVIOR RULES","item":[{"name":"Get Behavior Rules List","id":"230d92d6-0719-4ea0-b8be-ddf1b6b8314a","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/behavior-rules","urlObject":{"path":["rest","V1","mpReward","behavior-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"59bdc611-da90-488e-813a-05877a61cd41","name":"Get Behavior 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/behavior-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 01:37:47 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=1l124973cgaoapnge2juj939v6; expires=Thu, 22-Oct-2020 02:37:47 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"547"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"163970"},{"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_id\": 1,\n            \"name\": \"get 5 point after 10 days of inactive\",\n            \"description\": null,\n            \"from_date\": \"2020-10-14\",\n            \"to_date\": null,\n            \"is_active\": 1,\n            \"sort_order\": 0,\n            \"point_action\": \"11\",\n            \"min_words\": 0,\n            \"min_days\": 1,\n            \"is_purchased\": 0,\n            \"is_loop\": 1,\n            \"is_enabled_email\": 0,\n            \"sender\": null,\n            \"email_template\": null,\n            \"min_interval\": 0,\n            \"action\": \"1\",\n            \"fb_app_id\": null,\n            \"point_amount\": 5,\n            \"max_point\": 0,\n            \"max_point_period\": null,\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":"230d92d6-0719-4ea0-b8be-ddf1b6b8314a"},{"name":"Get Behavior Rule by ID","id":"61014be9-6b8a-43f5-9419-7bdf6fba75f1","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/behavior-rules/:id","urlObject":{"path":["rest","V1","mpReward","behavior-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"f1ded8d2-d4bc-4773-a59c-150594caeab0","name":"Get Behavior Rule 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/behavior-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","behavior-rules",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Oct 2020 03:01:09 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uv2qg5oqm258jjc4sb8snukbs9; expires=Fri, 23-Oct-2020 04:01:09 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"432"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"659825"},{"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_id\": 1,\n    \"name\": \"get 5 point after 10 days of inactive\",\n    \"description\": null,\n    \"from_date\": \"2020-10-14\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"sort_order\": 0,\n    \"point_action\": \"11\",\n    \"min_words\": 0,\n    \"min_days\": 1,\n    \"is_purchased\": 0,\n    \"is_loop\": 1,\n    \"is_enabled_email\": 0,\n    \"sender\": null,\n    \"email_template\": null,\n    \"min_interval\": 0,\n    \"action\": \"1\",\n    \"fb_app_id\": null,\n    \"point_amount\": 5,\n    \"max_point\": 0,\n    \"max_point_period\": null,\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        0,\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"61014be9-6b8a-43f5-9419-7bdf6fba75f1"},{"name":"Delete Behavior Rule by ID","id":"3b1e3b10-83f5-404f-96a1-46862424d1e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpReward/behavior-rules/:id","urlObject":{"path":["rest","V1","mpReward","behavior-rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"2","key":"id"}]}},"response":[{"id":"6ccd7d7a-77a4-45af-8226-75506b7df10b","name":"Delete Behavior Rule by ID Example","originalRequest":{"method":"DELETE","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/behavior-rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","behavior-rules",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 01:21:28 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=1l124973cgaoapnge2juj939v6; expires=Thu, 22-Oct-2020 02:21:28 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":"262182"},{"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":"3b1e3b10-83f5-404f-96a1-46862424d1e8"},{"name":"Create/Update Behavior Rule","id":"ed1e3c78-b019-460a-b3ee-44535d0382f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"rule_id\": 1,\r\n        \"name\": \"get 5 point after 10 days of inactive\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-14\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"sort_order\": 0,\r\n        \"point_action\": \"11\",\r\n        \"min_words\": 0,\r\n        \"min_days\": 1,\r\n        \"is_purchased\": 0,\r\n        \"is_loop\": 1,\r\n        \"is_enabled_email\": 0,\r\n        \"sender\": null,\r\n        \"email_template\": null,\r\n        \"min_interval\": 0,\r\n        \"action\": \"1\",\r\n        \"fb_app_id\": null,\r\n        \"point_amount\": 5,\r\n        \"max_point\": 0,\r\n        \"max_point_period\": null,\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/behavior-rules","urlObject":{"path":["rest","V1","mpReward","behavior-rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e57e1572-8a48-49da-bce2-150a01a1ea52","name":"Create/Update Behavior Rule Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rule\": {\r\n        \"rule_id\": 1,\r\n        \"name\": \"get 5 point after 10 days of inactive\",\r\n        \"description\": null,\r\n        \"from_date\": \"2020-10-14\",\r\n        \"to_date\": null,\r\n        \"is_active\": 1,\r\n        \"sort_order\": 0,\r\n        \"point_action\": \"11\",\r\n        \"min_words\": 0,\r\n        \"min_days\": 1,\r\n        \"is_purchased\": 0,\r\n        \"is_loop\": 1,\r\n        \"is_enabled_email\": 0,\r\n        \"sender\": null,\r\n        \"email_template\": null,\r\n        \"min_interval\": 0,\r\n        \"action\": \"1\",\r\n        \"fb_app_id\": null,\r\n        \"point_amount\": 5,\r\n        \"max_point\": 0,\r\n        \"max_point_period\": null,\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/behavior-rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Oct 2020 03:01:35 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uv2qg5oqm258jjc4sb8snukbs9; expires=Fri, 23-Oct-2020 04:01:35 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"432"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"527857"},{"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_id\": 1,\n    \"name\": \"get 5 point after 10 days of inactive\",\n    \"description\": null,\n    \"from_date\": \"2020-10-14\",\n    \"to_date\": null,\n    \"is_active\": 1,\n    \"sort_order\": 0,\n    \"point_action\": \"11\",\n    \"min_words\": 0,\n    \"min_days\": 1,\n    \"is_purchased\": 0,\n    \"is_loop\": 1,\n    \"is_enabled_email\": 0,\n    \"sender\": null,\n    \"email_template\": null,\n    \"min_interval\": 0,\n    \"action\": \"1\",\n    \"fb_app_id\": null,\n    \"point_amount\": 5,\n    \"max_point\": 0,\n    \"max_point_period\": null,\n    \"website_ids\": [\n        1\n    ],\n    \"customer_group_ids\": [\n        0,\n        1,\n        2,\n        3\n    ]\n}"}],"_postman_id":"ed1e3c78-b019-460a-b3ee-44535d0382f4"},{"name":"Get Email Template Options","id":"2bab8bd5-a3b4-4047-ad00-49366a6e2269","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/behavior-rules/email-templates","urlObject":{"path":["rest","V1","mpReward","behavior-rules","email-templates"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f2488085-b59a-4bb4-9773-ecb81ee267c7","name":"Get Email Template Options 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/behavior-rules/email-templates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 01:38:59 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=1l124973cgaoapnge2juj939v6; expires=Thu, 22-Oct-2020 02:38:59 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"189"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"327784"},{"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        \"value\": \"rewardpoints_email_birthday_template\",\n        \"label\": \"Points and Rewards Customer Birthday (Default)\",\n        \"__disableTmpl\": true\n    },\n    {\n        \"value\": \"1\",\n        \"label\": \"Happy Birthday!\",\n        \"__disableTmpl\": true\n    }\n]"}],"_postman_id":"2bab8bd5-a3b4-4047-ad00-49366a6e2269"},{"name":"Get Sender Options","id":"dde4e53f-cc8e-4c27-af58-e4603d29e022","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/behavior-rules/sender-options","urlObject":{"path":["rest","V1","mpReward","behavior-rules","sender-options"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"3efdbccd-c396-401a-8795-1cb79e646f88","name":"Get Sender Options 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/behavior-rules/sender-options"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Oct 2020 01:27:04 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=1l124973cgaoapnge2juj939v6; expires=Thu, 22-Oct-2020 02:27:04 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"195"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"98486"},{"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        \"value\": \"custom1\",\n        \"label\": \"Custom 1\"\n    },\n    {\n        \"value\": \"custom2\",\n        \"label\": \"Custom 2\"\n    },\n    {\n        \"value\": \"general\",\n        \"label\": \"Owner\"\n    },\n    {\n        \"value\": \"sales\",\n        \"label\": \"Sales\"\n    },\n    {\n        \"value\": \"support\",\n        \"label\": \"CustomerSupport\"\n    }\n]"}],"_postman_id":"dde4e53f-cc8e-4c27-af58-e4603d29e022"}],"id":"9a3ebb93-7204-46dc-b4d1-520c85a07581","_postman_id":"9a3ebb93-7204-46dc-b4d1-520c85a07581","description":""},{"name":"Apply Refer Code","item":[],"id":"6b79d8d3-aae8-4b8f-a82a-ffac1620b1c0","_postman_id":"6b79d8d3-aae8-4b8f-a82a-ffac1620b1c0","description":""}],"event":[{"listen":"prerequest","script":{"id":"0ee050cb-95a5-4b19-837a-b4523f788cc7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"14564d82-8bc4-422a-ad3e-a7f792c955ed","type":"text/javascript","exec":[""]}}]}