{"info":{"_postman_id":"4fc02926-bfdb-4f89-b49a-db2ab4df36e3","name":"Magento 2 Free Gift GraphQL & Examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"4fc02926-bfdb-4f89-b49a-db2ab4df36e3","publishedId":"SzRyzpwr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-11T07:15:15.000Z"},"item":[{"name":"Get Customer Token","id":"d82d27ff-4a77-4c80-97b5-35b79ee51d37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"username\":\"roni_cost@example.com\",\r\n\t\"password\":\"roni_cost3@example.com\"\r\n}"},"url":"{{magento_base_url}}rest/V1/integration/customer/token","urlObject":{"path":["V1","integration","customer","token"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[],"_postman_id":"d82d27ff-4a77-4c80-97b5-35b79ee51d37"},{"name":"Get configuration of Free Gifts","id":"1c667c46-3145-4847-9beb-ea539042b9ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n    mpFreeGiftsConfigs {\r\n        general {\r\n            gift_layout\r\n            allow_notice\r\n            notice\r\n            icon\r\n        }\r\n        display {\r\n            cart_page\r\n            cart_item\r\n            product_page\r\n        }\r\n        design {\r\n            label\r\n            background_color\r\n            text_color\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"483968e8-5664-496b-a79d-6ebd4bec74c5","name":"Get configuration of Free Gifts Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n    mpFreeGiftsConfigs {\r\n        general {\r\n            gift_layout\r\n            allow_notice\r\n            notice\r\n            icon\r\n        }\r\n        display {\r\n            cart_page\r\n            cart_item\r\n            product_page\r\n        }\r\n        design {\r\n            label\r\n            background_color\r\n            text_color\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 10 Nov 2020 04:51:18 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=4slffim2mr1lg7eb5fjh1mitom; expires=Tue, 10-Nov-2020 05:51:18 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=bffb4162508a5a33134296e4ad225c87; expires=Fri, 08-Nov-2030 04:51:18 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":"279"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"887683"},{"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        \"mpFreeGiftsConfigs\": {\n            \"general\": {\n                \"gift_layout\": \"grid\",\n                \"allow_notice\": true,\n                \"notice\": \"You Deserved It!\",\n                \"icon\": null\n            },\n            \"display\": {\n                \"cart_page\": true,\n                \"cart_item\": true,\n                \"product_page\": true\n            },\n            \"design\": {\n                \"label\": \"Add Free Gift\",\n                \"background_color\": \"#0099e5\",\n                \"text_color\": \"#FFFFFF\"\n            }\n        }\n    }\n}"}],"_postman_id":"1c667c46-3145-4847-9beb-ea539042b9ab"},{"name":"Get Gifts By Product SKU","id":"c688a799-592f-4e01-96a6-fca798ff695f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpFreeGiftsByProductSku(\r\n    sku:\"24-MB01\"\r\n  )\r\n  {\r\n    rule_id\r\n    auto_add\r\n    max_gift\r\n    notice\r\n    gifts{\r\n      id\r\n      name\r\n      gift_price\r\n      free_ship\r\n      added\r\n      configurable\r\n      required_option\r\n      sku\r\n      image\r\n      final_price\r\n    }\r\n    total_added\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"d10b4dc0-cf10-4f52-b645-8892a8dd2058","name":"Get Gifts By Product SKU Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpFreeGiftsByProductSku(\r\n    sku:\"24-MB01\"\r\n  )\r\n  {\r\n    rule_id\r\n    auto_add\r\n    max_gift\r\n    notice\r\n    gifts{\r\n      id\r\n      name\r\n      gift_price\r\n      free_ship\r\n      added\r\n      configurable\r\n      required_option\r\n      sku\r\n      image\r\n      final_price\r\n    }\r\n    total_added\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Nov 2020 10:06:11 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=jh9q9v27oa7p5iedq383erbaln; expires=Thu, 12-Nov-2020 11:06:11 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=4d6b3bf5a37cefb5381c575bf3fb7f9f; expires=Sun, 10-Nov-2030 10:06:11 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":"2364"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"82287"},{"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        \"mpFreeGiftsByProductSku\": [\n            {\n                \"rule_id\": \"4\",\n                \"auto_add\": true,\n                \"max_gift\": 7,\n                \"notice\": \"You Deserved It!\",\n                \"gifts\": [\n                    {\n                        \"id\": 100,\n                        \"name\": \"Bruno Compete Hoodie\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MH03\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/h/mh03-black_main_1.jpg\",\n                        \"final_price\": \"$63.00\"\n                    },\n                    {\n                        \"id\": 116,\n                        \"name\": \"Frankie  Sweatshirt\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MH04\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/h/mh04-green_main_1.jpg\",\n                        \"final_price\": \"$60.00\"\n                    },\n                    {\n                        \"id\": 468,\n                        \"name\": \"Helios EverCool&trade; Tee\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MS05\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/s/ms05-blue_main_1.jpg\",\n                        \"final_price\": \"$24.00\"\n                    },\n                    {\n                        \"id\": 743,\n                        \"name\": \"Caesar Warm-Up Pant\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MP01\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp01-gray_main_1.jpg\",\n                        \"final_price\": \"$35.00\"\n                    },\n                    {\n                        \"id\": 1825,\n                        \"name\": \"Karmen Yoga Pant\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"WP01\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/p/wp01-gray_main_1.jpg\",\n                        \"final_price\": \"$39.00\"\n                    },\n                    {\n                        \"id\": 1,\n                        \"name\": \"Joust Duffle Bag\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": false,\n                        \"required_option\": false,\n                        \"sku\": \"24-MB01\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb01-blue-0.jpg\",\n                        \"final_price\": \"$34.00\"\n                    },\n                    {\n                        \"id\": 2,\n                        \"name\": \"Strive Shoulder Pack\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": false,\n                        \"required_option\": false,\n                        \"sku\": \"24-MB04\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb04-black-0.jpg\",\n                        \"final_price\": \"$30.00\"\n                    }\n                ],\n                \"total_added\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"c688a799-592f-4e01-96a6-fca798ff695f"},{"name":"Get Gifts By Quote Item ID","id":"65e2b23b-f782-412e-889b-1ad0a041f472","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\n\tmpFreeGiftsByQuoteItem(item_id: 56) {\n\t\trule_id\n\t\tauto_add\n        notice\n\t\tmax_gift\n\t\tgifts {\n\t\t\tid\n\t\t\tname\n\t\t\tgift_price\n\t\t\tfree_ship\n\t\t\tadded\n\t\t\tconfigurable\n\t\t\trequired_option\n\t\t\tsku\n            image\n\t\t\tfinal_price\n\t\t}\n\t\ttotal_added\n\t}\n}\n","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"60d732a6-436d-49a9-930e-d03bc51aebea","name":"Get Gifts By Quote Item ID Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\n\tmpFreeGiftsByQuoteItem(item_id: 56) {\n\t\trule_id\n\t\tauto_add\n        notice\n\t\tmax_gift\n\t\tgifts {\n\t\t\tid\n\t\t\tname\n\t\t\tgift_price\n\t\t\tfree_ship\n\t\t\tadded\n\t\t\tconfigurable\n\t\t\trequired_option\n\t\t\tsku\n            image\n\t\t\tfinal_price\n\t\t}\n\t\ttotal_added\n\t}\n}\n","variables":""}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Nov 2020 10:08:44 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=jh9q9v27oa7p5iedq383erbaln; expires=Thu, 12-Nov-2020 11:08:45 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=17b53c7223c7c62fcc3eee541a868eaa; expires=Sun, 10-Nov-2030 10:08:45 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":"2363"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"82293"},{"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        \"mpFreeGiftsByQuoteItem\": [\n            {\n                \"rule_id\": \"4\",\n                \"auto_add\": true,\n                \"notice\": \"You Deserved It!\",\n                \"max_gift\": 7,\n                \"gifts\": [\n                    {\n                        \"id\": 100,\n                        \"name\": \"Bruno Compete Hoodie\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MH03\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/h/mh03-black_main_1.jpg\",\n                        \"final_price\": \"$63.00\"\n                    },\n                    {\n                        \"id\": 116,\n                        \"name\": \"Frankie  Sweatshirt\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MH04\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/h/mh04-green_main_1.jpg\",\n                        \"final_price\": \"$60.00\"\n                    },\n                    {\n                        \"id\": 468,\n                        \"name\": \"Helios EverCool&trade; Tee\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MS05\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/s/ms05-blue_main_1.jpg\",\n                        \"final_price\": \"$24.00\"\n                    },\n                    {\n                        \"id\": 743,\n                        \"name\": \"Caesar Warm-Up Pant\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"MP01\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp01-gray_main_1.jpg\",\n                        \"final_price\": \"$35.00\"\n                    },\n                    {\n                        \"id\": 1825,\n                        \"name\": \"Karmen Yoga Pant\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": true,\n                        \"required_option\": false,\n                        \"sku\": \"WP01\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/p/wp01-gray_main_1.jpg\",\n                        \"final_price\": \"$39.00\"\n                    },\n                    {\n                        \"id\": 1,\n                        \"name\": \"Joust Duffle Bag\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": false,\n                        \"required_option\": false,\n                        \"sku\": \"24-MB01\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb01-blue-0.jpg\",\n                        \"final_price\": \"$34.00\"\n                    },\n                    {\n                        \"id\": 2,\n                        \"name\": \"Strive Shoulder Pack\",\n                        \"gift_price\": \"$0.00\",\n                        \"free_ship\": true,\n                        \"added\": false,\n                        \"configurable\": false,\n                        \"required_option\": false,\n                        \"sku\": \"24-MB04\",\n                        \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb04-black-0.jpg\",\n                        \"final_price\": \"$30.00\"\n                    }\n                ],\n                \"total_added\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"65e2b23b-f782-412e-889b-1ad0a041f472"},{"name":"Create cart","id":"3ed2603b-7229-4715-9538-01129f1098d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_access_token}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n  createEmptyCart\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"48a15905-d93c-4a23-b107-8a644b121ae2","name":"Create cart Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_access_token}}","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customerCart{\r\n    id\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 04:54:28 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=r3bqm2ae5okbuqovftohtnfgea; expires=Fri, 13-Nov-2020 05:54:28 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=eb9d305bf733dbc3e42741707b22f564; expires=Mon, 11-Nov-2030 04:54:28 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":"67"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"562253"},{"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        \"customerCart\": {\n            \"id\": \"Z5TDr4oYEJzvdNMVWhfamGaZO7iwTtY3\"\n        }\n    }\n}"}],"_postman_id":"3ed2603b-7229-4715-9538-01129f1098d4"},{"name":"Get Cart Item of Customer by Customer Access Token","id":"f3e39d1e-2903-4266-845d-9f34c804406f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  cart(cart_id: \"Z5TDr4oYEJzvdNMVWhfamGaZO7iwTtY3\") {\r\n    email\r\n    billing_address {\r\n      city\r\n      firstname\r\n      lastname\r\n      street\r\n      telephone\r\n    }\r\n    items {\r\n      id\r\n      product {\r\n        name\r\n        sku\r\n      }\r\n      quantity\r\n    }\r\n    available_payment_methods {\r\n      code\r\n      title\r\n    }\r\n    selected_payment_method {\r\n      code\r\n      title\r\n    }\r\n    applied_coupons {\r\n      code\r\n    }\r\n    prices {\r\n      grand_total {\r\n        value\r\n        currency\r\n      }\r\n    }\r\n    mp_free_gifts {\r\n      auto_add\r\n      gifts {\r\n        added\r\n        configurable\r\n        final_price\r\n        free_ship\r\n        gift_price\r\n        id\r\n        image\r\n        name\r\n        required_option\r\n        sku\r\n      }\r\n      max_gift\r\n      notice\r\n      rule_id\r\n      total_added\r\n    }\r\n    mp_free_gifts_button {\r\n      button_color\r\n      button_label\r\n      is_show_button\r\n      rule_id\r\n      text_color\r\n    }\r\n  }\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"46f38adf-2f90-41b7-9b45-5d93e68ba250","name":"Get Cart Item of Customer by Customer Access Token Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{customer_access_token}}","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  cart(cart_id: \"Z5TDr4oYEJzvdNMVWhfamGaZO7iwTtY3\") {\r\n    email\r\n    billing_address {\r\n      city\r\n      firstname\r\n      lastname\r\n      street\r\n      telephone\r\n    }\r\n    items {\r\n      id\r\n      product {\r\n        name\r\n        sku\r\n      }\r\n      quantity\r\n    }\r\n    available_payment_methods {\r\n      code\r\n      title\r\n    }\r\n    selected_payment_method {\r\n      code\r\n      title\r\n    }\r\n    applied_coupons {\r\n      code\r\n    }\r\n    prices {\r\n      grand_total {\r\n        value\r\n        currency\r\n      }\r\n    }\r\n    mp_free_gifts {\r\n      auto_add\r\n      gifts {\r\n        added\r\n        configurable\r\n        final_price\r\n        free_ship\r\n        gift_price\r\n        id\r\n        image\r\n        name\r\n        required_option\r\n        sku\r\n      }\r\n      max_gift\r\n      notice\r\n      rule_id\r\n      total_added\r\n    }\r\n    mp_free_gifts_button {\r\n      button_color\r\n      button_label\r\n      is_show_button\r\n      rule_id\r\n      text_color\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, 13 Nov 2020 04:58:03 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=r3bqm2ae5okbuqovftohtnfgea; expires=Fri, 13-Nov-2020 05:58:03 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=e1f47d357d2223c90576431e0dfc619e; expires=Mon, 11-Nov-2030 04:58: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":"3228"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"760442"},{"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            \"email\": \"roni_cost@example.com\",\n            \"billing_address\": {\n                \"city\": \"Calder\",\n                \"firstname\": \"Veronica\",\n                \"lastname\": \"Costello\",\n                \"street\": [\n                    \"6146 Honey Bluff Parkway\"\n                ],\n                \"telephone\": \"(555) 229-3326\"\n            },\n            \"items\": [\n                {\n                    \"id\": \"163\",\n                    \"product\": {\n                        \"name\": \"Bruno Compete Hoodie\",\n                        \"sku\": \"MH03\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"165\",\n                    \"product\": {\n                        \"name\": \"Frankie  Sweatshirt\",\n                        \"sku\": \"MH04\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"167\",\n                    \"product\": {\n                        \"name\": \"Helios EverCool&trade; Tee\",\n                        \"sku\": \"MS05\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"169\",\n                    \"product\": {\n                        \"name\": \"Caesar Warm-Up Pant\",\n                        \"sku\": \"MP01\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"171\",\n                    \"product\": {\n                        \"name\": \"Karmen Yoga Pant\",\n                        \"sku\": \"WP01\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"173\",\n                    \"product\": {\n                        \"name\": \"Joust Duffle Bag\",\n                        \"sku\": \"24-MB01\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"174\",\n                    \"product\": {\n                        \"name\": \"Strive Shoulder Pack\",\n                        \"sku\": \"24-MB04\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"175\",\n                    \"product\": {\n                        \"name\": \"Giay\",\n                        \"sku\": \"giay\"\n                    },\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": \"176\",\n                    \"product\": {\n                        \"name\": \"Push It Messenger Bag\",\n                        \"sku\": \"24-WB04\"\n                    },\n                    \"quantity\": 1\n                }\n            ],\n            \"available_payment_methods\": [\n                {\n                    \"code\": \"checkmo\",\n                    \"title\": \"Check / Money order\"\n                }\n            ],\n            \"selected_payment_method\": {\n                \"code\": \"checkmo\",\n                \"title\": \"Check / Money order\"\n            },\n            \"applied_coupons\": null,\n            \"prices\": {\n                \"grand_total\": {\n                    \"value\": 156.96,\n                    \"currency\": \"USD\"\n                }\n            },\n            \"mp_free_gifts\": [\n                {\n                    \"auto_add\": false,\n                    \"gifts\": [\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 1,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 2,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 3,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 4,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        }\n                    ],\n                    \"max_gift\": 4,\n                    \"notice\": \"You Deserved It!\",\n                    \"rule_id\": \"1\",\n                    \"total_added\": 2\n                },\n                {\n                    \"auto_add\": true,\n                    \"gifts\": [\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 100,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 116,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 468,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 743,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 1825,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 1,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        },\n                        {\n                            \"added\": null,\n                            \"configurable\": null,\n                            \"final_price\": null,\n                            \"free_ship\": true,\n                            \"gift_price\": \"0\",\n                            \"id\": 2,\n                            \"image\": null,\n                            \"name\": null,\n                            \"required_option\": null,\n                            \"sku\": null\n                        }\n                    ],\n                    \"max_gift\": 7,\n                    \"notice\": \"You Deserved It!\",\n                    \"rule_id\": \"4\",\n                    \"total_added\": 7\n                }\n            ],\n            \"mp_free_gifts_button\": {\n                \"button_color\": \"#0099e5\",\n                \"button_label\": \"Add Free Gift\",\n                \"is_show_button\": true,\n                \"rule_id\": \"1\",\n                \"text_color\": \"#FFFFFF\"\n            }\n        }\n    }\n}"}],"_postman_id":"f3e39d1e-2903-4266-845d-9f34c804406f"},{"name":"Add Gift By ID","id":"a0459565-7cef-4325-9ba3-dc954f50ffc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation{\n    mpFreeGiftsAddGift(\n        input:{\n            cart_id:\"ooB8hmUh62VTJvhDoS05W0AFnOYnRg38\"\n            rule_id:2,\n          gift_id: 68,\n             configurable_options: [\n                {\n                    option_id: 93\n                    option_value: 5479\n                },\n                {\n                    option_id: 142\n                    option_value: 1\n                }\n            ]\n           \n        }\n        \n        )\n        {\n            status\n            message\n            rule_id\n            quote_id\n            quote_item_id\n            product_gift_id\n        }\n}","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"c20200a2-0b3f-4cab-b3a5-a41af3368572","name":"Add Gift By ID 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":"Fri, 21 Feb 2020 09:16:35 GMT"},{"key":"Expires","value":"Thu, 21 Feb 2019 09:16:36 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=m53mloj7k2j1vhqtn297rl2r97; expires=Fri, 21-Feb-2020 10:16:35 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=24007e5ed74692389fd6dad6760d2be1; expires=Mon, 18-Feb-2030 09:16:35 GMT; Max-Age=315360000; path=/"},{"key":"Set-Cookie","value":"private_content_version=04931d407d22ea68137706c014a2c8b0; expires=Mon, 18-Feb-2030 09:16:36 GMT; Max-Age=315360000; path=/"},{"key":"Set-Cookie","value":"private_content_version=9b2e6566a7b05eaa2adaadc49971e684; expires=Mon, 18-Feb-2030 09:16:36 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":"178"},{"key":"Content-Type","value":"application/json"},{"key":"Age","value":"0"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpFreeGiftsAddGift\": {\n            \"status\": \"error\",\n            \"message\": \"You need to choose options for your item.\",\n            \"rule_id\": \"2\",\n            \"quote_id\": \"88\",\n            \"quote_item_id\": null,\n            \"product_gift_id\": \"68\"\n        }\n    }\n}"}],"_postman_id":"a0459565-7cef-4325-9ba3-dc954f50ffc2"},{"name":"Delete Gift By Quote Item ID","id":"96f5eb56-39ad-4c5a-870f-e0fbe6e6b8bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation{\n    mpFreeGiftsDeleteByQuoteItem(\n        cart_id:\"ooB8hmUh62VTJvhDoS05W0AFnOYnRg38\"\n        item_id:537\n        )\n        \n}","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"e8aca2e7-c633-4e25-8f6c-d2ebdb99415b","name":"Delete Gift By Quote Item ID 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, 20 Feb 2020 10:36:19 GMT"},{"key":"Expires","value":"Wed, 20 Feb 2019 10:36:28 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=rqcf3smclqrkgt5t6svo5dh4tr; expires=Thu, 20-Feb-2020 11:36:27 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=3674efac9e8f27c282d0950b1c09e497; expires=Sun, 17-Feb-2030 10:36: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":"46"},{"key":"Content-Type","value":"application/json"},{"key":"Age","value":"0"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpFreeGiftsDeleteByQuoteItem\": true\n    }\n}"}],"_postman_id":"96f5eb56-39ad-4c5a-870f-e0fbe6e6b8bf"},{"name":"Get Customer Cart by Customer Access Token","id":"57ba8691-2dc2-46f4-9cce-9edc185b3168","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customerCart {\r\n    id\r\n    items {\r\n      id\r\n      product {\r\n        name\r\n        sku\r\n      }\r\n      quantity\r\n      mp_free_gifts {\r\n          is_free_gift\r\n          rule_id\r\n          free_gift_message\r\n          allow_notice\r\n      }\r\n    }\r\n    mp_free_gifts {\r\n        rule_id\r\n        auto_add\r\n        max_gift\r\n        gifts {\r\n            gift_price\r\n            free_ship\r\n            id\r\n        }\r\n        notice\r\n        total_added\r\n    }\r\n    mp_free_gifts_button {\r\n        is_show_button\r\n        rule_id\r\n        button_label\r\n        button_color\r\n        text_color\r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"eb3665b8-881a-442f-933e-651541e3ec05","name":"Get Customer Cart by Customer Access Token Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"{\r\n  customerCart {\r\n    id\r\n    items {\r\n      id\r\n      product {\r\n        name\r\n        sku\r\n      }\r\n      quantity\r\n      mp_free_gifts {\r\n          is_free_gift\r\n          rule_id\r\n          free_gift_message\r\n          allow_notice\r\n      }\r\n    }\r\n    mp_free_gifts {\r\n        rule_id\r\n        auto_add\r\n        max_gift\r\n        gifts {\r\n            gift_price\r\n            free_ship\r\n            id\r\n        }\r\n        notice\r\n        total_added\r\n    }\r\n    mp_free_gifts_button {\r\n        is_show_button\r\n        rule_id\r\n        button_label\r\n        button_color\r\n        text_color\r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Nov 2020 10:59:15 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=jh9q9v27oa7p5iedq383erbaln; expires=Thu, 12-Nov-2020 11:59:15 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=f91f0bbaecada55acd48fecf2dd7ca46; expires=Sun, 10-Nov-2030 10:59:15 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":"3368"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"278698"},{"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        \"customerCart\": {\n            \"id\": \"Z5TDr4oYEJzvdNMVWhfamGaZO7iwTtY3\",\n            \"items\": [\n                {\n                    \"id\": \"155\",\n                    \"product\": {\n                        \"name\": \"Sprite Yoga Companion Kit\",\n                        \"sku\": \"24-WG080\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": false,\n                        \"rule_id\": null,\n                        \"free_gift_message\": null,\n                        \"allow_notice\": null\n                    }\n                },\n                {\n                    \"id\": \"160\",\n                    \"product\": {\n                        \"name\": \"Sprite Yoga Strap 6 foot\",\n                        \"sku\": \"24-WG085\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": false,\n                        \"rule_id\": null,\n                        \"free_gift_message\": null,\n                        \"allow_notice\": null\n                    }\n                },\n                {\n                    \"id\": \"161\",\n                    \"product\": {\n                        \"name\": \"Sprite Yoga Strap 8 foot\",\n                        \"sku\": \"24-WG086\"\n                    },\n                    \"quantity\": 11,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": false,\n                        \"rule_id\": null,\n                        \"free_gift_message\": null,\n                        \"allow_notice\": null\n                    }\n                },\n                {\n                    \"id\": \"162\",\n                    \"product\": {\n                        \"name\": \"Sprite Yoga Strap 10 foot\",\n                        \"sku\": \"24-WG087\"\n                    },\n                    \"quantity\": 11,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": false,\n                        \"rule_id\": null,\n                        \"free_gift_message\": null,\n                        \"allow_notice\": null\n                    }\n                },\n                {\n                    \"id\": \"163\",\n                    \"product\": {\n                        \"name\": \"Bruno Compete Hoodie\",\n                        \"sku\": \"MH03\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"165\",\n                    \"product\": {\n                        \"name\": \"Frankie  Sweatshirt\",\n                        \"sku\": \"MH04\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"167\",\n                    \"product\": {\n                        \"name\": \"Helios EverCool&trade; Tee\",\n                        \"sku\": \"MS05\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"169\",\n                    \"product\": {\n                        \"name\": \"Caesar Warm-Up Pant\",\n                        \"sku\": \"MP01\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"171\",\n                    \"product\": {\n                        \"name\": \"Karmen Yoga Pant\",\n                        \"sku\": \"WP01\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"173\",\n                    \"product\": {\n                        \"name\": \"Joust Duffle Bag\",\n                        \"sku\": \"24-MB01\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"174\",\n                    \"product\": {\n                        \"name\": \"Strive Shoulder Pack\",\n                        \"sku\": \"24-MB04\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": true,\n                        \"rule_id\": \"4\",\n                        \"free_gift_message\": \"You Deserved It!\",\n                        \"allow_notice\": true\n                    }\n                },\n                {\n                    \"id\": \"175\",\n                    \"product\": {\n                        \"name\": \"Giay\",\n                        \"sku\": \"giay\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": false,\n                        \"rule_id\": null,\n                        \"free_gift_message\": null,\n                        \"allow_notice\": null\n                    }\n                },\n                {\n                    \"id\": \"176\",\n                    \"product\": {\n                        \"name\": \"Push It Messenger Bag\",\n                        \"sku\": \"24-WB04\"\n                    },\n                    \"quantity\": 1,\n                    \"mp_free_gifts\": {\n                        \"is_free_gift\": false,\n                        \"rule_id\": null,\n                        \"free_gift_message\": null,\n                        \"allow_notice\": null\n                    }\n                }\n            ],\n            \"mp_free_gifts\": [\n                {\n                    \"rule_id\": \"1\",\n                    \"auto_add\": false,\n                    \"max_gift\": 4,\n                    \"gifts\": [\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 1\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 2\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 3\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 4\n                        }\n                    ],\n                    \"notice\": \"You Deserved It!\",\n                    \"total_added\": 2\n                },\n                {\n                    \"rule_id\": \"4\",\n                    \"auto_add\": true,\n                    \"max_gift\": 7,\n                    \"gifts\": [\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 100\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 116\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 468\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 743\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 1825\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 1\n                        },\n                        {\n                            \"gift_price\": \"0\",\n                            \"free_ship\": true,\n                            \"id\": 2\n                        }\n                    ],\n                    \"notice\": \"You Deserved It!\",\n                    \"total_added\": 7\n                }\n            ],\n            \"mp_free_gifts_button\": {\n                \"is_show_button\": true,\n                \"rule_id\": \"1\",\n                \"button_label\": \"Add Free Gift\",\n                \"button_color\": \"#0099e5\",\n                \"text_color\": \"#FFFFFF\"\n            }\n        }\n    }\n}"}],"_postman_id":"57ba8691-2dc2-46f4-9cce-9edc185b3168"}]}