{"info":{"_postman_id":"a89a9a73-f680-49ed-856f-840b0c698e6a","name":"Magento 2 Extra Fee API & Example","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"a89a9a73-f680-49ed-856f-840b0c698e6a","publishedId":"UzBpM6ij","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-23T06:48:10.000Z"},"item":[{"name":"Update Extra Fee with Customer","id":"f6702e3f-60ba-4494-8ca8-f5a2c76de3e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"cartId\":\"131\",\r\n    \"area\":\"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafee","urlObject":{"path":["V1","carts","mine","mpextrafee"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"20b201b6-310f-49fe-bcbd-67dfba2d941e","name":"Update Extra Fee with Customer Exaple","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"cartId\":\"131\",\r\n    \"area\":\"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafee"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 07:30:59 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=lr2h154q4airg8nv60ushnrug9; expires=Thu, 23-Jun-2022 08:30:59 GMT; Max-Age=3600; path=/dangmaianh/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1236"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1896628"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    [\n        [\n            {\n                \"rule_id\": \"1\",\n                \"name\": \"Extra Fee\",\n                \"status\": \"1\",\n                \"description\": null,\n                \"store_ids\": \"0\",\n                \"customer_groups\": \"0,1,2,3\",\n                \"priority\": \"0\",\n                \"apply_type\": \"2\",\n                \"fee_type\": \"1\",\n                \"amount\": \"20.0000\",\n                \"area\": \"1\",\n                \"display_type\": \"1\",\n                \"is_required\": \"0\",\n                \"fee_tax\": \"0\",\n                \"sort_order\": \"0\",\n                \"refundable\": \"0\",\n                \"stop_further_processing\": \"0\",\n                \"labels\": \"{\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\"}\",\n                \"options\": \"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":5,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":5,\\\"calculated_amount_incl_tax\\\":5},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":15},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":2.2,\\\"calculated_amount_incl_tax\\\":2.2}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_1\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\n                \"created_at\": \"2022-06-23 04:52:05\",\n                \"updated_at\": \"2022-06-23 06:45:02\"\n            }\n        ]\n    ],\n    [\n        {\n            \"rule\": {\n                \"1\": \"option_1\"\n            }\n        }\n    ]\n]"}],"_postman_id":"f6702e3f-60ba-4494-8ca8-f5a2c76de3e1"},{"name":"Update Extra Fee with Customer Guest","id":"46eaba0b-6323-47ef-9cac-0da17aaebc01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"area\":\"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/guest-carts/:cartId/mpextrafee","urlObject":{"path":["V1","guest-carts",":cartId","mpextrafee"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"type":"any","value":"vri4usDHSQQIX4Pt7YFMUczpisQ4RDWa","key":"cartId"}]}},"response":[{"id":"9b1176ce-39b5-4b05-bbb8-364563648b2b","name":"Update Extra Fee with Customer Guest Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"area\":\"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":{"raw":"{{magento_base_url}}rest/V1/guest-carts/:cartId/mpextrafee","host":["{{magento_base_url}}rest"],"path":["V1","guest-carts",":cartId","mpextrafee"],"variable":[{"key":"cartId","value":"vri4usDHSQQIX4Pt7YFMUczpisQ4RDWa"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 07:31:32 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=lr2h154q4airg8nv60ushnrug9; expires=Thu, 23-Jun-2022 08:31:32 GMT; Max-Age=3600; path=/dangmaianh/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1219"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1821030"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    [\n        [\n            {\n                \"rule_id\": \"1\",\n                \"name\": \"Extra Fee\",\n                \"status\": \"1\",\n                \"description\": null,\n                \"store_ids\": \"0\",\n                \"customer_groups\": \"0,1,2,3\",\n                \"priority\": \"0\",\n                \"apply_type\": \"2\",\n                \"fee_type\": \"1\",\n                \"amount\": \"20.0000\",\n                \"area\": \"1\",\n                \"display_type\": \"1\",\n                \"is_required\": \"0\",\n                \"fee_tax\": \"0\",\n                \"sort_order\": \"0\",\n                \"refundable\": \"0\",\n                \"stop_further_processing\": \"0\",\n                \"labels\": \"{\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\"}\",\n                \"options\": \"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":5,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":5,\\\"calculated_amount_incl_tax\\\":5},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":15},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":4.5,\\\"calculated_amount_incl_tax\\\":4.5}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_1\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\n                \"created_at\": \"2022-06-23 04:52:05\",\n                \"updated_at\": \"2022-06-23 06:45:02\"\n            }\n        ]\n    ],\n    [\n        {\n            \"1\": \"\"\n        }\n    ]\n]"}],"_postman_id":"46eaba0b-6323-47ef-9cac-0da17aaebc01"},{"name":"Get Rules with Customer","id":"5328c76b-fa0d-45d8-bd71-b5ec685b0409","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rules\":\"2\",\r\n   \"select_options\":\"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":10,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":16.26},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_2\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\r\n   \"area\":\"1\",\r\n   \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafee/rules","urlObject":{"path":["V1","carts","mine","mpextrafee","rules"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"48d10e0f-28cb-4abf-9cf7-0132f3b07e55","name":"Get Rules with Customer Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer 17zle1xu98r5t5uda20wwu8w47gh6wfs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rules\":\"2\",\r\n   \"select_options\":\"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":10,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":16.26},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_2\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\r\n   \"area\":\"1\",\r\n   \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafee/rules"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 04:30:49 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=m3qhr4vlsilqatgamh4ej0apf6; expires=Thu, 23-Jun-2022 05:30:49 GMT; Max-Age=3600; path=/hiennt/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1636"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1819347"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"rules\": {\n        \"payment_method\": [\n            {\n                \"rule_id\": \"2\",\n                \"name\": \"Extra Fee\",\n                \"status\": \"1\",\n                \"description\": \"Magento currently only supports certain shipping methods: Free Shipping, Flat Rate, Table Rate, UPS, Magento Shipping, USPS, FedEx, DHL\",\n                \"store_ids\": \"0\",\n                \"customer_groups\": \"0,1,2,3\",\n                \"priority\": \"0\",\n                \"apply_type\": \"2\",\n                \"fee_type\": \"1\",\n                \"amount\": \"10.0000\",\n                \"area\": \"1\",\n                \"display_type\": \"2\",\n                \"is_required\": \"0\",\n                \"fee_tax\": \"2\",\n                \"sort_order\": \"2\",\n                \"refundable\": \"1\",\n                \"stop_further_processing\": \"0\",\n                \"labels\": \"{\\\"1\\\":\\\"Extra fee\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\"}\",\n                \"options\": \"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":10,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":16.26},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_2\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\n                \"created_at\": \"2021-12-13 08:22:28\",\n                \"updated_at\": \"2022-06-23 04:18:40\"\n            }\n        ],\n        \"shipping_method\": null,\n        \"cart_summary\": null\n    },\n    \"selected_options\": \"{\\\"2\\\":\\\"option_2\\\"}\"\n}"}],"_postman_id":"5328c76b-fa0d-45d8-bd71-b5ec685b0409"},{"name":"Get Rules with Customer Guest","id":"7de4fd97-dc23-4125-bb47-0a654adef05c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rules\":\"2\",\r\n   \"select_options\":\"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":10,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":16.26},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_2\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\r\n   \"area\":\"1\",\r\n   \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}"},"url":"{{magento_base_url}}rest/V1/guest-carts/:cartId/mpextrafee/rules","urlObject":{"path":["V1","guest-carts",":cartId","mpextrafee","rules"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"type":"any","value":"gd2x2goef6GNMNOfjr7ZgxWy9836LqED","key":"cartId"}]}},"response":[{"id":"a6f6b9a9-f759-441e-a295-b5abe62c9188","name":"Get Rules with Customer Guest Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rules\":\"2\",\r\n   \"select_options\":\"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":10,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":16.26},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":0,\\\"calculated_amount_incl_tax\\\":0}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_2\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\r\n   \"area\":\"1\",\r\n   \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}"},"url":{"raw":"{{magento_base_url}}rest/V1/guest-carts/:cartId/mpextrafee/rules","host":["{{magento_base_url}}rest"],"path":["V1","guest-carts",":cartId","mpextrafee","rules"],"variable":[{"key":"cartId","value":"gd2x2goef6GNMNOfjr7ZgxWy9836LqED"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 04:33:40 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=m3qhr4vlsilqatgamh4ej0apf6; expires=Thu, 23-Jun-2022 05:33:40 GMT; Max-Age=3600; path=/hiennt/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1647"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"3541409"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"rules\": {\n        \"payment_method\": [\n            {\n                \"rule_id\": \"2\",\n                \"name\": \"Extra Fee\",\n                \"status\": \"1\",\n                \"description\": \"Magento currently only supports certain shipping methods: Free Shipping, Flat Rate, Table Rate, UPS, Magento Shipping, USPS, FedEx, DHL\",\n                \"store_ids\": \"0\",\n                \"customer_groups\": \"0,1,2,3\",\n                \"priority\": \"0\",\n                \"apply_type\": \"2\",\n                \"fee_type\": \"1\",\n                \"amount\": \"10.0000\",\n                \"area\": \"1\",\n                \"display_type\": \"2\",\n                \"is_required\": \"0\",\n                \"fee_tax\": \"2\",\n                \"sort_order\": \"2\",\n                \"refundable\": \"1\",\n                \"stop_further_processing\": \"0\",\n                \"labels\": \"{\\\"1\\\":\\\"Extra fee\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\"}\",\n                \"options\": \"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":10,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":10,\\\"calculated_amount_incl_tax\\\":10.84},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_incl_tax\\\":16.26},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"6\\\":\\\"\\\",\\\"7\\\":\\\"\\\",\\\"calculated_amount\\\":1.52,\\\"calculated_amount_incl_tax\\\":1.64}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_2\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\n                \"created_at\": \"2021-12-13 08:22:28\",\n                \"updated_at\": \"2022-06-23 04:18:40\"\n            }\n        ],\n        \"shipping_method\": null,\n        \"cart_summary\": null\n    },\n    \"selected_options\": \"{\\\"2\\\":\\\"option_2\\\"}\"\n}"}],"_postman_id":"7de4fd97-dc23-4125-bb47-0a654adef05c"},{"name":"Collect Total with Customer","id":"aad9da15-e1a4-4936-aeae-842f7d71c6e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"cartId\":\"260\",\r\n    \"area\":\"2\",\r\n    \"formData\": \"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafee/collecttotal","urlObject":{"path":["V1","carts","mine","mpextrafee","collecttotal"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"30b10bd6-a377-4a93-be31-87c7ce97d211","name":"Collect Total with Customer Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"cartId\":\"260\",\r\n    \"area\":\"2\",\r\n    \"formData\": \"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafee/collecttotal"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 07:09:08 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=lr2h154q4airg8nv60ushnrug9; expires=Thu, 23-Jun-2022 08:09:08 GMT; Max-Age=3600; path=/dangmaianh/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1866"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"3478690"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"grand_total\": 37,\n    \"base_grand_total\": 38.82,\n    \"subtotal\": 22,\n    \"base_subtotal\": 22,\n    \"discount_amount\": 0,\n    \"base_discount_amount\": 0,\n    \"subtotal_with_discount\": 22,\n    \"base_subtotal_with_discount\": 22,\n    \"shipping_amount\": 0,\n    \"base_shipping_amount\": 0,\n    \"shipping_discount_amount\": 0,\n    \"base_shipping_discount_amount\": 0,\n    \"tax_amount\": 1.82,\n    \"base_tax_amount\": 1.82,\n    \"weee_tax_applied_amount\": null,\n    \"shipping_tax_amount\": 0,\n    \"base_shipping_tax_amount\": 0,\n    \"subtotal_incl_tax\": 23.82,\n    \"shipping_incl_tax\": 0,\n    \"base_shipping_incl_tax\": 0,\n    \"base_currency_code\": \"USD\",\n    \"quote_currency_code\": \"USD\",\n    \"items_qty\": 1,\n    \"items\": [\n        {\n            \"item_id\": 847,\n            \"price\": 22,\n            \"base_price\": 22,\n            \"qty\": 1,\n            \"row_total\": 22,\n            \"base_row_total\": 22,\n            \"row_total_with_discount\": 0,\n            \"tax_amount\": 1.82,\n            \"base_tax_amount\": 1.82,\n            \"tax_percent\": 8.25,\n            \"discount_amount\": 0,\n            \"base_discount_amount\": 0,\n            \"discount_percent\": 0,\n            \"price_incl_tax\": 23.82,\n            \"base_price_incl_tax\": 23.82,\n            \"row_total_incl_tax\": 23.82,\n            \"base_row_total_incl_tax\": 23.82,\n            \"options\": \"[{\\\"value\\\":\\\"XS\\\",\\\"label\\\":\\\"Size\\\"},{\\\"value\\\":\\\"Blue\\\",\\\"label\\\":\\\"Color\\\"}]\",\n            \"weee_tax_applied_amount\": null,\n            \"weee_tax_applied\": null,\n            \"extension_attributes\": {\n                \"mposc\": \"{\\\"product_url\\\":\\\"http:\\\\/\\\\/dev.mageplaza.vn:8080\\\\/dangmaianh\\\\/ce243p1\\\\/pub\\\\/radiant-tee.html\\\"}\"\n            },\n            \"name\": \"Radiant Tee\"\n        }\n    ],\n    \"total_segments\": [\n        {\n            \"code\": \"subtotal\",\n            \"title\": \"Subtotal\",\n            \"value\": 22\n        },\n        {\n            \"code\": \"shipping\",\n            \"title\": \"Shipping & Handling\",\n            \"value\": 0\n        },\n        {\n            \"code\": \"tax\",\n            \"title\": \"Tax\",\n            \"value\": 1.82,\n            \"extension_attributes\": {\n                \"tax_grandtotal_details\": [\n                    {\n                        \"amount\": 1.82,\n                        \"rates\": [\n                            {\n                                \"percent\": \"8.25\",\n                                \"title\": \"US-MI-*-Rate 1\"\n                            }\n                        ],\n                        \"group_id\": 1\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"mp_extra_fee_rule_1_option_1\",\n            \"title\": \"4-Hour shipping fee\",\n            \"value\": 15,\n            \"extension_attributes\": {\n                \"value_incl_tax\": 15,\n                \"rule_label\": \"Extra Fee\"\n            }\n        },\n        {\n            \"code\": \"osc_gift_wrap\",\n            \"title\": \"Gift Wrap\",\n            \"value\": 0,\n            \"extension_attributes\": {\n                \"gift_wrap_amount\": 15\n            }\n        },\n        {\n            \"code\": \"grand_total\",\n            \"title\": \"Grand Total\",\n            \"value\": 38.82,\n            \"area\": \"footer\"\n        }\n    ]\n}"}],"_postman_id":"aad9da15-e1a4-4936-aeae-842f7d71c6e4"},{"name":"Collect Total with Customer Guest","id":"b65594ed-d380-410c-9c53-0ed5e7c40f59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"area\":\"1\",\r\n    \"formData\": \"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/guest-carts/:cartId/mpextrafee/collecttotal","urlObject":{"path":["V1","guest-carts",":cartId","mpextrafee","collecttotal"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[{"type":"any","value":"vri4usDHSQQIX4Pt7YFMUczpisQ4RDWa","key":"cartId"}]}},"response":[{"id":"6f770f29-db96-446a-a713-d90bf8cf1270","name":"Collect Total with Customer Guest Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"area\":\"1\",\r\n    \"formData\": \"1\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"bestway\"\r\n  }\r\n}\r\n"},"url":{"raw":"{{magento_base_url}}rest/V1/guest-carts/:cartId/mpextrafee/collecttotal","host":["{{magento_base_url}}rest"],"path":["V1","guest-carts",":cartId","mpextrafee","collecttotal"],"variable":[{"key":"cartId","value":"vri4usDHSQQIX4Pt7YFMUczpisQ4RDWa"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 07:22:58 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=lr2h154q4airg8nv60ushnrug9; expires=Thu, 23-Jun-2022 08:22:58 GMT; Max-Age=3600; path=/dangmaianh/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1556"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1212019"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"grand_total\": 50,\n    \"base_grand_total\": 50,\n    \"subtotal\": 45,\n    \"base_subtotal\": 45,\n    \"discount_amount\": 0,\n    \"base_discount_amount\": 0,\n    \"subtotal_with_discount\": 45,\n    \"base_subtotal_with_discount\": 45,\n    \"shipping_amount\": 5,\n    \"base_shipping_amount\": 5,\n    \"shipping_discount_amount\": 0,\n    \"base_shipping_discount_amount\": 0,\n    \"tax_amount\": 0,\n    \"base_tax_amount\": 0,\n    \"weee_tax_applied_amount\": null,\n    \"shipping_tax_amount\": 0,\n    \"base_shipping_tax_amount\": 0,\n    \"subtotal_incl_tax\": 45,\n    \"shipping_incl_tax\": 5,\n    \"base_shipping_incl_tax\": 5,\n    \"base_currency_code\": \"USD\",\n    \"quote_currency_code\": \"USD\",\n    \"items_qty\": 1,\n    \"items\": [\n        {\n            \"item_id\": 849,\n            \"price\": 45,\n            \"base_price\": 45,\n            \"qty\": 1,\n            \"row_total\": 45,\n            \"base_row_total\": 45,\n            \"row_total_with_discount\": 0,\n            \"tax_amount\": 0,\n            \"base_tax_amount\": 0,\n            \"tax_percent\": 0,\n            \"discount_amount\": 0,\n            \"base_discount_amount\": 0,\n            \"discount_percent\": 0,\n            \"price_incl_tax\": 45,\n            \"base_price_incl_tax\": 45,\n            \"row_total_incl_tax\": 45,\n            \"base_row_total_incl_tax\": 45,\n            \"options\": \"[]\",\n            \"weee_tax_applied_amount\": null,\n            \"weee_tax_applied\": null,\n            \"extension_attributes\": {\n                \"mposc\": \"{\\\"product_url\\\":\\\"http:\\\\/\\\\/dev.mageplaza.vn:8080\\\\/dangmaianh\\\\/ce243p1\\\\/pub\\\\/push-it-messenger-bag.html\\\"}\"\n            },\n            \"name\": \"Push It Messenger Bag\"\n        }\n    ],\n    \"total_segments\": [\n        {\n            \"code\": \"subtotal\",\n            \"title\": \"Subtotal\",\n            \"value\": 45\n        },\n        {\n            \"code\": \"shipping\",\n            \"title\": \"Shipping & Handling (Flat Rate - Fixed)\",\n            \"value\": 5\n        },\n        {\n            \"code\": \"tax\",\n            \"title\": \"Tax\",\n            \"value\": 0,\n            \"extension_attributes\": {\n                \"tax_grandtotal_details\": []\n            }\n        },\n        {\n            \"code\": \"osc_gift_wrap\",\n            \"title\": \"Gift Wrap\",\n            \"value\": 0,\n            \"extension_attributes\": {\n                \"gift_wrap_amount\": 15\n            }\n        },\n        {\n            \"code\": \"grand_total\",\n            \"title\": \"Grand Total\",\n            \"value\": 50,\n            \"area\": \"footer\"\n        }\n    ]\n}"}],"_postman_id":"b65594ed-d380-410c-9c53-0ed5e7c40f59"},{"name":"Update Extra fee when checkout with Multiple Shipping Address","id":"3d6932d8-e4ba-4acd-ac44-24cbbaa19107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"cartId\":\"259\",\r\n    \"area\":\"1\",\r\n    \"formData\": \"1\",\r\n    \"shippingMethods\": \"flatrate\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"flatrate\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafeemultishipping","urlObject":{"path":["V1","carts","mine","mpextrafeemultishipping"],"host":["{{magento_base_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"36daf56a-1164-4777-b936-8345c3ea2316","name":"Update Extra fee when checkout with Multiple Shipping Address Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_tocken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"cartId\":\"259\",\r\n    \"area\":\"1\",\r\n    \"formData\": \"1\",\r\n    \"shippingMethods\": \"flatrate\",\r\n  \"addressInformation\": {\r\n    \"shipping_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"billing_address\": {\r\n      \"region\": \"New York\",\r\n      \"region_id\": 43,\r\n      \"region_code\": \"NY\",\r\n      \"country_id\": \"US\",\r\n      \"street\": [\r\n        \"123 Oak Ave\"\r\n      ],\r\n      \"postcode\": \"10577\",\r\n      \"city\": \"Purchase\",\r\n      \"firstname\": \"Jane\",\r\n      \"lastname\": \"Doe\",\r\n      \"email\": \"jdoe@example.com\",\r\n      \"telephone\": \"512-555-1111\"\r\n    },\r\n    \"shipping_carrier_code\": \"tablerate\",\r\n    \"shipping_method_code\": \"flatrate\"\r\n  }\r\n}\r\n"},"url":"{{magento_base_url}}rest/V1/carts/mine/mpextrafeemultishipping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Jun 2022 06:46:56 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=lr2h154q4airg8nv60ushnrug9; expires=Thu, 23-Jun-2022 07:46:57 GMT; Max-Age=3600; path=/dangmaianh/ce243p1/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1764"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1896113"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"616\": {\n            \"1\": {\n                \"rule_id\": \"1\",\n                \"name\": \"Extra Fee\",\n                \"status\": \"1\",\n                \"description\": null,\n                \"store_ids\": \"0\",\n                \"customer_groups\": \"0,1,2,3\",\n                \"priority\": \"0\",\n                \"apply_type\": \"2\",\n                \"fee_type\": \"1\",\n                \"amount\": \"20.0000\",\n                \"area\": \"1\",\n                \"display_type\": \"1\",\n                \"is_required\": \"0\",\n                \"fee_tax\": \"0\",\n                \"sort_order\": \"0\",\n                \"refundable\": \"0\",\n                \"stop_further_processing\": \"0\",\n                \"labels\": \"{\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\"}\",\n                \"options\": \"{\\\"option\\\":{\\\"order\\\":{\\\"option_0\\\":\\\"1\\\",\\\"option_1\\\":\\\"2\\\",\\\"option_2\\\":\\\"3\\\"},\\\"value\\\":{\\\"option_0\\\":{\\\"type\\\":\\\"1\\\",\\\"amount\\\":5,\\\"0\\\":\\\"8-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":10,\\\"calculated_amount_format\\\":\\\"<span class=\\\\\\\"price\\\\\\\">$10.00<\\\\/span>\\\",\\\"calculated_amount_incl_tax\\\":10,\\\"calculated_amount_incl_tax_format\\\":\\\"<span class=\\\\\\\"price\\\\\\\">$10.00<\\\\/span>\\\"},\\\"option_1\\\":{\\\"type\\\":\\\"2\\\",\\\"amount\\\":15,\\\"0\\\":\\\"4-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":15,\\\"calculated_amount_format\\\":\\\"<span class=\\\\\\\"price\\\\\\\">$15.00<\\\\/span>\\\",\\\"calculated_amount_incl_tax\\\":15,\\\"calculated_amount_incl_tax_format\\\":\\\"<span class=\\\\\\\"price\\\\\\\">$15.00<\\\\/span>\\\"},\\\"option_2\\\":{\\\"type\\\":\\\"3\\\",\\\"amount\\\":10,\\\"0\\\":\\\"1-Hour shipping fee\\\",\\\"1\\\":\\\"\\\",\\\"4\\\":\\\"\\\",\\\"5\\\":\\\"\\\",\\\"calculated_amount\\\":10.4,\\\"calculated_amount_format\\\":\\\"<span class=\\\\\\\"price\\\\\\\">$10.40<\\\\/span>\\\",\\\"calculated_amount_incl_tax\\\":10.4,\\\"calculated_amount_incl_tax_format\\\":\\\"<span class=\\\\\\\"price\\\\\\\">$10.40<\\\\/span>\\\"}},\\\"delete\\\":{\\\"option_0\\\":\\\"\\\",\\\"option_1\\\":\\\"\\\",\\\"option_2\\\":\\\"\\\"}},\\\"default\\\":[\\\"option_1\\\"],\\\"dropdown_attribute_validation\\\":\\\"\\\",\\\"dropdown_attribute_validation_unique\\\":\\\"\\\"}\",\n                \"created_at\": \"2022-06-23 04:52:05\",\n                \"updated_at\": \"2022-06-23 06:45:02\",\n                \"address_id\": \"616\"\n            }\n        }\n    },\n    {\n        \"616\": {\n            \"rule\": {\n                \"1\": \"option_1\"\n            }\n        }\n    },\n    [],\n    []\n]"}],"_postman_id":"3d6932d8-e4ba-4acd-ac44-24cbbaa19107"}]}