{"info":{"_postman_id":"f8d31ef4-268e-40cc-90a8-9d336f608cd0","name":"Magento 2 Reward Points Standard 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":"f8d31ef4-268e-40cc-90a8-9d336f608cd0","publishedId":"TVRhaUSQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-06T09:22:08.000Z"},"item":[{"name":"TRANSACTIONS","item":[{"name":"Create Transaction","id":"dc3c5d7a-2156-4062-b474-45934246be42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"customer_id\": 3,\r\n        \"point_amount\": 20\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/create","urlObject":{"path":["rest","V1","mpReward","transactions","create"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"4d7de765-4d54-4509-be7b-09ce76bd8f02","name":"Create Transaction Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"customer_id\": 1,\r\n        \"point_amount\": 20\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:28:17 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:28:17 GMT; Max-Age=3600; path=/quynh/ce235a; 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":"507980"},{"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":"dc3c5d7a-2156-4062-b474-45934246be42"},{"name":"Get Transaction List","id":"0528e66c-ef6a-4b81-824c-5ccfd277847c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions","urlObject":{"path":["rest","V1","mpReward","transactions"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"4e8290e2-dfae-4fb6-b535-0fd72b9d4477","name":"Get Transaction List Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:28:35 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:28:35 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1921"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"179884"},{"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            \"transaction_id\": 1,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 13,\n            \"point_remaining\": 13,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 3,\n            \"created_at\": \"2020-10-06 03:48:47\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000003\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000003\"\n        },\n        {\n            \"transaction_id\": 2,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 10,\n            \"point_remaining\": 10,\n            \"point_used\": 0,\n            \"status\": 3,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 03:49:22\",\n            \"expiration_date\": \"2020-10-09 03:49:22\",\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"test expire\\\",\\\"admin_id\\\":1}\",\n            \"comment\": \"test expire\"\n        },\n        {\n            \"transaction_id\": 3,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 20,\n            \"point_remaining\": 20,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 03:57:03\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"Updated by Admin\\\",\\\"admin_id\\\":\\\"1\\\"}\",\n            \"comment\": \"Updated by Admin\"\n        },\n        {\n            \"transaction_id\": 4,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 9,\n            \"point_remaining\": 9,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 4,\n            \"created_at\": \"2020-10-06 04:01:03\",\n            \"expiration_date\": \"2020-10-16 04:01:03\",\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000004\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000004\"\n        },\n        {\n            \"transaction_id\": 5,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 20,\n            \"point_remaining\": 20,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 08:28:17\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"Updated by Admin\\\",\\\"admin_id\\\":\\\"1\\\"}\",\n            \"comment\": \"Updated by Admin\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 5\n}"}],"_postman_id":"0528e66c-ef6a-4b81-824c-5ccfd277847c"},{"name":"Count Transaction","id":"e2354f99-1b74-4554-9ca2-d5cf485354c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/count","urlObject":{"path":["rest","V1","mpReward","transactions","count"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f689e1e6-8fd8-4452-b9ff-911a637f781e","name":"Get Transaction Count Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:29:06 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:29:06 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"13"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"146177"},{"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        \"total\": 5\n    }\n]"}],"_postman_id":"e2354f99-1b74-4554-9ca2-d5cf485354c0"},{"name":"Get Transaction by Account ID","id":"edb898a8-e480-4720-8895-d880be0da7aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/account/:id","urlObject":{"path":["rest","V1","mpReward","transactions","account",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"24e4a29e-1ce3-40d8-8baf-11ee2c5a6eaf","name":"Get Transaction by Account ID Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/transactions/account/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","transactions","account",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:29:37 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:29:37 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1921"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"146183"},{"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            \"transaction_id\": 1,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 13,\n            \"point_remaining\": 13,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 3,\n            \"created_at\": \"2020-10-06 03:48:47\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000003\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000003\"\n        },\n        {\n            \"transaction_id\": 2,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 10,\n            \"point_remaining\": 10,\n            \"point_used\": 0,\n            \"status\": 3,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 03:49:22\",\n            \"expiration_date\": \"2020-10-09 03:49:22\",\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"test expire\\\",\\\"admin_id\\\":1}\",\n            \"comment\": \"test expire\"\n        },\n        {\n            \"transaction_id\": 3,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 20,\n            \"point_remaining\": 20,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 03:57:03\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"Updated by Admin\\\",\\\"admin_id\\\":\\\"1\\\"}\",\n            \"comment\": \"Updated by Admin\"\n        },\n        {\n            \"transaction_id\": 4,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 9,\n            \"point_remaining\": 9,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 4,\n            \"created_at\": \"2020-10-06 04:01:03\",\n            \"expiration_date\": \"2020-10-16 04:01:03\",\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000004\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000004\"\n        },\n        {\n            \"transaction_id\": 5,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 20,\n            \"point_remaining\": 20,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 08:28:17\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"Updated by Admin\\\",\\\"admin_id\\\":\\\"1\\\"}\",\n            \"comment\": \"Updated by Admin\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 5\n}"}],"_postman_id":"edb898a8-e480-4720-8895-d880be0da7aa"},{"name":"Get Transaction by Order ID","id":"cb9f24f9-6dd0-4cfb-b515-f7e85ffef6ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/order/:id","urlObject":{"path":["rest","V1","mpReward","transactions","order",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"3","key":"id"}]}},"response":[{"id":"a8d6b7c4-aa5a-4ee9-9b35-478d678f6a36","name":"Get Transaction by Order ID Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/transactions/order/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","transactions","order",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:29:57 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:29:57 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"429"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"731974"},{"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            \"transaction_id\": 1,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 13,\n            \"point_remaining\": 13,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 3,\n            \"created_at\": \"2020-10-06 03:48:47\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000003\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000003\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 1\n}"}],"_postman_id":"cb9f24f9-6dd0-4cfb-b515-f7e85ffef6ed"},{"name":"Get expire of Transaction (đang lỗi)","id":"0a2e07af-556a-4d3d-919f-0aa13dc34efa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/:id/expire","urlObject":{"path":["rest","V1","mpReward","transactions",":id","expire"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"3","key":"id"}]}},"response":[{"id":"792e0366-5640-4ec5-a81a-022c75b5a3e1","name":"Get expire of Transaction Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/transactions/:id/expire","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","transactions",":id","expire"],"variable":[{"key":"id","value":"3"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:30:35 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:30:35 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"Content-Length","value":"47"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"731981"},{"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":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Could not expire the transaction \"\n}"}],"_postman_id":"0a2e07af-556a-4d3d-919f-0aa13dc34efa"},{"name":"Cancel Transaction","id":"8bd76728-3aa3-48fd-800f-61900610741b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/transactions/:id/cancel","urlObject":{"path":["rest","V1","mpReward","transactions",":id","cancel"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"3","key":"id"}]}},"response":[{"id":"b6d71851-6b16-47ea-9b0e-61f4c0e73ddc","name":"Cancel Transaction Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/transactions/:id/cancel","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","transactions",":id","cancel"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:31:01 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:31:01 GMT; Max-Age=3600; path=/quynh/ce235a; 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":"731990"},{"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":"8bd76728-3aa3-48fd-800f-61900610741b"},{"name":"Get Customer's Transaction","id":"8a0abd89-28fb-4a6a-b17f-ab06857d06e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/mine/transactions","urlObject":{"path":["rest","V1","mpReward","mine","transactions"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"68c5c2d5-c9a2-4bb1-986d-c095f8a8ab7d","name":"Get Customer's Transaction Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/mine/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:31:15 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:31:15 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1921"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"926967"},{"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            \"transaction_id\": 1,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 13,\n            \"point_remaining\": 13,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 3,\n            \"created_at\": \"2020-10-06 03:48:47\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000003\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000003\"\n        },\n        {\n            \"transaction_id\": 2,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 10,\n            \"point_remaining\": 10,\n            \"point_used\": 0,\n            \"status\": 3,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 03:49:22\",\n            \"expiration_date\": \"2020-10-09 03:49:22\",\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"test expire\\\",\\\"admin_id\\\":1}\",\n            \"comment\": \"test expire\"\n        },\n        {\n            \"transaction_id\": 3,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 20,\n            \"point_remaining\": 20,\n            \"point_used\": 0,\n            \"status\": 3,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 03:57:03\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"Updated by Admin\\\",\\\"admin_id\\\":\\\"1\\\"}\",\n            \"comment\": \"Updated by Admin\"\n        },\n        {\n            \"transaction_id\": 4,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"earning_order\",\n            \"action_type\": \"1\",\n            \"store_id\": 1,\n            \"point_amount\": 9,\n            \"point_remaining\": 9,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 4,\n            \"created_at\": \"2020-10-06 04:01:03\",\n            \"expiration_date\": \"2020-10-16 04:01:03\",\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"increment_id\\\":\\\"000000004\\\"}\",\n            \"comment\": \"Earn points for purchasing order #000000004\"\n        },\n        {\n            \"transaction_id\": 5,\n            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"action_code\": \"admin\",\n            \"action_type\": \"4\",\n            \"store_id\": 1,\n            \"point_amount\": 20,\n            \"point_remaining\": 20,\n            \"point_used\": 0,\n            \"status\": 2,\n            \"order_id\": 0,\n            \"created_at\": \"2020-10-06 08:28:17\",\n            \"expiration_date\": null,\n            \"expire_email_sent\": \"0\",\n            \"extra_content\": \"{\\\"comment\\\":\\\"Updated by Admin\\\",\\\"admin_id\\\":\\\"1\\\"}\",\n            \"comment\": \"Updated by Admin\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 5\n}"}],"_postman_id":"8a0abd89-28fb-4a6a-b17f-ab06857d06e5"}],"id":"a57c0e55-089c-4f6d-9ffd-2c86a45be1c6","_postman_id":"a57c0e55-089c-4f6d-9ffd-2c86a45be1c6","description":""},{"name":"REWARD CUSTOMER","item":[{"name":"Subscribe Reward Notification","id":"9d56c861-793b-49b2-addb-e58d63c1c0c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"isUpdate","value":"1","type":"text"},{"key":"isExpire","value":"1","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/mine/subscribe","urlObject":{"path":["rest","V1","mpReward","mine","subscribe"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"55c1edf2-9078-46a0-8145-ceb67b307966","name":"Subscribe Reward Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"isUpdate","value":"1","type":"text"},{"key":"isExpire","value":"1","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/mine/subscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:34:35 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:34:35 GMT; Max-Age=3600; path=/quynh/ce235a; 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":"926997"},{"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":"9d56c861-793b-49b2-addb-e58d63c1c0c7"},{"name":"Get List Accounts","id":"7782997d-2415-4a96-9065-118a4b2a26b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/accounts","urlObject":{"path":["rest","V1","mpReward","accounts"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"182ed0d1-c653-41b7-b936-a9239951de15","name":"Get List Accounts Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:34:50 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:34:50 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"187"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"927000"},{"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            \"reward_id\": 1,\n            \"customer_id\": 1,\n            \"point_balance\": 42,\n            \"point_spent\": 0,\n            \"point_earned\": 22,\n            \"notification_update\": \"1\",\n            \"notification_expire\": \"1\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 1\n}"}],"_postman_id":"7782997d-2415-4a96-9065-118a4b2a26b6"},{"name":"Get Customer's Accounts","id":"e938231f-90df-46e0-a183-a04880a1b6bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/mine/account","urlObject":{"path":["rest","V1","mpReward","mine","account"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9ecab7d5-a26d-4bf4-881c-dccc7889f54c","name":"Get Customer's Accounts Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/mine/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:35:49 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:35:49 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"136"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"927011"},{"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    \"reward_id\": 1,\n    \"customer_id\": 1,\n    \"point_balance\": 42,\n    \"point_spent\": 0,\n    \"point_earned\": 22,\n    \"notification_update\": \"1\",\n    \"notification_expire\": \"1\"\n}"}],"_postman_id":"e938231f-90df-46e0-a183-a04880a1b6bf"},{"name":"Get Accounts by ID","id":"ebd4672f-21b1-4751-b118-5b45d12f3a3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/accounts/:id","urlObject":{"path":["rest","V1","mpReward","accounts",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"afd97fd4-6aed-4f72-9df8-1ece9808add4","name":"Get Accounts by ID Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/accounts/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","accounts",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:36:01 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:36:01 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"136"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"954782"},{"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    \"reward_id\": 1,\n    \"customer_id\": 1,\n    \"point_balance\": 42,\n    \"point_spent\": 0,\n    \"point_earned\": 22,\n    \"notification_update\": \"1\",\n    \"notification_expire\": \"1\"\n}"}],"_postman_id":"ebd4672f-21b1-4751-b118-5b45d12f3a3c"},{"name":"Count Accounts","id":"9db80678-b56f-4d30-8f38-3cd60df3673b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/accounts/count","urlObject":{"path":["rest","V1","mpReward","accounts","count"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1b2aef62-d94a-459f-82d6-ea8b392a75d7","name":"Count Accounts Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/accounts/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:36:41 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:36:41 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"13"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"954798"},{"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        \"total\": 1\n    }\n]"}],"_postman_id":"9db80678-b56f-4d30-8f38-3cd60df3673b"},{"name":"Delete Account","id":"a9f2d7b5-3f9c-4dff-be1c-c452b663b6ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/accounts/:id","urlObject":{"path":["rest","V1","mpReward","accounts",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"2","key":"id"}]}},"response":[{"id":"842de310-8b15-4522-9ddc-0d462d86addc","name":"Delete Account Example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpReward/accounts/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","accounts",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:39:20 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:39:20 GMT; Max-Age=3600; path=/quynh/ce235a; 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":"146329"},{"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":"a9f2d7b5-3f9c-4dff-be1c-c452b663b6ef"},{"name":"Get Account by Email","id":"1e51c287-4cbf-4651-b8a2-fcacd047579a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"roni_cost@example.com","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/accounts/email","urlObject":{"path":["rest","V1","mpReward","accounts","email"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"d856cbf5-a55c-4db8-a995-fb9c1685dcde","name":"Get Account by Email Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"roni_cost@example.com","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpReward/accounts/email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:39:38 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:39:38 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"136"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"146339"},{"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    \"reward_id\": 1,\n    \"customer_id\": 1,\n    \"point_balance\": 42,\n    \"point_spent\": 0,\n    \"point_earned\": 22,\n    \"notification_update\": \"1\",\n    \"notification_expire\": \"1\"\n}"}],"_postman_id":"1e51c287-4cbf-4651-b8a2-fcacd047579a"}],"id":"5669772a-bc68-4747-a32e-1bcdd78c9d3c","_postman_id":"5669772a-bc68-4747-a32e-1bcdd78c9d3c","description":""},{"name":"REWARD RATE","item":[{"name":"Get List Rate","id":"babb6509-c945-4b1f-b781-0257961f8069","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/rates","urlObject":{"path":["rest","V1","mpReward","rates"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"506a9061-7e1e-48b4-9553-6d8f016ca904","name":"Get List Rate 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/rates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:47:27 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:47:27 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"270"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"442321"},{"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            \"rate_id\": 1,\n            \"points\": 1,\n            \"money\": 10,\n            \"priority\": 0,\n            \"customer_group_ids\": \"1,2,3\",\n            \"website_ids\": \"1\",\n            \"direction\": 2\n        },\n        {\n            \"rate_id\": 3,\n            \"points\": 20,\n            \"money\": 1,\n            \"priority\": 0,\n            \"customer_group_ids\": \"1,2,3\",\n            \"website_ids\": \"1\",\n            \"direction\": 1\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 2\n}"}],"_postman_id":"babb6509-c945-4b1f-b781-0257961f8069"},{"name":"Create or Update Rate","id":"696b4e65-f2a4-4fae-af7a-d91f627a4b1c","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    \"rewardRate\":{\r\n        \"points\": 1,\r\n            \"money\": 10,\r\n            \"priority\": 0,\r\n            \"customer_group_ids\": \"1,2\",\r\n            \"website_ids\": \"1\",\r\n            \"direction\": 2\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/rates","description":"<p>There are 2 options in field \"direction\", which are Spending Rate and Earning Rate:</p>\n<ul>\n<li>\"direction\": 1 equals Spending Rate</li>\n<li>\"direction\": 2 equals Earning Rate</li>\n</ul>\n","urlObject":{"path":["rest","V1","mpReward","rates"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e9c22d52-ab9d-402d-8196-e252459400ca","name":"Create Rate 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    \"rewardRate\":{\r\n        \"points\": 1,\r\n            \"money\": 10,\r\n            \"priority\": 0,\r\n            \"customer_group_ids\": \"1,2\",\r\n            \"website_ids\": \"1\",\r\n            \"direction\": 2\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpReward/rates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:47:55 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:47:55 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"107"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"508371"},{"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    \"rate_id\": 4,\n    \"points\": 1,\n    \"money\": 10,\n    \"priority\": 0,\n    \"customer_group_ids\": \"1,2\",\n    \"website_ids\": \"1\",\n    \"direction\": 2\n}"}],"_postman_id":"696b4e65-f2a4-4fae-af7a-d91f627a4b1c"},{"name":"Get Rate by ID","id":"46e2769e-b02a-43a1-b8df-83a4a74cbd23","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/rate/:id","urlObject":{"path":["rest","V1","mpReward","rate",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"1","key":"id"}]}},"response":[{"id":"3d9a3052-2785-4cb8-96e5-2353adc6b854","name":"Get Rate 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/rate/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","rate",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:48:15 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:48:15 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"109"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"442329"},{"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    \"rate_id\": 1,\n    \"points\": 1,\n    \"money\": 10,\n    \"priority\": 0,\n    \"customer_group_ids\": \"1,2,3\",\n    \"website_ids\": \"1\",\n    \"direction\": 2\n}"}],"_postman_id":"46e2769e-b02a-43a1-b8df-83a4a74cbd23"},{"name":"Delete Rate","id":"0cce973d-2a03-4ef7-b78d-d2355104c128","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/rates/:id","urlObject":{"path":["rest","V1","mpReward","rates",":id"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"string","value":"4","key":"id"}]}},"response":[{"id":"6173e81a-81c1-4343-9560-ae8837ffc5ec","name":"Delete Rate 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/rates/:id","host":["{{magento_base_url}}"],"path":["rest","V1","mpReward","rates",":id"],"variable":[{"key":"id","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:48:33 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:48:33 GMT; Max-Age=3600; path=/quynh/ce235a; 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":"442335"},{"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":"0cce973d-2a03-4ef7-b78d-d2355104c128"}],"id":"96ccc644-e4d0-4d6c-a67c-0cc3f0afd681","_postman_id":"96ccc644-e4d0-4d6c-a67c-0cc3f0afd681","description":""},{"name":"Spending Reward Point by Customer","id":"445916a6-18d8-4bc7-8a77-d3e391f8a8f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"cartId","value":"19","type":"text"},{"key":"points","value":"10","type":"text"},{"key":"ruleId","value":"rate","type":"text"},{"key":"addressInformation","value":"VietNam","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/carts/mine/mpreward","urlObject":{"path":["rest","V1","carts","mine","mpreward"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"77235549-6da4-480b-b9a4-aa4d65664c56","name":"Reward Point for customer cart Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"cartId","value":"","type":"text"},{"key":"points","value":"5","type":"text"},{"key":"ruleId","value":"","type":"text"},{"key":"addressInformation","value":"","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/carts/mine/mpreward"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:49:36 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:49:36 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1921"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"508388"},{"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    \"grand_total\": 90,\n    \"base_grand_total\": 97.43,\n    \"subtotal\": 90,\n    \"base_subtotal\": 90,\n    \"discount_amount\": 0,\n    \"base_discount_amount\": 0,\n    \"subtotal_with_discount\": 90,\n    \"base_subtotal_with_discount\": 90,\n    \"shipping_amount\": 0,\n    \"base_shipping_amount\": 0,\n    \"shipping_discount_amount\": 0,\n    \"base_shipping_discount_amount\": 0,\n    \"tax_amount\": 7.43,\n    \"base_tax_amount\": 7.43,\n    \"weee_tax_applied_amount\": null,\n    \"shipping_tax_amount\": 0,\n    \"base_shipping_tax_amount\": 0,\n    \"subtotal_incl_tax\": 97.43,\n    \"shipping_incl_tax\": 0,\n    \"base_shipping_incl_tax\": 0,\n    \"base_currency_code\": \"USD\",\n    \"quote_currency_code\": \"USD\",\n    \"items_qty\": 2,\n    \"items\": [\n        {\n            \"item_id\": 14,\n            \"price\": 45,\n            \"base_price\": 45,\n            \"qty\": 2,\n            \"row_total\": 90,\n            \"base_row_total\": 90,\n            \"row_total_with_discount\": 0,\n            \"tax_amount\": 7.43,\n            \"base_tax_amount\": 7.43,\n            \"tax_percent\": 8.25,\n            \"discount_amount\": 0,\n            \"base_discount_amount\": 0,\n            \"discount_percent\": 0,\n            \"price_incl_tax\": 48.72,\n            \"base_price_incl_tax\": 48.72,\n            \"row_total_incl_tax\": 97.43,\n            \"base_row_total_incl_tax\": 97.43,\n            \"options\": \"[]\",\n            \"weee_tax_applied_amount\": null,\n            \"weee_tax_applied\": null,\n            \"name\": \"Overnight Duffle\"\n        }\n    ],\n    \"total_segments\": [\n        {\n            \"code\": \"subtotal\",\n            \"title\": \"Subtotal\",\n            \"value\": 90\n        },\n        {\n            \"code\": \"shipping\",\n            \"title\": \"Shipping & Handling (Best Way - Table Rate)\",\n            \"value\": 0\n        },\n        {\n            \"code\": \"tax\",\n            \"title\": \"Tax\",\n            \"value\": 7.43,\n            \"extension_attributes\": {\n                \"tax_grandtotal_details\": [\n                    {\n                        \"amount\": 7.43,\n                        \"rates\": [\n                            {\n                                \"percent\": \"8.25\",\n                                \"title\": \"US-MI-*-Rate 1\"\n                            }\n                        ],\n                        \"group_id\": 1\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"grand_total\",\n            \"title\": \"Grand Total\",\n            \"value\": 97.43,\n            \"area\": \"footer\"\n        },\n        {\n            \"code\": \"mp_reward_spent\",\n            \"title\": \"You will spend\",\n            \"value\": 5\n        },\n        {\n            \"code\": \"mp_reward_earn\",\n            \"title\": \"You will earn\",\n            \"value\": 9\n        }\n    ],\n    \"extension_attributes\": {\n        \"reward_points\": \"{\\\"pattern\\\":{\\\"single\\\":\\\"{point}point\\\",\\\"plural\\\":\\\"{point}points\\\"},\\\"balance\\\":null,\\\"spending\\\":{\\\"pointSpent\\\":\\\"5\\\",\\\"ruleApplied\\\":null,\\\"rules\\\":[{\\\"id\\\":\\\"rate\\\",\\\"label\\\":\\\"Each of 20points gets $1.00 discount\\\",\\\"min\\\":0,\\\"max\\\":\\\"42\\\",\\\"step\\\":1,\\\"isDisplaySlider\\\":true}],\\\"isCheckoutCart\\\":false,\\\"useMaxPoints\\\":false}}\"\n    }\n}"}],"_postman_id":"445916a6-18d8-4bc7-8a77-d3e391f8a8f6"},{"name":"Get Config Info","id":"d5d18171-7be2-4ce1-9c4c-a9a0b22ae965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/configs","urlObject":{"path":["rest","V1","mpReward","configs"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f0376d5d-067e-4b3e-a2a7-26ee3a211562","name":"Get Config Info Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/configs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:49:55 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:49:55 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"745"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"508391"},{"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    \"general\": {\n        \"enabled\": true,\n        \"account_navigation_label\": \"My Points and Rewards\",\n        \"point_label\": \"point\",\n        \"plural_point_label\": \"points\",\n        \"display_point_label\": \"1\",\n        \"zero_amount\": \"zero point\",\n        \"show_point_icon\": true,\n        \"icon\": \"http://dev.mageplaza.vn/api/ce235a/pub/media/mageplaza/rewardpoints/default/point.png\",\n        \"maximum_point\": 100\n    },\n    \"earning\": {\n        \"round_method\": \"normal\",\n        \"earn_from_tax\": false,\n        \"earn_shipping\": false,\n        \"point_refund\": true,\n        \"sales_earn\": {\n            \"earn_point_after_invoice_created\": \"1\",\n            \"point_expired\": \"10\"\n        }\n    },\n    \"spending\": {\n        \"discount_label\": \"Reward Points\",\n        \"minimum_balance\": 0,\n        \"maximum_point_per_order\": 0,\n        \"spend_on_tax\": false,\n        \"spend_on_ship\": false,\n        \"restore_point_after_refund\": true,\n        \"use_max_point\": false\n    },\n    \"display\": {\n        \"top_page\": false,\n        \"mini_cart\": true\n    }\n}"}],"_postman_id":"d5d18171-7be2-4ce1-9c4c-a9a0b22ae965"},{"name":"Refund order","id":"3ad927ab-cc2a-4b17-86ce-cdf58b835e16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/configs","urlObject":{"path":["rest","V1","mpReward","configs"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a361cf8b-42db-49a9-8ef9-051f67dfd7a7","name":"Get Config Info Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}/rest/V1/mpReward/configs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:49:55 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:49:55 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"745"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"508391"},{"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    \"general\": {\n        \"enabled\": true,\n        \"account_navigation_label\": \"My Points and Rewards\",\n        \"point_label\": \"point\",\n        \"plural_point_label\": \"points\",\n        \"display_point_label\": \"1\",\n        \"zero_amount\": \"zero point\",\n        \"show_point_icon\": true,\n        \"icon\": \"http://dev.mageplaza.vn/api/ce235a/pub/media/mageplaza/rewardpoints/default/point.png\",\n        \"maximum_point\": 100\n    },\n    \"earning\": {\n        \"round_method\": \"normal\",\n        \"earn_from_tax\": false,\n        \"earn_shipping\": false,\n        \"point_refund\": true,\n        \"sales_earn\": {\n            \"earn_point_after_invoice_created\": \"1\",\n            \"point_expired\": \"10\"\n        }\n    },\n    \"spending\": {\n        \"discount_label\": \"Reward Points\",\n        \"minimum_balance\": 0,\n        \"maximum_point_per_order\": 0,\n        \"spend_on_tax\": false,\n        \"spend_on_ship\": false,\n        \"restore_point_after_refund\": true,\n        \"use_max_point\": false\n    },\n    \"display\": {\n        \"top_page\": false,\n        \"mini_cart\": true\n    }\n}"}],"_postman_id":"3ad927ab-cc2a-4b17-86ce-cdf58b835e16"}],"event":[{"listen":"prerequest","script":{"id":"cf3f0977-b5d4-4a48-92d1-792a544a45af","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4d862e20-b3a4-4609-b6e4-39df62c41c36","type":"text/javascript","exec":[""]}}]}