{"info":{"_postman_id":"da47be07-e49a-4b86-9444-d5c0bbc6b7c1","name":"Magento 2 Free Gift REST API & Examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"da47be07-e49a-4b86-9444-d5c0bbc6b7c1","publishedId":"SzRyzpwv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-11T07:19:39.000Z"},"item":[{"name":"Get Customer Token","id":"9b6b8500-2897-4463-9afd-cc4025f0b62d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"roni_cost@example.com\",\n\t\"password\":\"roni_cost3@example.com\"\n}"},"url":"{{magento_base_url}}rest/V1/integration/customer/token","urlObject":{"path":["V1","integration","customer","token"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"b3b31bbd-9bf3-4640-b464-f12d212f3a67","name":"Get Customer Token Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"roni_cost@example.com\",\n\t\"password\":\"roni_cost3@example.com\"\n}"},"url":"{{magento_base_url}}rest/V1/integration/customer/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 10 Nov 2020 03:25:32 GMT"},{"key":"Server","value":"Apache/2.4.18 (Ubuntu)"},{"key":"Set-Cookie","value":"PHPSESSID=m3mheo9pdkat0es45phml3mer2; expires=Tue, 10-Nov-2020 04:25:33 GMT; Max-Age=3600; path=/maianh/ce240d; domain=192.168.1.100; HttpOnly"},{"key":"Set-Cookie","value":"persistent_shopping_cart=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/maianh/ce240d; HttpOnly"},{"key":"Set-Cookie","value":"form_key=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/maianh/ce240d; domain=192.168.1.100"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"34"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"\"pr74zzeedf26m1onnlo8784q52v34102\""}],"_postman_id":"9b6b8500-2897-4463-9afd-cc4025f0b62d"},{"name":"Get Create a quote (quote_id)","id":"fe3e4230-f6e5-4586-bfea-7b1bba56610f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{magento_base_url}}rest/V1/carts/mine","urlObject":{"path":["V1","carts","mine"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"e053a0ea-d4ca-4918-b91e-49a52d524626","name":"Get Create a quote (quote_id) Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer{{customer_access_token}}","type":"text","disabled":true}],"body":{"mode":"raw","raw":""},"url":"{{magento_base_url}}rest/V1/carts/mine"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Feb 2020 04:08:54 GMT"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=m1rgqhblj3croibjqftcg1ducr; expires=Wed, 19-Feb-2020 05:09:01 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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":"72"}],"_postman_id":"fe3e4230-f6e5-4586-bfea-7b1bba56610f"},{"name":"Get Customer Cart by Customer Access Token","id":"24a0ec3f-996f-48c6-b6fd-3dbc65b006a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"url":"{{magento_base_url}}rest/V1/carts/mine","urlObject":{"path":["V1","carts","mine"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"75c96505-446f-479e-8fd1-7cc9c6b58418","name":"Get Customer Cart by Customer Access Token Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"url":"{{magento_base_url}}rest/V1/carts/mine"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 04:02:01 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=nio93gpvr9arhb1abf5qcf20ee; expires=Fri, 06-Nov-2020 05:02:01 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2712"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"624390"},{"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    \"id\": 21,\n    \"created_at\": \"2020-11-03 03:17:55\",\n    \"updated_at\": \"2020-11-03 03:17:55\",\n    \"is_active\": true,\n    \"is_virtual\": false,\n    \"items\": [\n        {\n            \"item_id\": 70,\n            \"sku\": \"24-WB03\",\n            \"qty\": 1,\n            \"name\": \"Driven Backpack\",\n            \"price\": 36,\n            \"product_type\": \"simple\",\n            \"quote_id\": \"21\"\n        }\n    ],\n    \"items_count\": 1,\n    \"items_qty\": 1,\n    \"customer\": {\n        \"id\": 1,\n        \"group_id\": 1,\n        \"default_billing\": \"1\",\n        \"default_shipping\": \"1\",\n        \"created_at\": \"2020-08-28 02:32:59\",\n        \"updated_at\": \"2020-08-28 02:32:59\",\n        \"created_in\": \"Default Store View\",\n        \"dob\": \"1973-12-15\",\n        \"email\": \"roni_cost@example.com\",\n        \"firstname\": \"Veronica\",\n        \"lastname\": \"Costello\",\n        \"gender\": 2,\n        \"store_id\": 1,\n        \"website_id\": 1,\n        \"addresses\": [\n            {\n                \"id\": 1,\n                \"customer_id\": 1,\n                \"region\": {\n                    \"region_code\": \"MI\",\n                    \"region\": \"Michigan\",\n                    \"region_id\": 33\n                },\n                \"region_id\": 33,\n                \"country_id\": \"US\",\n                \"street\": [\n                    \"6146 Honey Bluff Parkway\"\n                ],\n                \"telephone\": \"(555) 229-3326\",\n                \"postcode\": \"49628-7978\",\n                \"city\": \"Calder\",\n                \"firstname\": \"Veronica\",\n                \"lastname\": \"Costello\",\n                \"default_shipping\": true,\n                \"default_billing\": true\n            }\n        ],\n        \"disable_auto_group_change\": 0,\n        \"extension_attributes\": {\n            \"is_subscribed\": false\n        }\n    },\n    \"billing_address\": {\n        \"id\": 61,\n        \"region\": \"Michigan\",\n        \"region_id\": 33,\n        \"region_code\": \"MI\",\n        \"country_id\": \"US\",\n        \"street\": [\n            \"6146 Honey Bluff Parkway\"\n        ],\n        \"telephone\": \"(555) 229-3326\",\n        \"postcode\": \"49628-7978\",\n        \"city\": \"Calder\",\n        \"firstname\": \"Veronica\",\n        \"lastname\": \"Costello\",\n        \"customer_id\": 1,\n        \"email\": \"roni_cost@example.com\",\n        \"same_as_billing\": 0,\n        \"customer_address_id\": 1,\n        \"save_in_address_book\": 0\n    },\n    \"orig_order_id\": 0,\n    \"currency\": {\n        \"global_currency_code\": \"USD\",\n        \"base_currency_code\": \"USD\",\n        \"store_currency_code\": \"USD\",\n        \"quote_currency_code\": \"USD\",\n        \"store_to_base_rate\": 0,\n        \"store_to_quote_rate\": 0,\n        \"base_to_global_rate\": 1,\n        \"base_to_quote_rate\": 1\n    },\n    \"customer_is_guest\": false,\n    \"customer_note_notify\": true,\n    \"customer_tax_class_id\": 3,\n    \"store_id\": 1,\n    \"extension_attributes\": {\n        \"shipping_assignments\": [\n            {\n                \"shipping\": {\n                    \"address\": {\n                        \"id\": 62,\n                        \"region\": \"Michigan\",\n                        \"region_id\": 33,\n                        \"region_code\": \"MI\",\n                        \"country_id\": \"US\",\n                        \"street\": [\n                            \"6146 Honey Bluff Parkway\"\n                        ],\n                        \"telephone\": \"(555) 229-3326\",\n                        \"postcode\": \"49628-7978\",\n                        \"city\": \"Calder\",\n                        \"firstname\": \"Veronica\",\n                        \"lastname\": \"Costello\",\n                        \"customer_id\": 1,\n                        \"email\": \"roni_cost@example.com\",\n                        \"same_as_billing\": 1,\n                        \"customer_address_id\": 1,\n                        \"save_in_address_book\": 0\n                    },\n                    \"method\": null\n                },\n                \"items\": [\n                    {\n                        \"item_id\": 70,\n                        \"sku\": \"24-WB03\",\n                        \"qty\": 1,\n                        \"name\": \"Driven Backpack\",\n                        \"price\": 36,\n                        \"product_type\": \"simple\",\n                        \"quote_id\": \"21\"\n                    }\n                ]\n            }\n        ],\n        \"mp_free_gifts\": [\n            \"{\\\"rule_id\\\":\\\"1\\\",\\\"auto_add\\\":1,\\\"max_gift\\\":4,\\\"gifts\\\":[{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":1},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":2},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":3},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":4}],\\\"total_added\\\":0,\\\"notice\\\":\\\"You Deserved It!\\\"}\"\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}"}],"_postman_id":"24a0ec3f-996f-48c6-b6fd-3dbc65b006a7"},{"name":"Get Cart Items of Customer by Customer Access Token","id":"bbde5bcd-74f5-4edb-800e-95dacfe15bed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"url":"{{magento_base_url}}rest/V1/carts/mine/items","urlObject":{"path":["V1","carts","mine","items"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"399a43b9-e9b1-4a7d-870b-bf9c135fcabc","name":"Get Cart Items of Customer by Customer Access Token Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"url":"{{magento_base_url}}rest/V1/carts/mine/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 07:05:17 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=2bn5qcbd63q56d2rghgs9bllrf; expires=Fri, 06-Nov-2020 08:05:17 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1005"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"495602"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"item_id\": 70,\n        \"sku\": \"24-WB03\",\n        \"qty\": 1,\n        \"name\": \"Driven Backpack\",\n        \"price\": 36,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"21\"\n    },\n    {\n        \"item_id\": 82,\n        \"sku\": \"24-WB04\",\n        \"qty\": 1,\n        \"name\": \"Push It Messenger Bag\",\n        \"price\": 45,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"21\"\n    },\n    {\n        \"item_id\": 84,\n        \"sku\": \"24-MB04\",\n        \"qty\": 1,\n        \"name\": \"Strive Shoulder Pack\",\n        \"price\": 0,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"21\",\n        \"extension_attributes\": {\n            \"mp_free_gifts\": {\n                \"is_free_gift\": true,\n                \"rule_id\": \"1\",\n                \"free_gift_message\": \"You Deserved It!\",\n                \"allow_notice\": true\n            }\n        }\n    },\n    {\n        \"item_id\": 85,\n        \"sku\": \"24-MB03\",\n        \"qty\": 1,\n        \"name\": \"Crown Summit Backpack\",\n        \"price\": 0,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"21\",\n        \"extension_attributes\": {\n            \"mp_free_gifts\": {\n                \"is_free_gift\": true,\n                \"rule_id\": \"3\",\n                \"free_gift_message\": \"You Deserved It!\",\n                \"allow_notice\": true\n            }\n        }\n    },\n    {\n        \"item_id\": 86,\n        \"sku\": \"24-MB05\",\n        \"qty\": 1,\n        \"name\": \"Wayfarer Messenger Bag\",\n        \"price\": 0,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"21\",\n        \"extension_attributes\": {\n            \"mp_free_gifts\": {\n                \"is_free_gift\": true,\n                \"rule_id\": \"3\",\n                \"free_gift_message\": \"You Deserved It!\",\n                \"allow_notice\": true\n            }\n        }\n    }\n]"}],"_postman_id":"bbde5bcd-74f5-4edb-800e-95dacfe15bed"},{"name":"Get Quote Cart by Quote Mask","id":"1a1da89e-f52a-458b-93e6-9c451200b98a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}rest/V1/guest-carts/{{quote_masked_id}}/","urlObject":{"path":["V1","guest-carts","{{quote_masked_id}}",""],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"c46c5770-747c-44ca-a83a-5539d6d54b96","name":"Get Quote Cart by Quote Mask Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}rest/V1/guest-carts/{{quote_masked_id}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 21 Jan 2020 02:34:31 GMT"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=hfdflicm5odq8t98uioth39cem; expires=Tue, 21-Jan-2020 03:34:31 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Set-Cookie","value":"form_key=deleted; expires=Tue, 21-Jan-2020 03:34:31 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1200"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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    \"id\": 10,\n    \"created_at\": \"2019-12-30 10:21:00\",\n    \"updated_at\": \"2019-12-30 10:21:31\",\n    \"is_active\": false,\n    \"is_virtual\": false,\n    \"items_count\": 1,\n    \"items_qty\": 1,\n    \"customer\": {\n        \"email\": null,\n        \"firstname\": null,\n        \"lastname\": null\n    },\n    \"billing_address\": {\n        \"id\": 28,\n        \"region\": \"Michigan\",\n        \"region_id\": 33,\n        \"region_code\": \"MI\",\n        \"country_id\": \"US\",\n        \"street\": [\n            \"6146 Honey Bluff Parkway\"\n        ],\n        \"telephone\": \"5552293326\",\n        \"postcode\": \"49628-7978\",\n        \"city\": \"Calder\",\n        \"firstname\": \"Veronica\",\n        \"lastname\": \"Costello\",\n        \"email\": \"hiennt@mageplaza.com\",\n        \"same_as_billing\": 0\n    },\n    \"reserved_order_id\": \"000000008\",\n    \"orig_order_id\": 0,\n    \"currency\": {\n        \"global_currency_code\": \"USD\",\n        \"base_currency_code\": \"USD\",\n        \"store_currency_code\": \"USD\",\n        \"quote_currency_code\": \"USD\",\n        \"store_to_base_rate\": 0,\n        \"store_to_quote_rate\": 0,\n        \"base_to_global_rate\": 1,\n        \"base_to_quote_rate\": 1\n    },\n    \"customer_is_guest\": true,\n    \"customer_note_notify\": true,\n    \"customer_tax_class_id\": 3,\n    \"store_id\": 1,\n    \"extension_attributes\": {\n        \"mp_free_gifts\": [\n            \"{\\\"rule_id\\\":\\\"1\\\",\\\"auto_add\\\":1,\\\"max_gift\\\":4,\\\"gifts\\\":[{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":1},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":420},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":2},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":3}],\\\"total_added\\\":0,\\\"notice\\\":\\\"You Deserved It!\\\"}\"\n        ]\n    }\n}"}],"_postman_id":"1a1da89e-f52a-458b-93e6-9c451200b98a"},{"name":"Get Quote Items by Quote Mask","id":"3b8b51c6-39d9-417f-9df2-e2e7ad5c7872","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}rest/V1/guest-carts/{{quote_masked_id}}/items","urlObject":{"path":["V1","guest-carts","{{quote_masked_id}}","items"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"d8d7ffa4-bd2a-484c-b3db-fe17c0a49ffa","name":"Get Quote Items by Quote Mask Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}rest/V1/guest-carts/{{quote_masked_id}}/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 21 Jan 2020 03:54:20 GMT"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=hfdflicm5odq8t98uioth39cem; expires=Tue, 21-Jan-2020 04:54:20 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Set-Cookie","value":"form_key=deleted; expires=Tue, 21-Jan-2020 04:54:20 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1259"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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    {\n        \"item_id\": 61,\n        \"sku\": \"24-WB01\",\n        \"qty\": 1,\n        \"name\": \"Voyage Yoga Bag\",\n        \"price\": 32,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"nf4zndNdVn1UejoYHfGDgkeXYrN8IxSF\"\n    },\n    {\n        \"item_id\": 62,\n        \"sku\": \"24-MB01\",\n        \"qty\": 1,\n        \"name\": \"Joust Duffle Bag\",\n        \"price\": 0,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"nf4zndNdVn1UejoYHfGDgkeXYrN8IxSF\",\n        \"extension_attributes\": {\n            \"mp_free_gifts\": true,\n            \"mp_free_gifts_message\": \"You Deserved It!\"\n        }\n    },\n    {\n        \"item_id\": 63,\n        \"sku\": \"MJ03-XS-Black\",\n        \"qty\": 1,\n        \"name\": \"Montana Wind Jacket\",\n        \"price\": 0,\n        \"product_type\": \"configurable\",\n        \"quote_id\": \"nf4zndNdVn1UejoYHfGDgkeXYrN8IxSF\",\n        \"product_option\": {\n            \"extension_attributes\": {\n                \"configurable_item_options\": [\n                    {\n                        \"option_id\": \"142\",\n                        \"option_value\": 5594\n                    },\n                    {\n                        \"option_id\": \"93\",\n                        \"option_value\": 5476\n                    }\n                ]\n            }\n        },\n        \"extension_attributes\": {\n            \"mp_free_gifts\": true,\n            \"mp_free_gifts_message\": \"You Deserved It!\"\n        }\n    },\n    {\n        \"item_id\": 65,\n        \"sku\": \"24-MB04\",\n        \"qty\": 1,\n        \"name\": \"Strive Shoulder Pack\",\n        \"price\": 0,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"nf4zndNdVn1UejoYHfGDgkeXYrN8IxSF\",\n        \"extension_attributes\": {\n            \"mp_free_gifts\": true,\n            \"mp_free_gifts_message\": \"You Deserved It!\"\n        }\n    },\n    {\n        \"item_id\": 66,\n        \"sku\": \"24-MB03\",\n        \"qty\": 1,\n        \"name\": \"Crown Summit Backpack\",\n        \"price\": 0,\n        \"product_type\": \"simple\",\n        \"quote_id\": \"nf4zndNdVn1UejoYHfGDgkeXYrN8IxSF\",\n        \"extension_attributes\": {\n            \"mp_free_gifts\": true,\n            \"mp_free_gifts_message\": \"You Deserved It!\"\n        }\n    }\n]"}],"_postman_id":"3b8b51c6-39d9-417f-9df2-e2e7ad5c7872"},{"name":"Get Gifts By Product SKU","id":"e1e9b7b0-f6f4-43c7-b6d6-b29058b1910f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/product/:sku","urlObject":{"path":["V1","mpfreegifts","gifts","product",":sku"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"type":"string","value":"24-MB04","key":"sku"}]}},"response":[{"id":"b69e7b57-a91d-4511-adfe-eff6e029c84e","name":"Get Gifts By Product SKU Example ","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/product/:sku","host":["{{magento_base_url}}rest"],"path":["V1","mpfreegifts","gifts","product",":sku"],"variable":[{"key":"sku","value":"24-MB04","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 04:40:28 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=nio93gpvr9arhb1abf5qcf20ee; expires=Fri, 06-Nov-2020 05:40:28 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"6358"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"462062"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rule_id\": \"3\",\n        \"auto_add\": 0,\n        \"max_gift\": 20,\n        \"gifts\": [\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 1,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-MB01\",\n                \"name\": \"Joust Duffle Bag\",\n                \"final_price\": \"$34.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb01-blue-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 2,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-MB04\",\n                \"name\": \"Strive Shoulder Pack\",\n                \"final_price\": \"$30.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb04-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 3,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-MB03\",\n                \"name\": \"Crown Summit Backpack\",\n                \"final_price\": \"$38.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb03-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 4,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-MB05\",\n                \"name\": \"Wayfarer Messenger Bag\",\n                \"final_price\": \"$45.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb05-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 5,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-MB06\",\n                \"name\": \"Rival Field Messenger\",\n                \"final_price\": \"$45.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb06-gray-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 6,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-MB02\",\n                \"name\": \"Fusion Backpack\",\n                \"final_price\": \"$59.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/b/mb02-gray-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 7,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UB02\",\n                \"name\": \"Impulse Duffle\",\n                \"final_price\": \"$74.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/b/ub02-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 8,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB01\",\n                \"name\": \"Voyage Yoga Bag\",\n                \"final_price\": \"$32.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb01-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 9,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB02\",\n                \"name\": \"Compete Track Tote\",\n                \"final_price\": \"$32.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb02-green-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 10,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB05\",\n                \"name\": \"Savvy Shoulder Tote\",\n                \"final_price\": \"$24.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb05-red-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 11,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB06\",\n                \"name\": \"Endeavor Daytrip Backpack\",\n                \"final_price\": \"$33.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb06-red-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 12,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB03\",\n                \"name\": \"Driven Backpack\",\n                \"final_price\": \"$36.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb03-purple-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 13,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB07\",\n                \"name\": \"Overnight Duffle\",\n                \"final_price\": \"$45.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb07-brown-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 14,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-WB04\",\n                \"name\": \"Push It Messenger Bag\",\n                \"final_price\": \"$45.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/w/b/wb04-blue-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 15,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UG06\",\n                \"name\": \"Affirm Water Bottle \",\n                \"final_price\": \"$7.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/g/ug06-lb-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 16,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UG07\",\n                \"name\": \"Dual Handle Cardio Ball\",\n                \"final_price\": \"$12.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/g/ug07-bk-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 17,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UG04\",\n                \"name\": \"Zing Jump Rope\",\n                \"final_price\": \"$12.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/g/ug04-bk-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 18,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UG02\",\n                \"name\": \"Pursuit Lumaflex&trade; Tone Band\",\n                \"final_price\": \"$16.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/g/ug02-bk-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 19,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UG05\",\n                \"name\": \"Go-Get'r Pushup Grips\",\n                \"final_price\": \"$19.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/g/ug05-gr-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 20,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"sku\": \"24-UG01\",\n                \"name\": \"Quest Lumaflex&trade; Band\",\n                \"final_price\": \"$19.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/u/g/ug01-bk-0.jpg\"\n            }\n        ],\n        \"total_added\": 0,\n        \"notice\": \"You Deserved It!\"\n    }\n]"}],"_postman_id":"e1e9b7b0-f6f4-43c7-b6d6-b29058b1910f"},{"name":"Get Gifts By Quote Item ID","id":"cb31a657-376d-4d65-8c40-78eff5b0d183","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/quote_item/:itemId","urlObject":{"path":["V1","mpfreegifts","gifts","quote_item",":itemId"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"type":"string","value":"100","key":"itemId"}]}},"response":[{"id":"b71a2bf3-2c28-48d4-b2ad-cbabc5f94b2b","name":"Get Gifts By Quote Item ID Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/quote_item/:itemId","host":["{{magento_base_url}}rest"],"path":["V1","mpfreegifts","gifts","quote_item",":itemId"],"variable":[{"key":"itemId","value":"100","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 07:38:12 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=2bn5qcbd63q56d2rghgs9bllrf; expires=Fri, 06-Nov-2020 08:38:12 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"6522"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"203724"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rule_id\": \"3\",\n        \"auto_add\": 0,\n        \"max_gift\": 20,\n        \"gifts\": [\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 700,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MT07\",\n                \"name\": \"Argus All-Weather Tank\",\n                \"final_price\": \"$22.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/t/mt07-gray_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"added_options\": {\n                    \"93\": \"5480\",\n                    \"144\": \"5594\"\n                },\n                \"id\": 706,\n                \"added\": true,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MT08\",\n                \"name\": \"Sparta Gym Tank\",\n                \"final_price\": \"$29.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/t/mt08-green_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 712,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MT09\",\n                \"name\": \"Sinbad Fitness Tank\",\n                \"final_price\": \"$29.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/t/mt09-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 718,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MT10\",\n                \"name\": \"Tiberius Gym Tank\",\n                \"final_price\": \"$18.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/t/mt10-yellow_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 724,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MT11\",\n                \"name\": \"Atlas Fitness Tank\",\n                \"final_price\": \"$18.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/t/mt11-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 730,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MT12\",\n                \"name\": \"Cassius Sparring Tank\",\n                \"final_price\": \"$18.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/t/mt12-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 743,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP01\",\n                \"name\": \"Caesar Warm-Up Pant\",\n                \"final_price\": \"$35.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp01-gray_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 756,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP02\",\n                \"name\": \"Viktor LumaTech&trade; Pant\",\n                \"final_price\": \"$46.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp02-gray_main_2.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 769,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP03\",\n                \"name\": \"Geo Insulated Jogging Pant\",\n                \"final_price\": \"$51.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp03-black_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 782,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP04\",\n                \"name\": \"Supernova Sport Pant\",\n                \"final_price\": \"$45.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp04-gray_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 795,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP05\",\n                \"name\": \"Kratos Gym Pant\",\n                \"final_price\": \"$57.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp05-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 808,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP06\",\n                \"name\": \"Mithra Warmup Pant\",\n                \"final_price\": \"$28.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp06-gray_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 821,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP07\",\n                \"name\": \"Thorpe Track Pant\",\n                \"final_price\": \"$68.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp07-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 834,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP08\",\n                \"name\": \"Zeppelin Yoga Pant\",\n                \"final_price\": \"$82.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp08-green_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 847,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP09\",\n                \"name\": \"Livingston All-Purpose Tight\",\n                \"final_price\": \"$75.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp09-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 860,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP10\",\n                \"name\": \"Orestes Yoga Pant \",\n                \"final_price\": \"$66.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp10-black_main_2.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 873,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP11\",\n                \"name\": \"Aether Gym Pant \",\n                \"final_price\": \"$74.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp11-brown_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 886,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MP12\",\n                \"name\": \"Cronus Yoga Pant \",\n                \"final_price\": \"$48.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/p/mp12-black_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$3.00\",\n                \"free_ship\": 1,\n                \"added_options\": {\n                    \"93\": \"5476\",\n                    \"144\": \"5603\"\n                },\n                \"id\": 899,\n                \"added\": true,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MSH01\",\n                \"name\": \"Cobalt CoolTech&trade; Fitness Short\",\n                \"final_price\": \"$44.00\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/s/msh01-blue_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$1.00\",\n                \"free_ship\": 1,\n                \"id\": 904,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"sku\": \"MSH02\",\n                \"name\": \"Apollo Running Short\",\n                \"final_price\": \"$32.50\",\n                \"image\": \"http://dev.mageplaza.vn/api/api5/pub/media/catalog/product/cache/5b615098b8ccd5c07fb5f396b58a96e7/m/s/msh02-black_main_1.jpg\"\n            }\n        ],\n        \"total_added\": 2,\n        \"notice\": \"You Deserved It!\"\n    }\n]"}],"_postman_id":"cb31a657-376d-4d65-8c40-78eff5b0d183"},{"name":"Delete Gift By Quote Item ID","id":"e3749c8a-cfb5-464c-9d6e-0fd56fb124e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{magento_base_url}}rest/V1/mpfreegifts/gift/delete/quote/:quoteId/item/:itemId","urlObject":{"path":["V1","mpfreegifts","gift","delete","quote",":quoteId","item",":itemId"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"type":"string","value":"32","key":"quoteId"},{"type":"string","value":"100","key":"itemId"}]}},"response":[{"id":"acb751b6-28d9-49c3-b83a-7a87c3d93ca0","name":"Delete Gift By Quote Item ID Example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{magento_base_url}}rest/V1/mpfreegifts/gift/delete/quote/:quoteId/item/:itemId","host":["{{magento_base_url}}rest"],"path":["V1","mpfreegifts","gift","delete","quote",":quoteId","item",":itemId"],"variable":[{"key":"quoteId","value":"32","type":"string"},{"key":"itemId","value":"100","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 07:55:02 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=2bn5qcbd63q56d2rghgs9bllrf; expires=Fri, 06-Nov-2020 08:55:02 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2068230"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"e3749c8a-cfb5-464c-9d6e-0fd56fb124e0"},{"name":"Add Gift By ID","id":"a81e230c-dbf0-41d5-9e99-5c1850841a43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"giftItem\":{\r\n\t\t\"quote_id\": \"72\",\r\n\t\t\"rule_id\": \"1\",\r\n\t\t\"gift_id\": \"68\",\r\n\t\t\"product_option\": {\r\n\t    \t\"extension_attributes\": {\r\n\t        \t\"configurable_item_options\": [\r\n\t        \t\t{\r\n\t            \t\t\"option_id\": \"93\",\r\n\t            \t\t\"option_value\": 52\r\n\t        \t\t},\r\n\t        \t\t{\r\n\t            \t\t\"option_id\": \"141\",\r\n\t            \t\t\"option_value\": 168\r\n\t        \t\t}\r\n\t        \t]\r\n\t    \t}\r\n\t\t}\r\n\t}\r\n}"},"url":"{{magento_base_url}}rest/V1/mpfreegifts/gift/add","urlObject":{"path":["V1","mpfreegifts","gift","add"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"331df40d-9a6a-4729-85c2-dcef4923b97c","name":"Add Gift By ID Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n\t\"giftItem\":{\r\n\t\t\"quote_id\": \"72\",\r\n\t\t\"rule_id\": \"1\",\r\n\t\t\"gift_id\": \"68\",\r\n\t\t\"product_option\": {\r\n\t    \t\"extension_attributes\": {\r\n\t        \t\"configurable_item_options\": [\r\n\t        \t\t{\r\n\t            \t\t\"option_id\": \"93\",\r\n\t            \t\t\"option_value\": 52\r\n\t        \t\t},\r\n\t        \t\t{\r\n\t            \t\t\"option_id\": \"141\",\r\n\t            \t\t\"option_value\": 168\r\n\t        \t\t}\r\n\t        \t]\r\n\t    \t}\r\n\t\t}\r\n\t}\r\n}"},"url":"{{magento_base_url}}rest/V1/mpfreegifts/gift/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Feb 2020 04:23:41 GMT"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=m1rgqhblj3croibjqftcg1ducr; expires=Wed, 19-Feb-2020 05:23:48 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"110"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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    \"status\": \"success\",\n    \"message\": null,\n    \"rule_id\": \"1\",\n    \"quote_id\": \"72\",\n    \"quote_item_id\": \"418\",\n    \"product_gift_id\": \"68\"\n}"}],"_postman_id":"a81e230c-dbf0-41d5-9e99-5c1850841a43"},{"name":"Add item to quote with gift","id":"44913087-de0f-421c-93b2-b89f658e2b23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer{{customer_access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"cartItem\": {\r\n    \"sku\": \"24-WG02\",\r\n    \"qty\": 1,\r\n    \"quote_id\": \"72\",\r\n    \"extension_attributes\": {\r\n    \t\"mp_free_gifts_add\": [\r\n    \t\t{\r\n    \t\t\t\"rule_id\": \"1\",\r\n    \t\t\t\"gift_id\": \"2\"\r\n    \t\t},\r\n    \t\t{\r\n    \t\t\t\"rule_id\": \"1\",\r\n    \t\t\t\"gift_id\": \"1\"\r\n    \t\t},\r\n    \t\t{\r\n    \t\t\t\"rule_id\": \"1\",\r\n    \t\t\t\"gift_id\": \"68\",\r\n    \t\t\t\"product_option\": {\r\n\t\t\t    \t\"extension_attributes\": {\r\n\t\t\t        \t\"configurable_item_options\": [\r\n\t\t\t        \t\t{\r\n\t\t\t            \t\t\"option_id\": \"93\",\r\n\t\t\t            \t\t\"option_value\": 52\r\n\t\t\t        \t\t},\r\n\t\t\t        \t\t{\r\n\t\t\t            \t\t\"option_id\": \"141\",\r\n\t\t\t            \t\t\"option_value\": 168\r\n\t\t\t        \t\t}\r\n\t\t\t        \t]\r\n\t\t\t    \t}\r\n    \t\t\t}\r\n    \t\t}\r\n\t\t]\r\n    }\r\n  }\r\n}"},"url":"{{magento_base_url}}rest/V1/carts/mine/items","urlObject":{"path":["V1","carts","mine","items"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"23efdf3d-a021-4c1e-9786-91e980e11a5a","name":"Add item to quote with gift Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer{{customer_access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"cartItem\": {\r\n    \"sku\": \"24-WG02\",\r\n    \"qty\": 1,\r\n    \"quote_id\": \"72\",\r\n    \"extension_attributes\": {\r\n    \t\"mp_free_gifts_add\": [\r\n    \t\t{\r\n    \t\t\t\"rule_id\": \"1\",\r\n    \t\t\t\"gift_id\": \"2\"\r\n    \t\t},\r\n    \t\t{\r\n    \t\t\t\"rule_id\": \"1\",\r\n    \t\t\t\"gift_id\": \"1\"\r\n    \t\t},\r\n    \t\t{\r\n    \t\t\t\"rule_id\": \"1\",\r\n    \t\t\t\"gift_id\": \"68\",\r\n    \t\t\t\"product_option\": {\r\n\t\t\t    \t\"extension_attributes\": {\r\n\t\t\t        \t\"configurable_item_options\": [\r\n\t\t\t        \t\t{\r\n\t\t\t            \t\t\"option_id\": \"93\",\r\n\t\t\t            \t\t\"option_value\": 52\r\n\t\t\t        \t\t},\r\n\t\t\t        \t\t{\r\n\t\t\t            \t\t\"option_id\": \"141\",\r\n\t\t\t            \t\t\"option_value\": 168\r\n\t\t\t        \t\t}\r\n\t\t\t        \t]\r\n\t\t\t    \t}\r\n    \t\t\t}\r\n    \t\t}\r\n\t\t]\r\n    }\r\n  }\r\n}"},"url":"{{magento_base_url}}rest/V1/carts/mine/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Feb 2020 04:24:36 GMT"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=m1rgqhblj3croibjqftcg1ducr; expires=Wed, 19-Feb-2020 05:24:41 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"529"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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    \"item_id\": 420,\n    \"sku\": \"24-WG02\",\n    \"qty\": 1,\n    \"name\": \"Didi Sport Watch\",\n    \"price\": 92,\n    \"product_type\": \"simple\",\n    \"quote_id\": \"72\",\n    \"extension_attributes\": {\n        \"mp_free_gifts_response\": [\n            {\n                \"status\": \"success\",\n                \"message\": null,\n                \"rule_id\": \"1\",\n                \"quote_id\": \"72\",\n                \"quote_item_id\": \"421\",\n                \"product_gift_id\": \"2\"\n            },\n            {\n                \"status\": \"success\",\n                \"message\": null,\n                \"rule_id\": \"1\",\n                \"quote_id\": \"72\",\n                \"quote_item_id\": \"422\",\n                \"product_gift_id\": \"1\"\n            },\n            {\n                \"status\": \"error\",\n                \"message\": \"Gift with id '68' is already added.\",\n                \"rule_id\": \"1\",\n                \"quote_id\": \"72\",\n                \"quote_item_id\": null,\n                \"product_gift_id\": \"68\"\n            }\n        ]\n    }\n}"}],"_postman_id":"44913087-de0f-421c-93b2-b89f658e2b23"},{"name":"GET Gift By Quote ID","id":"e3b86c31-095e-4e78-ad78-cea9eb6620d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/cart/:cartId","urlObject":{"path":["V1","mpfreegifts","gifts","cart",":cartId"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"id":"56d79d6f-73e0-4d90-9cac-ba84dd705ce8","type":"string","value":"3JwH7Oz7V6L7DvGbtpRNPyxzGA6EDqwF","key":"cartId"}]}},"response":[{"id":"94d7c133-b861-4545-b83c-1213afcb9c11","name":"GET Gift By Quote ID Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"","type":"text","value":"","disabled":true}],"url":{"raw":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/cart/:cartId","host":["{{magento_base_url}}rest"],"path":["V1","mpfreegifts","gifts","cart",":cartId"],"variable":[{"key":"cartId","value":"3JwH7Oz7V6L7DvGbtpRNPyxzGA6EDqwF"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Feb 2020 01:23:06 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=1i2bvrmqiefhgcu4868pfta9lh; expires=Thu, 20-Feb-2020 02:23:11 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1612"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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    {\n        \"rule_id\": \"1\",\n        \"auto_add\": 1,\n        \"max_gift\": 5,\n        \"gifts\": [\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 1,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"name\": \"Joust Duffle Bag\",\n                \"final_price\": \"$34.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/b/mb01-blue-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 420,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"name\": \"Montana Wind Jacket\",\n                \"final_price\": \"$49.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/j/mj03-black_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 2,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"name\": \"Strive Shoulder Pack\",\n                \"final_price\": \"$32.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/b/mb04-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 3,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"name\": \"Crown Summit Backpack\",\n                \"final_price\": \"$38.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/b/mb03-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 68,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"name\": \"Chaz Kangeroo Hoodie\",\n                \"final_price\": \"$52.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/h/mh01-gray_main_1.jpg\"\n            }\n        ],\n        \"total_added\": 0,\n        \"notice\": \"You Deserved It!\"\n    }\n]"}],"_postman_id":"e3b86c31-095e-4e78-ad78-cea9eb6620d8"},{"name":"GET Gift By Quote ID By Customer","id":"392aeb4a-f911-4a93-8219-d141aed6984a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer{{customer_access_token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"raw","raw":""},"url":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/mine","urlObject":{"path":["V1","mpfreegifts","gifts","mine"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"afe21d95-1393-4303-8ba4-8791e5f05425","name":"GET Gift By Quote ID By Customer Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer{{customer_access_token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"{{magento_base_url}}rest/V1/mpfreegifts/gifts/mine"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Feb 2020 01:23:49 GMT"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=1i2bvrmqiefhgcu4868pfta9lh; expires=Thu, 20-Feb-2020 02:23:54 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1652"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"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    {\n        \"rule_id\": \"1\",\n        \"auto_add\": 1,\n        \"max_gift\": 5,\n        \"gifts\": [\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 1,\n                \"added\": true,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"name\": \"Joust Duffle Bag\",\n                \"final_price\": \"$34.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/b/mb01-blue-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 420,\n                \"added\": false,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"name\": \"Montana Wind Jacket\",\n                \"final_price\": \"$49.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/j/mj03-black_main_1.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 2,\n                \"added\": true,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"name\": \"Strive Shoulder Pack\",\n                \"final_price\": \"$32.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/b/mb04-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"id\": 3,\n                \"added\": false,\n                \"configurable\": false,\n                \"required_option\": false,\n                \"name\": \"Crown Summit Backpack\",\n                \"final_price\": \"$38.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/b/mb03-black-0.jpg\"\n            },\n            {\n                \"gift_price\": \"$0.00\",\n                \"free_ship\": 1,\n                \"added_options\": {\n                    \"93\": \"5476\",\n                    \"142\": \"5594\"\n                },\n                \"id\": 68,\n                \"added\": true,\n                \"configurable\": true,\n                \"required_option\": false,\n                \"name\": \"Chaz Kangeroo Hoodie\",\n                \"final_price\": \"$52.00\",\n                \"image\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/43f3b72a95cda75e5b7df0a79394a62b/m/h/mh01-gray_main_1.jpg\"\n            }\n        ],\n        \"total_added\": 3,\n        \"notice\": \"You Deserved It!\"\n    }\n]"}],"_postman_id":"392aeb4a-f911-4a93-8219-d141aed6984a"},{"name":"Get configuration of Free Gifts","id":"ad1fdd1d-bde3-4d15-9eba-f46e6a634f8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}rest/V1/mpfreegifts/config","urlObject":{"path":["V1","mpfreegifts","config"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"7693f708-2553-4695-bfa9-58ef0ee3b08a","name":"Get configuration of Free Gifts Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}rest/V1/mpfreegifts/config"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 03:02:46 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=nio93gpvr9arhb1abf5qcf20ee; expires=Fri, 06-Nov-2020 04:02:46 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"247"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"66797"},{"key":"Via","value":"1.1 varnish (Varnish/6.1)"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"general\": {\n        \"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}"}],"_postman_id":"ad1fdd1d-bde3-4d15-9eba-f46e6a634f8b"},{"name":"Get Guest Carts Token","id":"38836e86-ea31-4ece-aa5d-8b4e35dcb895","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}rest/V1/guest-carts","urlObject":{"path":["V1","guest-carts"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"1825588e-c780-4aa4-b655-f4700b486b99","name":"Guest-carts Token Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}rest/V1/guest-carts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 04:34:37 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=nio93gpvr9arhb1abf5qcf20ee; expires=Fri, 06-Nov-2020 05:34:37 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"34"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"428312"},{"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":"\"zamch2OHr1CHt4dSwWVMbrZFDSnrczHr\""}],"_postman_id":"38836e86-ea31-4ece-aa5d-8b4e35dcb895"},{"name":"Add Free Gift Guest Carts","id":"1b967e5e-2cd5-4d3b-88bc-6b1b6f010d70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}rest/V1/guest-carts/zamch2OHr1CHt4dSwWVMbrZFDSnrczHr","urlObject":{"path":["V1","guest-carts","zamch2OHr1CHt4dSwWVMbrZFDSnrczHr"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"2056063a-dcac-45bc-85d3-56a685c9c7ee","name":"Add Free Gift Guest-cart Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{admin_token}}"}],"url":"{{magento_base_url}}rest/V1/guest-carts/zamch2OHr1CHt4dSwWVMbrZFDSnrczHr"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Nov 2020 04:34:49 GMT"},{"key":"Set-Cookie","value":"PHPSESSID=nio93gpvr9arhb1abf5qcf20ee; expires=Fri, 06-Nov-2020 05:34:49 GMT; Max-Age=3600; path=/api/api5; domain=dev.mageplaza.vn; HttpOnly"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1290"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"362346"},{"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    \"id\": 30,\n    \"created_at\": \"2020-11-06 04:34:37\",\n    \"updated_at\": \"2020-11-06 04:34:37\",\n    \"is_active\": true,\n    \"is_virtual\": false,\n    \"items\": [],\n    \"items_count\": 0,\n    \"items_qty\": 0,\n    \"customer\": {\n        \"email\": null,\n        \"firstname\": null,\n        \"lastname\": null\n    },\n    \"billing_address\": {\n        \"id\": 80,\n        \"region\": null,\n        \"region_id\": null,\n        \"region_code\": null,\n        \"country_id\": null,\n        \"street\": [\n            \"\"\n        ],\n        \"telephone\": null,\n        \"postcode\": null,\n        \"city\": null,\n        \"firstname\": null,\n        \"lastname\": null,\n        \"email\": null,\n        \"same_as_billing\": 0,\n        \"save_in_address_book\": 0\n    },\n    \"orig_order_id\": 0,\n    \"currency\": {\n        \"global_currency_code\": \"USD\",\n        \"base_currency_code\": \"USD\",\n        \"store_currency_code\": \"USD\",\n        \"quote_currency_code\": \"USD\",\n        \"store_to_base_rate\": 0,\n        \"store_to_quote_rate\": 0,\n        \"base_to_global_rate\": 1,\n        \"base_to_quote_rate\": 1\n    },\n    \"customer_is_guest\": false,\n    \"customer_note_notify\": true,\n    \"customer_tax_class_id\": 3,\n    \"store_id\": 1,\n    \"extension_attributes\": {\n        \"shipping_assignments\": [],\n        \"mp_free_gifts\": [\n            \"{\\\"rule_id\\\":\\\"1\\\",\\\"auto_add\\\":0,\\\"max_gift\\\":4,\\\"gifts\\\":[{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":1},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":2},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":3},{\\\"gift_price\\\":0,\\\"free_ship\\\":1,\\\"id\\\":4}],\\\"total_added\\\":0,\\\"notice\\\":\\\"You Deserved It!\\\"}\"\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}"}],"_postman_id":"1b967e5e-2cd5-4d3b-88bc-6b1b6f010d70"}]}