{"info":{"_postman_id":"f5bac482-c879-4a77-895e-63af9e5deb23","name":"Magento 2 Countdown Timer REST API & Examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"f5bac482-c879-4a77-895e-63af9e5deb23","publishedId":"TVKA3yYt","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-17T07:44:43.000Z"},"item":[{"name":"Get Rule","id":"2576b922-360c-442b-8f5a-91065e77a2cf","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/mpCountdownTimer/rules","urlObject":{"path":["rest","V1","mpCountdownTimer","rules"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e75eba3d-df98-4c57-8e10-450afc697606","name":"Get Rule 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/mpCountdownTimer/rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Sep 2020 02:33:08 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=3b7aobaqj9b9je67hbsa8625bj; expires=Thu, 17-Sep-2020 03:33:09 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"5598"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1041"},{"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\": \"Specific Products\",\n            \"status\": true,\n            \"store_ids\": \"0\",\n            \"customer_group_ids\": \"0,1,2,3\",\n            \"rule_type\": \"1\",\n            \"catalog_rule_id\": 0,\n            \"from_date\": \"2020-09-16 02:26:00\",\n            \"to_date\": \"2020-09-30 02:20:00\",\n            \"priority\": 0,\n            \"position\": \"0,1\",\n            \"enable_before_start\": true,\n            \"clock_style_before\": \"style4\",\n            \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_before\": \"#000000\",\n            \"message_color_before\": \"#000000\",\n            \"clock_color_before\": \"#00BF96\",\n            \"number_color_before\": \"#ffffff\",\n            \"text_color_before\": \"#ffffff\",\n            \"enable_while_running\": true,\n            \"clock_style_running\": \"style2\",\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_running\": \"#000000\",\n            \"message_color_running\": \"#000000\",\n            \"clock_color_running\": \"#846add\",\n            \"number_color_running\": \"#ffffff\",\n            \"text_color_running\": \"#ffffff\",\n            \"save_amount\": \"\",\n            \"save_percent\": \"\",\n            \"time_zone\": \"America/Chicago\",\n            \"updated_at\": \"2020-09-17 02:32:52\",\n            \"created_at\": \"2020-09-16 07:08:25\",\n            \"remaining_time\": null\n        },\n        {\n            \"rule_id\": 3,\n            \"name\": \"All Products\",\n            \"status\": true,\n            \"store_ids\": \"0\",\n            \"customer_group_ids\": \"0,1,2,3\",\n            \"rule_type\": \"0\",\n            \"catalog_rule_id\": 0,\n            \"from_date\": \"2020-09-16 02:26:00\",\n            \"to_date\": \"2020-09-30 02:20:00\",\n            \"priority\": 0,\n            \"position\": \"0,1\",\n            \"enable_before_start\": true,\n            \"clock_style_before\": \"style5\",\n            \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_before\": \"#000000\",\n            \"message_color_before\": \"#000000\",\n            \"clock_color_before\": \"#222\",\n            \"number_color_before\": \"#111\",\n            \"text_color_before\": \"#f47321\",\n            \"enable_while_running\": true,\n            \"clock_style_running\": \"style2\",\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_running\": \"#000000\",\n            \"message_color_running\": \"#000000\",\n            \"clock_color_running\": \"#846add\",\n            \"number_color_running\": \"#ffffff\",\n            \"text_color_running\": \"#ffffff\",\n            \"save_amount\": \"\",\n            \"save_percent\": \"\",\n            \"time_zone\": \"America/Chicago\",\n            \"updated_at\": \"2020-09-17 02:32:06\",\n            \"created_at\": \"2020-09-16 09:31:13\",\n            \"remaining_time\": null\n        },\n        {\n            \"rule_id\": 4,\n            \"name\": \"Inherit Conditions\",\n            \"status\": true,\n            \"store_ids\": \"0\",\n            \"customer_group_ids\": \"0,1,2,3\",\n            \"rule_type\": \"2\",\n            \"catalog_rule_id\": 2,\n            \"from_date\": \"2020-09-16 02:26:00\",\n            \"to_date\": \"2020-09-30 02:20:00\",\n            \"priority\": 0,\n            \"position\": \"0,1\",\n            \"enable_before_start\": true,\n            \"clock_style_before\": \"style2\",\n            \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_before\": \"#000000\",\n            \"message_color_before\": \"#000000\",\n            \"clock_color_before\": \"#846add\",\n            \"number_color_before\": \"#ffffff\",\n            \"text_color_before\": \"#ffffff\",\n            \"enable_while_running\": true,\n            \"clock_style_running\": \"style3\",\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_running\": \"#000000\",\n            \"message_color_running\": \"#000000\",\n            \"clock_color_running\": \"#333333\",\n            \"number_color_running\": \"#ffffff\",\n            \"text_color_running\": \"#ffffff\",\n            \"save_amount\": \"\",\n            \"save_percent\": \"\",\n            \"time_zone\": \"America/Chicago\",\n            \"updated_at\": \"2020-09-17 02:31:39\",\n            \"created_at\": \"2020-09-17 02:21:14\",\n            \"remaining_time\": null\n        },\n        {\n            \"rule_id\": 5,\n            \"name\": \"None Product\",\n            \"status\": true,\n            \"store_ids\": \"0\",\n            \"customer_group_ids\": \"0,1,2,3\",\n            \"rule_type\": \"3\",\n            \"catalog_rule_id\": 0,\n            \"from_date\": \"2020-09-16 02:26:00\",\n            \"to_date\": \"2020-09-30 02:20:00\",\n            \"priority\": 0,\n            \"position\": \"3\",\n            \"enable_before_start\": true,\n            \"clock_style_before\": \"style1\",\n            \"template_before_product\": \"a\",\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_before\": \"#58EB4B\",\n            \"message_color_before\": \"#0E45EB\",\n            \"clock_color_before\": \"#EB2131\",\n            \"number_color_before\": \"\",\n            \"text_color_before\": \"#EBE681\",\n            \"enable_while_running\": true,\n            \"clock_style_running\": \"style2\",\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n            \"title_color_running\": \"#000000\",\n            \"message_color_running\": \"#000000\",\n            \"clock_color_running\": \"#846add\",\n            \"number_color_running\": \"#ffffff\",\n            \"text_color_running\": \"#ffffff\",\n            \"save_amount\": \"\",\n            \"save_percent\": \"\",\n            \"time_zone\": \"America/Chicago\",\n            \"updated_at\": \"2020-09-17 02:27:06\",\n            \"created_at\": \"2020-09-17 02:21:58\",\n            \"remaining_time\": null\n        }\n    ]\n}"}],"_postman_id":"2576b922-360c-442b-8f5a-91065e77a2cf"},{"name":"Get Rule  ID","id":"1831e6a9-77f3-4ada-963f-ac0f95fff159","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/mpCountdownTimer/rules/:id","urlObject":{"path":["rest","V1","mpCountdownTimer","rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"737296e2-d1a8-4c1e-bb11-1516c564c5af","name":"Get Rule  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/mpCountdownTimer/rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpCountdownTimer","rules",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Sep 2020 02:34:55 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=3b7aobaqj9b9je67hbsa8625bj; expires=Thu, 17-Sep-2020 03:34:56 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1440"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1046"},{"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\": \"Specific Products\",\n    \"status\": true,\n    \"store_ids\": \"0\",\n    \"customer_group_ids\": \"0,1,2,3\",\n    \"rule_type\": \"1\",\n    \"catalog_rule_id\": 0,\n    \"from_date\": \"2020-09-16 02:26:00\",\n    \"to_date\": \"2020-09-30 02:20:00\",\n    \"priority\": 0,\n    \"position\": \"0,1\",\n    \"enable_before_start\": true,\n    \"clock_style_before\": \"style4\",\n    \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_before\": \"#000000\",\n    \"message_color_before\": \"#000000\",\n    \"clock_color_before\": \"#00BF96\",\n    \"number_color_before\": \"#ffffff\",\n    \"text_color_before\": \"#ffffff\",\n    \"enable_while_running\": true,\n    \"clock_style_running\": \"style2\",\n    \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_running\": \"#000000\",\n    \"message_color_running\": \"#000000\",\n    \"clock_color_running\": \"#846add\",\n    \"number_color_running\": \"#ffffff\",\n    \"text_color_running\": \"#ffffff\",\n    \"save_amount\": \"\",\n    \"save_percent\": \"\",\n    \"time_zone\": \"America/Chicago\",\n    \"updated_at\": \"2020-09-17 02:32:52\",\n    \"created_at\": \"2020-09-16 07:08:25\",\n    \"remaining_time\": null\n}"}],"_postman_id":"1831e6a9-77f3-4ada-963f-ac0f95fff159"},{"name":"Delete Rule ID","id":"87759a4a-2437-48ba-8f36-f4bb60b9ef3b","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/mpCountdownTimer/rules/:id","urlObject":{"path":["rest","V1","mpCountdownTimer","rules",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"2","key":"id"}]}},"response":[{"id":"dfd9f3dc-8c59-4fc3-aec4-f23b3bf69045","name":"Delete Rule 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/mpCountdownTimer/rules/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpCountdownTimer","rules",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Sep 2020 09:28:17 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ke4ou447fishjthjv9v9q2eif7; expires=Wed, 16-Sep-2020 10:28:17 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; 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":"529717"},{"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":"87759a4a-2437-48ba-8f36-f4bb60b9ef3b"},{"name":"Create/Update Rule","id":"798145c8-51a7-4cf0-bc17-e5e4f562e18f","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    {\r\n            \"rule_id\": \"1\",\r\n            \"name\": \"Specific Products\",\r\n            \"status\": true,\r\n            \"store_ids\": \"0\",\r\n            \"customer_group_ids\": \"0,1,2,3\",\r\n            \"rule_type\": \"0\",\r\n            \"catalog_rule_id\": 0,\r\n            \"from_date\": \"2020-09-16 02:26:00\",\r\n            \"to_date\": \"2020-09-30 02:20:00\",\r\n            \"priority\": 0,\r\n            \"position\": \"0,1\",\r\n            \"enable_before_start\": true,\r\n            \"clock_style_before\": \"style1\",\r\n            \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\r\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\r\n            \"title_color_before\": \"#58EB4B\",\r\n            \"message_color_before\": \"#0E45EB\",\r\n            \"number_color_before\": \"#EB2131\",\r\n            \"text_color_before\": \"#EBE681\",\r\n            \"enable_while_running\": true,\r\n            \"clock_style_running\": \"style2\",\r\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\r\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\r\n            \"title_color_running\": \"#000000\",\r\n            \"message_color_running\": \"#000000\",\r\n            \"clock_color_running\": \"#846add\",\r\n            \"number_color_running\": \"#ffffff\",\r\n            \"text_color_running\": \"#ffffff\"\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpCountdownTimer/rule","urlObject":{"path":["rest","V1","mpCountdownTimer","rule"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"90746553-b351-4185-ba9e-34401633406d","name":"Create 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    {\r\n            \"name\": \"All products\",\r\n            \"status\": true,\r\n            \"store_ids\": \"0\",\r\n            \"customer_group_ids\": \"0,1,2,3\",\r\n            \"rule_type\": \"0\",\r\n            \"catalog_rule_id\": 0,\r\n            \"from_date\": \"2020-09-16 02:26:00\",\r\n            \"to_date\": \"2020-09-30 02:20:00\",\r\n            \"priority\": 0,\r\n            \"position\": \"0,1\",\r\n            \"enable_before_start\": true,\r\n            \"clock_style_before\": \"style1\",\r\n            \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\r\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\r\n            \"title_color_before\": \"#58EB4B\",\r\n            \"message_color_before\": \"#0E45EB\",\r\n            \"number_color_before\": \"#EB2131\",\r\n            \"text_color_before\": \"#EBE681\",\r\n            \"enable_while_running\": true,\r\n            \"clock_style_running\": \"style2\",\r\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\r\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\r\n            \"title_color_running\": \"#000000\",\r\n            \"message_color_running\": \"#000000\",\r\n            \"clock_color_running\": \"#846add\",\r\n            \"number_color_running\": \"#ffffff\",\r\n            \"text_color_running\": \"#ffffff\",\r\n            \"save_amount\": \"\",\r\n            \"save_percent\": \"\",\r\n            \"time_zone\": \"America/Chicago\",\r\n            \"updated_at\": \"2020-09-16 09:31:13\",\r\n            \"created_at\": \"2020-09-16 09:31:13\",\r\n            \"remaining_time\": null\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpCountdownTimer/rule"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Sep 2020 09:31:13 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ke4ou447fishjthjv9v9q2eif7; expires=Wed, 16-Sep-2020 10:31:13 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1430"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"829855"},{"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\": 3,\n    \"name\": \"All products\",\n    \"status\": true,\n    \"store_ids\": \"0\",\n    \"customer_group_ids\": \"0,1,2,3\",\n    \"rule_type\": \"0\",\n    \"catalog_rule_id\": 0,\n    \"from_date\": \"2020-09-16 02:26:00\",\n    \"to_date\": \"2020-09-30 02:20:00\",\n    \"priority\": 0,\n    \"position\": \"0,1\",\n    \"enable_before_start\": true,\n    \"clock_style_before\": \"style1\",\n    \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_before\": \"#58EB4B\",\n    \"message_color_before\": \"#0E45EB\",\n    \"clock_color_before\": \"#EB2131\",\n    \"number_color_before\": null,\n    \"text_color_before\": \"#EBE681\",\n    \"enable_while_running\": true,\n    \"clock_style_running\": \"style2\",\n    \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_running\": \"#000000\",\n    \"message_color_running\": \"#000000\",\n    \"clock_color_running\": \"#846add\",\n    \"number_color_running\": \"#ffffff\",\n    \"text_color_running\": \"#ffffff\",\n    \"save_amount\": \"\",\n    \"save_percent\": \"\",\n    \"time_zone\": \"America/Chicago\",\n    \"updated_at\": \"2020-09-16 09:31:13\",\n    \"created_at\": \"2020-09-16 09:31:13\",\n    \"remaining_time\": null\n}"},{"id":"b1ae758d-8ed5-472e-a144-625294376524","name":"Update 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    {\r\n            \"rule_id\": \"1\",\r\n            \"name\": \"Specific Products\",\r\n            \"status\": true,\r\n            \"store_ids\": \"0\",\r\n            \"customer_group_ids\": \"0,1,2,3\",\r\n            \"rule_type\": \"0\",\r\n            \"catalog_rule_id\": 0,\r\n            \"from_date\": \"2020-09-16 02:26:00\",\r\n            \"to_date\": \"2020-09-30 02:20:00\",\r\n            \"priority\": 0,\r\n            \"position\": \"0,1\",\r\n            \"enable_before_start\": true,\r\n            \"clock_style_before\": \"style1\",\r\n            \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\r\n            \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\r\n            \"title_color_before\": \"#58EB4B\",\r\n            \"message_color_before\": \"#0E45EB\",\r\n            \"number_color_before\": \"#EB2131\",\r\n            \"text_color_before\": \"#EBE681\",\r\n            \"enable_while_running\": true,\r\n            \"clock_style_running\": \"style2\",\r\n            \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\r\n            \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\r\n            \"title_color_running\": \"#000000\",\r\n            \"message_color_running\": \"#000000\",\r\n            \"clock_color_running\": \"#846add\",\r\n            \"number_color_running\": \"#ffffff\",\r\n            \"text_color_running\": \"#ffffff\"\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpCountdownTimer/rule"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Sep 2020 04:05:25 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=3b7aobaqj9b9je67hbsa8625bj; expires=Thu, 17-Sep-2020 05:05:25 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1463"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"232115"},{"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\": \"Specific Products\",\n    \"status\": true,\n    \"store_ids\": \"0\",\n    \"customer_group_ids\": \"0,1,2,3\",\n    \"rule_type\": \"0\",\n    \"catalog_rule_id\": 0,\n    \"from_date\": \"2020-09-16 02:26:00\",\n    \"to_date\": \"2020-09-30 02:20:00\",\n    \"priority\": 0,\n    \"position\": \"0,1\",\n    \"enable_before_start\": true,\n    \"clock_style_before\": \"style1\",\n    \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_before\": \"#58EB4B\",\n    \"message_color_before\": \"#0E45EB\",\n    \"clock_color_before\": \"#EB2131\",\n    \"number_color_before\": \"#ffffff\",\n    \"text_color_before\": \"#EBE681\",\n    \"enable_while_running\": true,\n    \"clock_style_running\": \"style2\",\n    \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_running\": \"#000000\",\n    \"message_color_running\": \"#000000\",\n    \"clock_color_running\": \"#846add\",\n    \"number_color_running\": \"#ffffff\",\n    \"text_color_running\": \"#ffffff\",\n    \"save_amount\": \"\",\n    \"save_amount_value\": 0,\n    \"save_percent\": \"\",\n    \"time_zone\": \"Asia/Ho_Chi_Minh\",\n    \"updated_at\": \"2020-09-17 04:05:25\",\n    \"created_at\": \"2020-09-16 07:08:25\",\n    \"remaining_time\": null\n}"}],"_postman_id":"798145c8-51a7-4cf0-bc17-e5e4f562e18f"},{"name":"Get Products Guest","id":"dbcd1a4a-a235-467d-bb1a-2bb8900a7dea","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/mpCountdownTimer/guest/page/:type/products/:id","urlObject":{"path":["rest","V1","mpCountdownTimer","guest","page",":type","products",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"type"},{"type":"string","value":"14","key":"id"}]}},"response":[{"id":"885ecf55-39b0-4f9c-a4ed-738b3fa795dc","name":"Get Products Guest 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/mpCountdownTimer/guest/page/:type/products/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpCountdownTimer","guest","page",":type","products",":id"],"variable":[{"key":"type","value":"1"},{"key":"id","value":"14"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Sep 2020 04:50:27 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=3b7aobaqj9b9je67hbsa8625bj; expires=Thu, 17-Sep-2020 05:50:27 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1481"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"690718"},{"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\": 3,\n    \"name\": \"All Products\",\n    \"status\": true,\n    \"store_ids\": \"0\",\n    \"customer_group_ids\": \"0\",\n    \"rule_type\": \"0\",\n    \"catalog_rule_id\": 0,\n    \"from_date\": \"2020/09/01\",\n    \"to_date\": \"2020/10/01\",\n    \"priority\": 0,\n    \"position\": \"0,1\",\n    \"enable_before_start\": true,\n    \"clock_style_before\": \"style1\",\n    \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_before\": \"#eb5202\",\n    \"message_color_before\": \"#eb5202\",\n    \"clock_color_before\": \"\",\n    \"number_color_before\": \"#eb5202\",\n    \"text_color_before\": \"#eb5202\",\n    \"enable_while_running\": true,\n    \"clock_style_running\": \"style4\",\n    \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_running\": \"#000000\",\n    \"message_color_running\": \"#000000\",\n    \"clock_color_running\": \"#00BF96\",\n    \"number_color_running\": \"#ffffff\",\n    \"text_color_running\": \"#ffffff\",\n    \"save_amount\": \"<span class=\\\"price\\\">₫22.50</span>\",\n    \"save_amount_value\": 22.5,\n    \"save_percent\": \"50%\",\n    \"time_zone\": \"Asia/Ho_Chi_Minh\",\n    \"updated_at\": \"2020-09-17 04:30:38\",\n    \"created_at\": \"2020-09-16 09:31:13\",\n    \"remaining_time\": 1105773\n}"}],"_postman_id":"dbcd1a4a-a235-467d-bb1a-2bb8900a7dea"},{"name":"Get Products Mine","id":"06ec2ab6-8e26-4b9f-af24-5f937af6b9c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"}],"url":"{{magento_base_url}}/rest/V1/mpCountdownTimer/mine/page/:type/products/:id","urlObject":{"path":["rest","V1","mpCountdownTimer","mine","page",":type","products",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"type"},{"type":"string","value":"64","key":"id"}]}},"response":[{"id":"7c4a9b0f-066a-49a5-9fcc-a471daf9cd47","name":"Get Products Mine Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpCountdownTimer/mine/page/:type/products/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpCountdownTimer","mine","page",":type","products",":id"],"variable":[{"key":"type","value":"1"},{"key":"id","value":"64"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Sep 2020 07:22:43 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=anfqqnct1ebknr5couupt0sc75; expires=Thu, 17-Sep-2020 08:22:43 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1495"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"953661"},{"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\": \"Specific Products\",\n    \"status\": true,\n    \"store_ids\": \"0\",\n    \"customer_group_ids\": \"0,1,2,3\",\n    \"rule_type\": \"1\",\n    \"catalog_rule_id\": 0,\n    \"from_date\": \"2020/09/16\",\n    \"to_date\": \"2020/09/19\",\n    \"priority\": 0,\n    \"position\": \"0,1\",\n    \"enable_before_start\": true,\n    \"clock_style_before\": \"style2\",\n    \"template_before_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_before_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_before\": \"#000000\",\n    \"message_color_before\": \"#000000\",\n    \"clock_color_before\": \"#846add\",\n    \"number_color_before\": \"#ffffff\",\n    \"text_color_before\": \"#ffffff\",\n    \"enable_while_running\": true,\n    \"clock_style_running\": \"style3\",\n    \"template_running_product\": \"<div class=\\\"mp-countdown-title\\\">This product is discounting {{save_percent}}</div>\\r\\n{{clock}}\\r\\n<div class=\\\"mp-countdown-message\\\">Hurry up!</div>\",\n    \"template_running_category\": \"<div class=\\\"mp-countdown-title\\\">Discounting {{save_percent}}. Hurry up!</div>\\r\\n{{clock}}\",\n    \"title_color_running\": \"#000000\",\n    \"message_color_running\": \"#000000\",\n    \"clock_color_running\": \"#333333\",\n    \"number_color_running\": \"#ffffff\",\n    \"text_color_running\": \"#ffffff\",\n    \"save_amount\": \"<span class=\\\"price\\\">₫32.00</span>\",\n    \"save_amount_value\": 32,\n    \"save_percent\": \"62%\",\n    \"time_zone\": \"Asia/Ho_Chi_Minh\",\n    \"updated_at\": \"2020-09-17 07:22:28\",\n    \"created_at\": \"2020-09-16 07:08:25\",\n    \"remaining_time\": 59837\n}"}],"_postman_id":"06ec2ab6-8e26-4b9f-af24-5f937af6b9c2"}]}