{"info":{"_postman_id":"9e23abe2-a17e-4070-b1aa-49817950ed2a","name":"Magento 2 Reward Points GraphQL","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"9e23abe2-a17e-4070-b1aa-49817950ed2a","publishedId":"TVRhaUSP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-06T09:21:56.000Z"},"item":[{"name":"Customer Subscrible","id":"530270e3-13cc-449c-b890-b8a0c53f1a0b","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":"graphql","graphql":{"query":"mutation {\r\n\tMpRewardSubscribe(input: { isUpdate: false, isExpire: false })\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1ae2da47-7f5a-4531-bd09-89fea539666e","name":"Customer Subscrible Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n\tMpRewardSubscribe(input: { isUpdate: false, isExpire: false })\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:00:03 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:00:03 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=158cf30a254731351c5ec1d5e79e12e1; expires=Fri, 04-Oct-2030 08:00:03 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"35"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"144014"},{"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    \"data\": {\n        \"MpRewardSubscribe\": true\n    }\n}"}],"_postman_id":"530270e3-13cc-449c-b890-b8a0c53f1a0b"},{"name":"Customer Spend Points","id":"c3c0f438-684f-4313-aaf7-6cc1aa53aeef","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":"graphql","graphql":{"query":"mutation spendingpoint(\r\n\t$cart_id: String!\r\n\t$points: Int!\r\n\t$rule_id: String!\r\n\t$address_information: AddressInformationInput!\r\n) {\r\n\tMpRewardSpendingPoint(\r\n\t\tcart_id: $cart_id\r\n\t\tpoints: $points\r\n\t\trule_id: $rule_id\r\n\t\taddress_information: $address_information\r\n\t) {\r\n\t\ttitle\r\n\t\tcode\r\n\t\tvalue\r\n\t}\r\n}\r\n","variables":"{\r\n    \"cart_id\":\"Lm9yI41Jqd94yVPNUOaroPOFIrI7jHBM\",\r\n    \"points\":2,\r\n     \"rule_id\":\"1\",\r\n    \"address_information\":{\r\n        \"address\":{\r\n               \"firstname\": \"John\",\r\n                \"lastname\": \"Doe\",\r\n                \"company\": \"Company Name\",\r\n                \"street\": [\"320 N Crescent Dr\", \"Beverly Hills\"],\r\n                \"city\": \"Los Angeles\",\r\n                \"region\": \"CA\",\r\n                \"postcode\": \"90210\",\r\n                \"country_code\": \"US\",\r\n                \"telephone\": \"123-456-0000\",\r\n                \"save_in_address_book\": false\r\n           },\r\n           \"shipping_methods\":{\r\n                \"carrier_code\": \"tablerate\",\r\n                \"method_code\": \"bestway\"\r\n           }\r\n      }\r\n}"}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e4736794-837a-4722-bb15-0481e5056e3a","name":"Customer spend point example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation spendingpoint(\r\n\t$cart_id: String!\r\n\t$points: Int!\r\n\t$rule_id: String!\r\n\t$address_information: AddressInformationInput!\r\n) {\r\n\tMpRewardSpendingPoint(\r\n\t\tcart_id: $cart_id\r\n\t\tpoints: $points\r\n\t\trule_id: $rule_id\r\n\t\taddress_information: $address_information\r\n\t) {\r\n\t\ttitle\r\n\t\tcode\r\n\t\tvalue\r\n\t}\r\n}\r\n","variables":"{\r\n    \"cart_id\":\"Lm9yI41Jqd94yVPNUOaroPOFIrI7jHBM\",\r\n    \"points\":2,\r\n     \"rule_id\":\"1\",\r\n    \"address_information\":{\r\n        \"address\":{\r\n               \"firstname\": \"John\",\r\n                \"lastname\": \"Doe\",\r\n                \"company\": \"Company Name\",\r\n                \"street\": [\"320 N Crescent Dr\", \"Beverly Hills\"],\r\n                \"city\": \"Los Angeles\",\r\n                \"region\": \"CA\",\r\n                \"postcode\": \"90210\",\r\n                \"country_code\": \"US\",\r\n                \"telephone\": \"123-456-0000\",\r\n                \"save_in_address_book\": false\r\n           },\r\n           \"shipping_methods\":{\r\n                \"carrier_code\": \"tablerate\",\r\n                \"method_code\": \"bestway\"\r\n           }\r\n      }\r\n}"}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 08:10:17 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 09:10:17 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=887662183d5cd9319f7d9d9410034593; expires=Fri, 04-Oct-2030 08:10:17 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"419"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"311990"},{"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    \"data\": {\n        \"MpRewardSpendingPoint\": [\n            {\n                \"title\": \"Subtotal\",\n                \"code\": \"subtotal\",\n                \"value\": \"90.0000\"\n            },\n            {\n                \"title\": \"Shipping & Handling (Best Way - Table Rate)\",\n                \"code\": \"shipping\",\n                \"value\": \"0.0000\"\n            },\n            {\n                \"title\": \"Tax\",\n                \"code\": \"tax\",\n                \"value\": \"7.4300\"\n            },\n            {\n                \"title\": \"Grand Total\",\n                \"code\": \"grand_total\",\n                \"value\": \"97.4300\"\n            },\n            {\n                \"title\": \"You will spend\",\n                \"code\": \"mp_reward_spent\",\n                \"value\": \"2\"\n            },\n            {\n                \"title\": \"You will earn\",\n                \"code\": \"mp_reward_earn\",\n                \"value\": \"9\"\n            }\n        ]\n    }\n}"}],"_postman_id":"c3c0f438-684f-4313-aaf7-6cc1aa53aeef"},{"name":"Shopping Cart Spending Rules","id":"6dd70e11-c30a-457a-9e58-1ec5bb7842e4","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":"graphql","graphql":{"query":"query{\r\n  MpRewardShoppingCartSpendingRules(cart_id:\"MrO1ZJT7KZ3VEyPYvwMEITUdeSGfomRN\"){\r\n    pointSpent\r\n    ruleApplied\r\n    rules {\r\n      id\r\n      label\r\n      max\r\n      min\r\n      step\r\n    }\r\n  }\r\n}","variables":"{\r\n    \"cart_id\":\"MrO1ZJT7KZ3VEyPYvwMEITUdeSGfomRN\",\r\n    \"points\":2,\r\n     \"rule_id\":\"1\",\r\n    \"address_information\":{\r\n        \"address\":{\r\n               \"firstname\": \"John\",\r\n                \"lastname\": \"Doe\",\r\n                \"company\": \"Company Name\",\r\n                \"street\": [\"320 N Crescent Dr\", \"Beverly Hills\"],\r\n                \"city\": \"Los Angeles\",\r\n                \"region\": \"CA\",\r\n                \"postcode\": \"90210\",\r\n                \"country_code\": \"US\",\r\n                \"telephone\": \"123-456-0000\",\r\n                \"save_in_address_book\": false\r\n           },\r\n           \"shipping_methods\":{\r\n                \"carrier_code\": \"tablerate\",\r\n                \"method_code\": \"bestway\"\r\n           }\r\n      }\r\n}"}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c7637b55-c7fb-4d78-9ea5-4569f94cede0","name":"Shopping Cart Spending Rules Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  MpRewardShoppingCartSpendingRules(cart_id:\"MrO1ZJT7KZ3VEyPYvwMEITUdeSGfomRN\"){\r\n    pointSpent\r\n    ruleApplied\r\n    rules {\r\n      id\r\n      label\r\n      max\r\n      min\r\n      step\r\n    }\r\n  }\r\n}","variables":"{\r\n    \"cart_id\":\"MrO1ZJT7KZ3VEyPYvwMEITUdeSGfomRN\",\r\n    \"points\":2,\r\n     \"rule_id\":\"1\",\r\n    \"address_information\":{\r\n        \"address\":{\r\n               \"firstname\": \"John\",\r\n                \"lastname\": \"Doe\",\r\n                \"company\": \"Company Name\",\r\n                \"street\": [\"320 N Crescent Dr\", \"Beverly Hills\"],\r\n                \"city\": \"Los Angeles\",\r\n                \"region\": \"CA\",\r\n                \"postcode\": \"90210\",\r\n                \"country_code\": \"US\",\r\n                \"telephone\": \"123-456-0000\",\r\n                \"save_in_address_book\": false\r\n           },\r\n           \"shipping_methods\":{\r\n                \"carrier_code\": \"tablerate\",\r\n                \"method_code\": \"bestway\"\r\n           }\r\n      }\r\n}"}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 26 Jan 2022 08:14:03 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 26 Jan 2021 08:14:03 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=vd12jt27b3q393lv600e70ha47; expires=Wed, 26-Jan-2022 09:14:03 GMT; Max-Age=3600; path=/hiennt/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=114af867ed1c84948759734cfa9b1627; expires=Sat, 24-Jan-2032 08:14:03 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=c9d7d53fcbee265c8f41235e1113715a; expires=Sat, 24-Jan-2032 08:14:03 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=3206f5cdcd2d1e8389b5de4e96acefac; expires=Sat, 24-Jan-2032 08:14:03 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Debug","value":"1"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"260"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"645337"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"MpRewardShoppingCartSpendingRules\": {\n            \"pointSpent\": 4,\n            \"ruleApplied\": \"rate\",\n            \"rules\": [\n                {\n                    \"id\": \"rate\",\n                    \"label\": \"Each of 1 point gets €10.00 discount\",\n                    \"max\": 11,\n                    \"min\": 0,\n                    \"step\": 1\n                },\n                {\n                    \"id\": \"3\",\n                    \"label\": \"Shopping Cart Spending Rule\",\n                    \"max\": 3,\n                    \"min\": 0,\n                    \"step\": 1\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"6dd70e11-c30a-457a-9e58-1ec5bb7842e4"},{"name":"Get Customer with Reward Points Info","id":"9c127f8a-4b54-49c2-bfd2-77ce30094c02","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":"graphql","graphql":{"query":"query{\r\n  customer{\r\n    lastname\r\n    firstname\r\n    email\r\n    mp_reward {\r\n      balance_limitation\r\n      customer_id\r\n      earn_point_expire\r\n      notification_expire\r\n      notification_update\r\n      point_balance\r\n      point_earned\r\n      point_spent\r\n      reward_id\r\n      current_exchange_rates {\r\n        earning_rate\r\n        spending_rate\r\n      }\r\n      invitations {\r\n        page_info {\r\n          currentPage\r\n          endPage\r\n          hasNextPage\r\n          hasPreviousPage\r\n          pageSize\r\n          startPage\r\n        }\r\n        items {\r\n          created_at\r\n          invitation_id\r\n          invited_discount\r\n          invited_earn\r\n          invited_email\r\n          referral_earn\r\n          referral_email\r\n          store_id\r\n          \r\n        }\r\n        total_count\r\n      }\r\n      transactions(filter:{order_id:{eq:\"000000003\"}}, pageSize:5, currentPage:1) {\r\n        total_count\r\n        page_info {\r\n          currentPage\r\n          endPage\r\n          hasNextPage\r\n          hasPreviousPage\r\n          pageSize\r\n          startPage\r\n        }\r\n        items {\r\n          action_code\r\n          action_type\r\n          comment\r\n          created_at\r\n          customer_id\r\n          expiration_date\r\n          expire_email_sent\r\n          order_id\r\n          point_amount\r\n          point_remaining\r\n          point_used\r\n          reward_id\r\n          status\r\n          store_id\r\n          transaction_id\r\n          \r\n        }\r\n      }\r\n      \r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"bcfacf12-fd2b-446c-8d51-0aae904e0a7d","name":"Get Customer with Reward Points Info Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  customer{\r\n    lastname\r\n    firstname\r\n    email\r\n    mp_reward {\r\n      balance_limitation\r\n      customer_id\r\n      earn_point_expire\r\n      notification_expire\r\n      notification_update\r\n      point_balance\r\n      point_earned\r\n      point_spent\r\n      reward_id\r\n      current_exchange_rates {\r\n        earning_rate\r\n        spending_rate\r\n      }\r\n      invitations {\r\n        page_info {\r\n          currentPage\r\n          endPage\r\n          hasNextPage\r\n          hasPreviousPage\r\n          pageSize\r\n          startPage\r\n        }\r\n        items {\r\n          created_at\r\n          invitation_id\r\n          invited_discount\r\n          invited_earn\r\n          invited_email\r\n          referral_earn\r\n          referral_email\r\n          store_id\r\n          \r\n        }\r\n        total_count\r\n      }\r\n      transactions(filter:{order_id:{eq:\"000000003\"}}, pageSize:5, currentPage:1) {\r\n        total_count\r\n        page_info {\r\n          currentPage\r\n          endPage\r\n          hasNextPage\r\n          hasPreviousPage\r\n          pageSize\r\n          startPage\r\n        }\r\n        items {\r\n          action_code\r\n          action_type\r\n          comment\r\n          created_at\r\n          customer_id\r\n          expiration_date\r\n          expire_email_sent\r\n          order_id\r\n          point_amount\r\n          point_remaining\r\n          point_used\r\n          reward_id\r\n          status\r\n          store_id\r\n          transaction_id\r\n          \r\n        }\r\n      }\r\n      \r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 21 Oct 2020 07:46:31 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=ee5dpkknq96g5f1ot60i5l2e62; expires=Wed, 21-Oct-2020 08:46:31 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=b4150681a69d357d5c7a47f3868aae6f; expires=Sat, 19-Oct-2030 07:46:31 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1477"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"1017445"},{"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    \"data\": {\n        \"customer\": {\n            \"lastname\": \"Costello\",\n            \"firstname\": \"Veronica\",\n            \"email\": \"roni_cost@example.com\",\n            \"mp_reward\": {\n                \"balance_limitation\": null,\n                \"customer_id\": 1,\n                \"earn_point_expire\": \"Each earned point(s) record expires in 7 day(s)\",\n                \"notification_expire\": \"1\",\n                \"notification_update\": \"1\",\n                \"point_balance\": 89,\n                \"point_earned\": 9,\n                \"point_spent\": 30,\n                \"reward_id\": 1,\n                \"current_exchange_rates\": {\n                    \"earning_rate\": \"Each $10.00 spent for your order will earn 1point.\",\n                    \"spending_rate\": \"Each 10points can be redeemed for $1.00.\"\n                },\n                \"invitations\": {\n                    \"page_info\": {\n                        \"currentPage\": 1,\n                        \"endPage\": 0,\n                        \"hasNextPage\": false,\n                        \"hasPreviousPage\": false,\n                        \"pageSize\": 5,\n                        \"startPage\": 1\n                    },\n                    \"items\": [],\n                    \"total_count\": 0\n                },\n                \"transactions\": {\n                    \"total_count\": 2,\n                    \"page_info\": {\n                        \"currentPage\": 1,\n                        \"endPage\": 1,\n                        \"hasNextPage\": false,\n                        \"hasPreviousPage\": false,\n                        \"pageSize\": 5,\n                        \"startPage\": 1\n                    },\n                    \"items\": [\n                        {\n                            \"action_code\": \"earning_order\",\n                            \"action_type\": \"1\",\n                            \"comment\": \"Earn points for purchasing order #000000003\",\n                            \"created_at\": \"2020-10-16 08:20:01\",\n                            \"customer_id\": 1,\n                            \"expiration_date\": null,\n                            \"expire_email_sent\": \"0\",\n                            \"order_id\": 3,\n                            \"point_amount\": 13,\n                            \"point_remaining\": 0,\n                            \"point_used\": 13,\n                            \"reward_id\": 1,\n                            \"status\": 2,\n                            \"store_id\": 1,\n                            \"transaction_id\": 1\n                        },\n                        {\n                            \"action_code\": \"earning_refund\",\n                            \"action_type\": \"1\",\n                            \"comment\": \"Taken back points spent on refunded order #000000003\",\n                            \"created_at\": \"2020-10-16 09:37:14\",\n                            \"customer_id\": 1,\n                            \"expiration_date\": null,\n                            \"expire_email_sent\": \"0\",\n                            \"order_id\": 3,\n                            \"point_amount\": -13,\n                            \"point_remaining\": 0,\n                            \"point_used\": 0,\n                            \"reward_id\": 1,\n                            \"status\": 2,\n                            \"store_id\": 1,\n                            \"transaction_id\": 2\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9c127f8a-4b54-49c2-bfd2-77ce30094c02"},{"name":"Reward Config Info","id":"33da575d-07ab-4aaf-99f2-7c702f38c706","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  MpRewardConfig {\r\n    display {\r\n      mini_cart\r\n      top_page\r\n    }\r\n    earning {\r\n      earn_from_tax\r\n      earn_shipping\r\n      point_refund\r\n      round_method\r\n    }\r\n    general {\r\n      account_navigation_label\r\n      display_point_label\r\n      enabled\r\n      icon\r\n      maximum_point\r\n      plural_point_label\r\n      point_label\r\n      show_point_icon\r\n      zero_amount\r\n    }\r\n    spending {\r\n      discount_label\r\n      maximum_point_per_order\r\n      minimum_balance\r\n      restore_point_after_refund\r\n      spend_on_ship\r\n      spend_on_tax\r\n      use_max_point\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"67724fa5-8e01-429b-95fc-bb5ba628a390","name":"Reward Config Info Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  MpRewardConfig {\r\n    display {\r\n      mini_cart\r\n      top_page\r\n    }\r\n    earning {\r\n      earn_from_tax\r\n      earn_shipping\r\n      point_refund\r\n      round_method\r\n    }\r\n    general {\r\n      account_navigation_label\r\n      display_point_label\r\n      enabled\r\n      icon\r\n      maximum_point\r\n      plural_point_label\r\n      point_label\r\n      show_point_icon\r\n      zero_amount\r\n    }\r\n    spending {\r\n      discount_label\r\n      maximum_point_per_order\r\n      minimum_balance\r\n      restore_point_after_refund\r\n      spend_on_ship\r\n      spend_on_tax\r\n      use_max_point\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 10:21:24 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 11:21:27 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=a2c6db0b41bd9bfba17fd05e064e1b1a; expires=Fri, 04-Oct-2030 10:21:27 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"698"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"1312929"},{"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    \"data\": {\n        \"MpRewardConfig\": {\n            \"display\": {\n                \"mini_cart\": true,\n                \"top_page\": false\n            },\n            \"earning\": {\n                \"earn_from_tax\": false,\n                \"earn_shipping\": false,\n                \"point_refund\": true,\n                \"round_method\": \"normal\"\n            },\n            \"general\": {\n                \"account_navigation_label\": \"My Points and Rewards\",\n                \"display_point_label\": \"1\",\n                \"enabled\": true,\n                \"icon\": \"http://dev.mageplaza.vn/api/ce235a/pub/media/mageplaza/rewardpoints/default/point.png\",\n                \"maximum_point\": 100,\n                \"plural_point_label\": \"points\",\n                \"point_label\": \"point\",\n                \"show_point_icon\": true,\n                \"zero_amount\": \"zero point\"\n            },\n            \"spending\": {\n                \"discount_label\": \"Reward Points\",\n                \"maximum_point_per_order\": 0,\n                \"minimum_balance\": 0,\n                \"restore_point_after_refund\": true,\n                \"spend_on_ship\": false,\n                \"spend_on_tax\": false,\n                \"use_max_point\": false\n            }\n        }\n    }\n}"}],"_postman_id":"33da575d-07ab-4aaf-99f2-7c702f38c706"},{"name":"Reward Icon","id":"4a10b41d-c023-471c-bcd3-3aa0655c1970","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  MpRewardIcon{\r\n    url\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"cd8afc49-56fc-4a7b-80a8-b8dcea8da6b7","name":"Reward Icon Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  MpRewardIcon{\r\n    url\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Oct 2020 10:23:38 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uihphhic7k71n83d8n2mlsncp3; expires=Tue, 06-Oct-2020 11:23:39 GMT; Max-Age=3600; path=/quynh/ce235a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=a1d3b147aa1efd22326d577954551da5; expires=Fri, 04-Oct-2030 10:23:39 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"130"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"1543398"},{"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    \"data\": {\n        \"MpRewardIcon\": {\n            \"url\": \"http://dev.mageplaza.vn/api/ce235a/pub/media/mageplaza/rewardpoints/default/point.png\"\n        }\n    }\n}"}],"_postman_id":"4a10b41d-c023-471c-bcd3-3aa0655c1970"},{"name":"Refer by Code","id":"60a5cb1e-7e3e-450f-a630-2c2ff9f7d8c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation{\r\n MpRewardRefer(\r\n    refer_code:\"MDozOnBNK2tBTUZMZEV1eDFGY1Y1aWw3K01NaFJrL2lVZjJDVDNmS21vUT0=\"\r\n    \r\n    )\r\n  \r\n  }\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ccc035cc-e484-419e-9614-b38679e2132a","name":"GraphQL Refer by Code Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql"},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 27 Feb 2020 08:03:07 GMT"},{"key":"Server","value":"Apache/2.4.38 (Ubuntu)"},{"key":"Expires","value":"Wed, 27 Feb 2019 08:03:07 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=ingnp5g0u5fc87qf42qcp4dsmn; expires=Thu, 27-Feb-2020 09:03:07 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=946e793b001835951b3136fa3c360258; expires=Sun, 24-Feb-2030 08:03:07 GMT; Max-Age=315360000; path=/"},{"key":"Set-Cookie","value":"mp_refer=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/"},{"key":"Set-Cookie","value":"mp_refer=MDozOmFvNkNQVDYrbFNSWDdJWitDYjFRUy9BQ05KVkVyOGFsT2JzeFRWST0%3D; path=/"},{"key":"Set-Cookie","value":"private_content_version=29faf3dea17ceee641500b0d873bb0f2; expires=Sun, 24-Feb-2030 08:03:07 GMT; Max-Age=315360000; path=/"},{"key":"Set-Cookie","value":"private_content_version=5c6659cfa67413cae4505dfd070154e4; expires=Sun, 24-Feb-2030 08:03:07 GMT; Max-Age=315360000; path=/"},{"key":"X-Magento-Debug","value":"1"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"31"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"MpRewardRefer\": true\n    }\n}"}],"_postman_id":"60a5cb1e-7e3e-450f-a630-2c2ff9f7d8c8"},{"name":"Invite Email","id":"23280368-211a-4e1b-af7a-3bb9112a29d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n\tMpRewardInvite(\r\n\t\tsend_from: \"store\"\r\n\t\temails: \"89@gmail.com\"\r\n\t\tmessage: \"An invitation to your friends has been sent successfully!\"\r\n\t)\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"0dd24f43-fc1e-406d-b28f-0865bf2d4627","name":"Invite Email Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n\tMpRewardInvite(\r\n\t\tsend_from: \"store\"\r\n\t\temails: \"89@gmail.com\"\r\n\t\tmessage: \"An invitation to your friends has been sent successfully!\"\r\n\t)\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Oct 2020 01:42:30 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=uv2qg5oqm258jjc4sb8snukbs9; expires=Fri, 23-Oct-2020 02:42:33 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=99ac33a79723f0feb368a452ca7f099e; expires=Mon, 21-Oct-2030 01:42:33 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"32"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"229572"},{"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    \"data\": {\n        \"MpRewardInvite\": true\n    }\n}"}],"_postman_id":"23280368-211a-4e1b-af7a-3bb9112a29d2"},{"name":"Get Cart","id":"f454be9a-cb90-4fa7-94c7-fc0196b5e975","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  cart(cart_id:\"o2VGCFpKiZWyIzgJiVVgpEvtcdKM18MM\"){\r\n    id\r\n    email\r\n    items {\r\n      id\r\n      product{\r\n        name\r\n        sku\r\n      }\r\n      prices{\r\n        price{\r\n          currency\r\n          value\r\n        }\r\n      }\r\n    }\r\n    prices{\r\n      grand_total {\r\n        currency\r\n        value\r\n      }\r\n      mp_reward_segments {\r\n        code\r\n        title\r\n        value\r\n      }\r\n}\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"d921f316-be32-4971-ba4f-8968328f3502","name":"Get Cart Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  cart(cart_id:\"o2VGCFpKiZWyIzgJiVVgpEvtcdKM18MM\"){\r\n    id\r\n    email\r\n    items {\r\n      id\r\n      product{\r\n        name\r\n        sku\r\n      }\r\n      prices{\r\n        price{\r\n          currency\r\n          value\r\n        }\r\n      }\r\n    }\r\n    prices{\r\n      grand_total {\r\n        currency\r\n        value\r\n      }\r\n      mp_reward_segments {\r\n        code\r\n        title\r\n        value\r\n      }\r\n}\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Oct 2020 04:59:58 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=gu69h1u4gvckpjn48aeuhvmtj8; expires=Fri, 23-Oct-2020 05:59:58 GMT; Max-Age=3600; path=/quynh/ce235; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=ebc1e274c57aed539f9b5bd20914b69c; expires=Mon, 21-Oct-2030 04:59:58 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"727"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"37925"},{"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    \"data\": {\n        \"cart\": {\n            \"id\": \"o2VGCFpKiZWyIzgJiVVgpEvtcdKM18MM\",\n            \"email\": \"roni_cost@example.com\",\n            \"items\": [\n                {\n                    \"id\": \"41\",\n                    \"product\": {\n                        \"name\": \"Overnight Duffle\",\n                        \"sku\": \"24-WB07\"\n                    },\n                    \"prices\": {\n                        \"price\": {\n                            \"currency\": \"USD\",\n                            \"value\": 45\n                        }\n                    }\n                },\n                {\n                    \"id\": \"43\",\n                    \"product\": {\n                        \"name\": \"Push It Messenger Bag\",\n                        \"sku\": \"24-WB04\"\n                    },\n                    \"prices\": {\n                        \"price\": {\n                            \"currency\": \"USD\",\n                            \"value\": 45\n                        }\n                    }\n                },\n                {\n                    \"id\": \"44\",\n                    \"product\": {\n                        \"name\": \"Crown Summit Backpack\",\n                        \"sku\": \"24-MB03\"\n                    },\n                    \"prices\": {\n                        \"price\": {\n                            \"currency\": \"USD\",\n                            \"value\": 38\n                        }\n                    }\n                }\n            ],\n            \"prices\": {\n                \"grand_total\": {\n                    \"currency\": \"USD\",\n                    \"value\": 149.56\n                },\n                \"mp_reward_segments\": [\n                    {\n                        \"code\": \"mp_reward_discount\",\n                        \"title\": \"Reward Points\",\n                        \"value\": -4\n                    },\n                    {\n                        \"code\": \"mp_reward_spent\",\n                        \"title\": \"You will spend\",\n                        \"value\": 10\n                    },\n                    {\n                        \"code\": \"mp_reward_earn\",\n                        \"title\": \"You will earn\",\n                        \"value\": 49\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"f454be9a-cb90-4fa7-94c7-fc0196b5e975"},{"name":"GraphQL Order history details của customer 2.4.x","id":"74c6edff-6051-4555-9dbf-cfa4d51a0814","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customer {\r\n    orders(pageSize: 20, currentPage: 1) {\r\n      items {\r\n        number\r\n        mp_reward_points {\r\n          earn\r\n          spent\r\n          discount\r\n        }\r\n        total {\r\n          mp_reward_points {\r\n            earn\r\n            spent\r\n            discount\r\n          }\r\n        }\r\n        transactions(filter: {transaction_id: {neq: \"240\"}}, pageSize: 2, currentPage: 1) {\r\n          items {\r\n            transaction_id\r\n            action_code\r\n            action_type\r\n            comment\r\n            created_at\r\n            customer_id\r\n            expiration_date\r\n            expire_email_sent\r\n            order_id\r\n            point_amount\r\n            point_remaining\r\n            point_used\r\n            reward_id\r\n            status\r\n            store_id\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"cecd267f-376b-4c56-a928-670577118d54","name":"GraphQL Order history details của customer 2.4.x Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customer {\r\n    orders(pageSize: 20, currentPage: 1) {\r\n      items {\r\n        number\r\n        mp_reward_points {\r\n          earn\r\n          spent\r\n          discount\r\n        }\r\n        total {\r\n          mp_reward_points {\r\n            earn\r\n            spent\r\n            discount\r\n          }\r\n        }\r\n        transactions(filter: {transaction_id: {neq: \"240\"}}, pageSize: 2, currentPage: 1) {\r\n          items {\r\n            transaction_id\r\n            action_code\r\n            action_type\r\n            comment\r\n            created_at\r\n            customer_id\r\n            expiration_date\r\n            expire_email_sent\r\n            order_id\r\n            point_amount\r\n            point_remaining\r\n            point_used\r\n            reward_id\r\n            status\r\n            store_id\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 27 Jan 2022 09:38:09 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 27 Jan 2021 09:38:10 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=ka51j0b2dpc753m1e1ihfoead9; expires=Thu, 27-Jan-2022 10:38:09 GMT; Max-Age=3600; path=/hiennt/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=2eb307928a1113da728b6d9a8a2b51f0; expires=Sun, 25-Jan-2032 09:38:10 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=43454901e1c3554aead8ac779b8d8b78; expires=Sun, 25-Jan-2032 09:38:10 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=65fe7fcbbc47542603cd376b93c4b378; expires=Sun, 25-Jan-2032 09:38:10 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Debug","value":"1"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2273"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"983539"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"customer\": {\n            \"orders\": {\n                \"items\": [\n                    {\n                        \"number\": \"000000176\",\n                        \"mp_reward_points\": {\n                            \"earn\": 33,\n                            \"spent\": null,\n                            \"discount\": 0\n                        },\n                        \"total\": {\n                            \"mp_reward_points\": {\n                                \"earn\": 33,\n                                \"spent\": null,\n                                \"discount\": 0\n                            }\n                        },\n                        \"transactions\": {\n                            \"items\": [\n                                {\n                                    \"transaction_id\": 236,\n                                    \"action_code\": \"earning_order\",\n                                    \"action_type\": \"1\",\n                                    \"comment\": \"Earn points for purchasing order #000000176\",\n                                    \"created_at\": \"2022-01-25 08:57:51\",\n                                    \"customer_id\": 44,\n                                    \"expiration_date\": \"2022-01-26 08:57:51\",\n                                    \"expire_email_sent\": \"0\",\n                                    \"order_id\": 200,\n                                    \"point_amount\": 10,\n                                    \"point_remaining\": 10,\n                                    \"point_used\": 3,\n                                    \"reward_id\": 44,\n                                    \"status\": 2,\n                                    \"store_id\": 1\n                                },\n                                {\n                                    \"transaction_id\": 237,\n                                    \"action_code\": \"earning_order\",\n                                    \"action_type\": \"1\",\n                                    \"comment\": \"Earn points for purchasing order #000000176\",\n                                    \"created_at\": \"2022-01-25 09:02:30\",\n                                    \"customer_id\": 44,\n                                    \"expiration_date\": \"2022-01-26 09:02:30\",\n                                    \"expire_email_sent\": \"0\",\n                                    \"order_id\": 200,\n                                    \"point_amount\": 8,\n                                    \"point_remaining\": 8,\n                                    \"point_used\": 0,\n                                    \"reward_id\": 44,\n                                    \"status\": 2,\n                                    \"store_id\": 1\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"number\": \"000000177\",\n                        \"mp_reward_points\": {\n                            \"earn\": 0,\n                            \"spent\": 0,\n                            \"discount\": 10\n                        },\n                        \"total\": {\n                            \"mp_reward_points\": {\n                                \"earn\": 0,\n                                \"spent\": 0,\n                                \"discount\": 10\n                            }\n                        },\n                        \"transactions\": {\n                            \"items\": [\n                                {\n                                    \"transaction_id\": 238,\n                                    \"action_code\": \"spending_order\",\n                                    \"action_type\": \"2\",\n                                    \"comment\": \"Spend points for purchasing order #000000177\",\n                                    \"created_at\": \"2022-01-25 09:08:03\",\n                                    \"customer_id\": 44,\n                                    \"expiration_date\": null,\n                                    \"expire_email_sent\": \"0\",\n                                    \"order_id\": 201,\n                                    \"point_amount\": -1,\n                                    \"point_remaining\": 0,\n                                    \"point_used\": 0,\n                                    \"reward_id\": 44,\n                                    \"status\": 2,\n                                    \"store_id\": 1\n                                },\n                                {\n                                    \"transaction_id\": 239,\n                                    \"action_code\": \"earning_order\",\n                                    \"action_type\": \"1\",\n                                    \"comment\": \"Earn points for purchasing order #000000177\",\n                                    \"created_at\": \"2022-01-25 09:08:42\",\n                                    \"customer_id\": 44,\n                                    \"expiration_date\": \"2022-01-26 09:08:42\",\n                                    \"expire_email_sent\": \"0\",\n                                    \"order_id\": 201,\n                                    \"point_amount\": 9,\n                                    \"point_remaining\": 0,\n                                    \"point_used\": 0,\n                                    \"reward_id\": 44,\n                                    \"status\": 2,\n                                    \"store_id\": 1\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"number\": \"000000180\",\n                        \"mp_reward_points\": {\n                            \"earn\": 5,\n                            \"spent\": 2,\n                            \"discount\": 40\n                        },\n                        \"total\": {\n                            \"mp_reward_points\": {\n                                \"earn\": 5,\n                                \"spent\": 2,\n                                \"discount\": 40\n                            }\n                        },\n                        \"transactions\": {\n                            \"items\": [\n                                {\n                                    \"transaction_id\": 245,\n                                    \"action_code\": \"spending_order\",\n                                    \"action_type\": \"2\",\n                                    \"comment\": \"Spend points for purchasing order #000000180\",\n                                    \"created_at\": \"2022-01-26 08:08:11\",\n                                    \"customer_id\": 44,\n                                    \"expiration_date\": null,\n                                    \"expire_email_sent\": \"0\",\n                                    \"order_id\": 204,\n                                    \"point_amount\": -2,\n                                    \"point_remaining\": 0,\n                                    \"point_used\": 0,\n                                    \"reward_id\": 44,\n                                    \"status\": 2,\n                                    \"store_id\": 1\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"74c6edff-6051-4555-9dbf-cfa4d51a0814"},{"name":"GraphQL Order history details của customer 2.3.x","id":"e2655c6c-3640-41d4-97f4-bdecb3ec7953","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{customer_token_2.3.x}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customerOrders {\r\n    items {\r\n      order_number\r\n      id\r\n      created_at\r\n      grand_total\r\n      status\r\n      mp_reward_points {\r\n        earn\r\n        spent\r\n        discount\r\n      }\r\n      transactions(filter: {transaction_id: {eq: \"2\"}}) {\r\n        items {\r\n          transaction_id\r\n          action_code\r\n          action_type\r\n          comment\r\n          created_at\r\n          customer_id\r\n          expiration_date\r\n          expire_email_sent\r\n          order_id\r\n          point_amount\r\n          point_remaining\r\n          point_used\r\n          reward_id\r\n          status\r\n          store_id\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url_2.3.x}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url_2.3.x}}"],"query":[],"variable":[]}},"response":[{"id":"9aa09356-f92a-4846-9d04-50146ba39d98","name":"GraphQL Order history details của customer 2.3.x Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{customer_token_2.3.x}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customerOrders {\r\n    items {\r\n      order_number\r\n      id\r\n      created_at\r\n      grand_total\r\n      status\r\n      mp_reward_points {\r\n        earn\r\n        spent\r\n        discount\r\n      }\r\n      transactions(filter: {transaction_id: {eq: \"2\"}}) {\r\n        items {\r\n          transaction_id\r\n          action_code\r\n          action_type\r\n          comment\r\n          created_at\r\n          customer_id\r\n          expiration_date\r\n          expire_email_sent\r\n          order_id\r\n          point_amount\r\n          point_remaining\r\n          point_used\r\n          reward_id\r\n          status\r\n          store_id\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url_2.3.x}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 27 Jan 2022 09:55:35 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 27 Jan 2021 09:55:35 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=iplb25g0dptrmc69ag0g33qper; expires=Thu, 27-Jan-2022 10:55:35 GMT; Max-Age=3600; path=/hiennt/ce237; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=169c32d28bed4c0916cf90bb1c6aed05; expires=Sun, 25-Jan-2032 09:55:35 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=d73c428b398644fd21caa990f5a2aa8a; expires=Sun, 25-Jan-2032 09:55:35 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=66ac49d1af3ac1e76394542f8339a810; expires=Sun, 25-Jan-2032 09:55:35 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"943"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"1508138"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"customerOrders\": {\n            \"items\": [\n                {\n                    \"order_number\": \"000000016\",\n                    \"id\": 16,\n                    \"created_at\": \"2022-01-26 02:11:33\",\n                    \"grand_total\": 30,\n                    \"status\": \"complete\",\n                    \"mp_reward_points\": {\n                        \"earn\": 6,\n                        \"spent\": null,\n                        \"discount\": 0\n                    },\n                    \"transactions\": {\n                        \"items\": [\n                            {\n                                \"transaction_id\": 2,\n                                \"action_code\": \"earning_order\",\n                                \"action_type\": \"1\",\n                                \"comment\": \"Earn points for purchasing order #000000016\",\n                                \"created_at\": \"2022-01-26 02:15:56\",\n                                \"customer_id\": 6,\n                                \"expiration_date\": null,\n                                \"expire_email_sent\": \"0\",\n                                \"order_id\": 16,\n                                \"point_amount\": 3,\n                                \"point_remaining\": 3,\n                                \"point_used\": 0,\n                                \"reward_id\": 4,\n                                \"status\": 2,\n                                \"store_id\": 1\n                            }\n                        ]\n                    }\n                },\n                {\n                    \"order_number\": \"000000017\",\n                    \"id\": 17,\n                    \"created_at\": \"2022-01-26 02:21:47\",\n                    \"grand_total\": 20,\n                    \"status\": \"pending\",\n                    \"mp_reward_points\": {\n                        \"earn\": 8,\n                        \"spent\": 1,\n                        \"discount\": 10\n                    },\n                    \"transactions\": {\n                        \"items\": []\n                    }\n                },\n                {\n                    \"order_number\": \"000000018\",\n                    \"id\": 18,\n                    \"created_at\": \"2022-01-26 02:26:50\",\n                    \"grand_total\": 23,\n                    \"status\": \"pending\",\n                    \"mp_reward_points\": {\n                        \"earn\": null,\n                        \"spent\": null,\n                        \"discount\": 0\n                    },\n                    \"transactions\": {\n                        \"items\": []\n                    }\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"e2655c6c-3640-41d4-97f4-bdecb3ec7953"}],"event":[{"listen":"prerequest","script":{"id":"8ab95cad-f222-4107-bb3a-b21063a1fcab","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"299486a7-80e7-4a5c-88b6-685990e18f2c","type":"text/javascript","exec":[""]}}]}