{"info":{"_postman_id":"af17bb59-3aab-4d2f-9c37-2edab6526be9","name":"Magento 2 Call For Price GraphQL & Examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"af17bb59-3aab-4d2f-9c37-2edab6526be9","publishedId":"SzRxXrG9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-10T04:53:35.000Z"},"item":[{"name":"Add request by guest","id":"7f55e64e-1da1-4ae8-a718-937f13546892","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cfp(\r\n\t$product_id: Int\r\n\t$store_ids: String\r\n\t$name: String\r\n\t$email: String\r\n\t$phone: String\r\n\t$customer_note: String\r\n) {\r\n\tmpCallForPriceRequest(\r\n\t\tinput: {\r\n\t\t\tproduct_id: $product_id\r\n\t\t\tstore_ids: $store_ids\r\n\t\t\tname: $name\r\n\t\t\temail: $email\r\n\t\t\tphone: $phone\r\n\t\t\tcustomer_note: $customer_note\r\n\t\t}\r\n\t) {\r\n\t\trequest_id\r\n\t\tcreated_at\r\n\t\tsku\r\n\t\tproduct_id\r\n\t\titem_product\r\n\t\tstore_ids\r\n\t\tcustomer_group_ids\r\n\t\tstatus\r\n\t\tname\r\n\t\temail\r\n\t\tphone\r\n\t\tcustomer_note\r\n\t\tinternal_note\r\n\t\trank_request\r\n\t\tis_send\r\n\t}\r\n}\r\n","variables":"{\r\n    \"product_id\":2,\r\n    \"store_ids\":\"1\",\r\n    \"name\":\"Layla Do\",\r\n    \"email\":\"anhdtm@gmail.com\",\r\n    \"phone\":\"0386275681\",\r\n    \"customer_note\":\"Thank you!!!\"\r\n}"}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"888147f6-884f-412d-bf87-3ddfadfaaaf6","name":"Add request by guest example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cfp(\r\n\t$product_id: Int\r\n\t$store_ids: String\r\n\t$name: String\r\n\t$email: String\r\n\t$phone: String\r\n\t$customer_note: String\r\n) {\r\n\tmpCallForPriceRequest(\r\n\t\tinput: {\r\n\t\t\tproduct_id: $product_id\r\n\t\t\tstore_ids: $store_ids\r\n\t\t\tname: $name\r\n\t\t\temail: $email\r\n\t\t\tphone: $phone\r\n\t\t\tcustomer_note: $customer_note\r\n\t\t}\r\n\t) {\r\n\t\trequest_id\r\n\t\tcreated_at\r\n\t\tsku\r\n\t\tproduct_id\r\n\t\titem_product\r\n\t\tstore_ids\r\n\t\tcustomer_group_ids\r\n\t\tstatus\r\n\t\tname\r\n\t\temail\r\n\t\tphone\r\n\t\tcustomer_note\r\n\t\tinternal_note\r\n\t\trank_request\r\n\t\tis_send\r\n\t}\r\n}\r\n","variables":"{\r\n    \"product_id\":2,\r\n    \"store_ids\":\"1\",\r\n    \"name\":\"Layla Do\",\r\n    \"email\":\"anhdtm@gmail.com\",\r\n    \"phone\":\"0386275681\",\r\n    \"customer_note\":\"Thank you!!!\"\r\n}"}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 07:37:25 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 10 Jun 2020 07:37:29 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=pqdpjmn4ntbpmkcsb8pod3s93s; expires=Thu, 10-Jun-2021 08:37:29 GMT; Max-Age=3600; path=/maianh/ce242; domain=dev.mageplaza.vn; secure; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=17a5daed19790de21586c686b690cfb0; expires=Sun, 08-Jun-2031 07:37:29 GMT; Max-Age=315360000; path=/; secure; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=d3a855dd1ba03000e8518d94cca83de5; expires=Sun, 08-Jun-2031 07:37:29 GMT; Max-Age=315360000; path=/; secure; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=9ced98b597c3a0b249c30eec5de584ef; expires=Sun, 08-Jun-2031 07:37:29 GMT; Max-Age=315360000; path=/; secure; SameSite=Lax"},{"key":"X-Magento-Debug","value":"1"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"376"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCallForPriceRequest\": {\n            \"request_id\": 8,\n            \"created_at\": \"2021-06-10 07:37:29\",\n            \"sku\": \"24-MB04\",\n            \"product_id\": 2,\n            \"item_product\": \"Strive Shoulder Pack\",\n            \"store_ids\": \"1\",\n            \"customer_group_ids\": \"0\",\n            \"status\": \"_1541058017797_797\",\n            \"name\": \"Layla Do\",\n            \"email\": \"anhdtm@gmail.com\",\n            \"phone\": \"0386275681\",\n            \"customer_note\": \"Thank you!!!\",\n            \"internal_note\": null,\n            \"rank_request\": 1,\n            \"is_send\": null\n        }\n    }\n}"}],"_postman_id":"7f55e64e-1da1-4ae8-a718-937f13546892"},{"name":"Add request by customer","id":"021c43f2-9af2-4a7a-9081-ccc8e44d414c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cfp(\r\n\t$product_id: Int\r\n\t$store_ids: String\r\n\t$name: String\r\n\t$email: String\r\n\t$phone: String\r\n\t$customer_note: String\r\n) {\r\n\tmpCallForPriceCustomerRequest(\r\n\t\tinput: {\r\n\t\t\tproduct_id: $product_id\r\n\t\t\tstore_ids: $store_ids\r\n\t\t\tname: $name\r\n\t\t\temail: $email\r\n\t\t\tphone: $phone\r\n\t\t\tcustomer_note: $customer_note\r\n\t\t}\r\n\t) {\r\n\t\trequest_id\r\n\t\tcreated_at\r\n\t\tsku\r\n\t\tproduct_id\r\n\t\titem_product\r\n\t\tstore_ids\r\n\t\tcustomer_group_ids\r\n\t\tstatus\r\n\t\tname\r\n\t\temail\r\n\t\tphone\r\n\t\tcustomer_note\r\n\t\tinternal_note\r\n\t\trank_request\r\n\t\tis_send\r\n\t}\r\n}\r\n","variables":"{\r\n\t   \"product_id\":10,\r\n       \"store_ids\":\"1\",\r\n        \"name\":\"Veronica Costello\",\r\n        \"email\":\"roni_cost@example.com\",\r\n        \"phone\":\"(555)229-3326\",\r\n        \"customer_note\":\"Thank you!!!\"\r\n}"}},"url":"{{magento_base_url}}graphql","urlObject":{"host":["{{magento_base_url}}graphql"],"query":[],"variable":[]}},"response":[{"id":"bb1b6293-1e82-4dde-948d-d7efefbd255e","name":"Add request by customer example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cfp(\r\n\t$product_id: Int\r\n\t$store_ids: String\r\n\t$name: String\r\n\t$email: String\r\n\t$phone: String\r\n\t$customer_note: String\r\n) {\r\n\tmpCallForPriceCustomerRequest(\r\n\t\tinput: {\r\n\t\t\tproduct_id: $product_id\r\n\t\t\tstore_ids: $store_ids\r\n\t\t\tname: $name\r\n\t\t\temail: $email\r\n\t\t\tphone: $phone\r\n\t\t\tcustomer_note: $customer_note\r\n\t\t}\r\n\t) {\r\n\t\trequest_id\r\n\t\tcreated_at\r\n\t\tsku\r\n\t\tproduct_id\r\n\t\titem_product\r\n\t\tstore_ids\r\n\t\tcustomer_group_ids\r\n\t\tstatus\r\n\t\tname\r\n\t\temail\r\n\t\tphone\r\n\t\tcustomer_note\r\n\t\tinternal_note\r\n\t\trank_request\r\n\t\tis_send\r\n\t}\r\n}\r\n","variables":"{\r\n\t   \"product_id\":10,\r\n       \"store_ids\":\"1\",\r\n        \"name\":\"Veronica Costello\",\r\n        \"email\":\"roni_cost@example.com\",\r\n        \"phone\":\"(555)229-3326\",\r\n        \"customer_note\":\"Thank you!!!\"\r\n}"}},"url":"{{magento_base_url}}graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 07:43:31 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 10 Jun 2020 07:43:31 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=pqdpjmn4ntbpmkcsb8pod3s93s; expires=Thu, 10-Jun-2021 08:43:31 GMT; Max-Age=3600; path=/maianh/ce242; domain=dev.mageplaza.vn; secure; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=7df08efefa3ab99c4242694e7356f0f1; expires=Sun, 08-Jun-2031 07:43:31 GMT; Max-Age=315360000; path=/; secure; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=64028193f08e6511dd522513f877a234; expires=Sun, 08-Jun-2031 07:43:31 GMT; Max-Age=315360000; path=/; secure; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=8623c89a8c2a8f42346e0cc92483dfd1; expires=Sun, 08-Jun-2031 07:43:31 GMT; Max-Age=315360000; path=/; secure; SameSite=Lax"},{"key":"X-Magento-Debug","value":"1"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"401"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCallForPriceCustomerRequest\": {\n            \"request_id\": 9,\n            \"created_at\": \"2021-06-10 07:43:31\",\n            \"sku\": \"24-WB05\",\n            \"product_id\": 10,\n            \"item_product\": \"Savvy Shoulder Tote\",\n            \"store_ids\": \"1\",\n            \"customer_group_ids\": \"1\",\n            \"status\": \"_1541058017797_797\",\n            \"name\": \"Veronica Costello\",\n            \"email\": \"roni_cost@example.com\",\n            \"phone\": \"(555)229-3326\",\n            \"customer_note\": \"Thank you!!!\",\n            \"internal_note\": null,\n            \"rank_request\": 1,\n            \"is_send\": null\n        }\n    }\n}"}],"_postman_id":"021c43f2-9af2-4a7a-9081-ccc8e44d414c"},{"name":"Get config Call For Price","id":"9a5d7622-bb1f-4738-9f3b-d42a38dcfbc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCallForPriceConfig(storeId:\"1\"){\r\n    terms_conditions{\r\n      anchor\r\n      checked_by_default\r\n      terms_required\r\n      title\r\n      url\r\n    }\r\n    disable_default_function{\r\n      disable_cart_by_group\r\n      disable_checkout_by_group\r\n      disable_compare_wishlist\r\n      disable_register_customer\r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1ed06a40-255e-4c4b-b2d1-b28b35ae677e","name":"Get config Call For Price example","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCallForPriceConfig(storeId:\"1\"){\r\n    terms_conditions{\r\n      anchor\r\n      checked_by_default\r\n      terms_required\r\n      title\r\n      url\r\n    }\r\n    disable_default_function{\r\n      disable_cart_by_group\r\n      disable_checkout_by_group\r\n      disable_compare_wishlist\r\n      disable_register_customer\r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Jan 2021 03:21:48 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 21 Jan 2020 03:21:55 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=1rsiuamgdf9d2tp3a5gd4g4hcj; expires=Thu, 21-Jan-2021 04:21:54 GMT; Max-Age=3600; path=/maianh/ce240a; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=dbac182ae4bec73bc21d30b3fe10ebcb; expires=Sun, 19-Jan-2031 03:21:54 GMT; Max-Age=315360000; path=/"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"376"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"328273"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCallForPriceConfig\": {\n            \"terms_conditions\": {\n                \"anchor\": \"Terms and Conditions\",\n                \"checked_by_default\": true,\n                \"terms_required\": true,\n                \"title\": \"I agree with the %anchor\",\n                \"url\": \"https://domain.com/tos.html\"\n            },\n            \"disable_default_function\": {\n                \"disable_cart_by_group\": \"0,1,2,3\",\n                \"disable_checkout_by_group\": \"0,1,2,3\",\n                \"disable_compare_wishlist\": true,\n                \"disable_register_customer\": true\n            }\n        }\n    }\n}"}],"_postman_id":"9a5d7622-bb1f-4738-9f3b-d42a38dcfbc2"},{"name":"Get product Call For Price","id":"c2678818-a2c9-45cf-8e04-b5db6f9fbaf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query {\r\n\tproducts(filter: { sku: { eq: \"24-MB01\" } }) {\r\n\t\ttotal_count\r\n\t\titems {\r\n            mp_callforprice\r\n            mp_callforprice_rule{\r\n              action\r\n              attribute_code\r\n              button_label\r\n              conditions_serialized\r\n              created_at\r\n              customer_group_ids\r\n              enable_terms\r\n              from_date\r\n              name\r\n              priority\r\n              quote_heading\r\n              quote_description\r\n              rule_content\r\n              required_fields\r\n              rule_id\r\n              show_fields\r\n              status\r\n              store_ids\r\n              to_date\r\n              url_terms\r\n              url_redirect\r\n            }\r\n}\r\n}\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c5840cdb-3663-4157-882f-b96556c3e044","name":"Get product Call For Price example","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query {\r\n\tproducts(filter: { sku: { eq: \"24-MB01\" } }) {\r\n\t\ttotal_count\r\n\t\titems {\r\n            mp_callforprice\r\n            mp_callforprice_rule{\r\n               rule_id\r\n                name\r\n                rule_content\r\n                store_ids\r\n                customer_group_ids\r\n                action\r\n                url_redirect\r\n                quote_heading\r\n                quote_description\r\n                status\r\n                show_fields\r\n                required_fields\r\n                conditions_serialized\r\n                attribute_code\r\n                button_label\r\n                priority\r\n                to_date\r\n                created_at\r\n                rule_description\r\n                enable_terms\r\n                url_terms\r\n                from_date\r\n            }\r\n}\r\n}\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 21 Jan 2021 07:30:33 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 21 Jan 2020 07:30:33 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=5pmba6sodanvrphpgb9sv9ikr4; expires=Thu, 21-Jan-2021 08:30:33 GMT; Max-Age=3600; path=/maianh/ce240a; domain=dev.mageplaza.vn; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=e50dbd02f756c83658ee08e5e7f5399c; expires=Sun, 19-Jan-2031 07:30:33 GMT; Max-Age=315360000; path=/"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"911"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"1570"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"products\": {\n            \"total_count\": 1,\n            \"items\": [\n                {\n                    \"mp_callforprice\": \"1\",\n                    \"mp_callforprice_rule\": {\n                        \"rule_id\": 1,\n                        \"name\": \"Bag\",\n                        \"rule_content\": null,\n                        \"store_ids\": \"0\",\n                        \"customer_group_ids\": \"0,1,2,3\",\n                        \"action\": \"popup_quote_form\",\n                        \"url_redirect\": null,\n                        \"quote_heading\": \"Get a quote\",\n                        \"quote_description\": \"Jot us a note and we’ll get back to you as quickly as possible.\",\n                        \"status\": true,\n                        \"show_fields\": \"name,email,phone,customer_note\",\n                        \"required_fields\": \"name,email,phone,customer_note\",\n                        \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n                        \"attribute_code\": null,\n                        \"button_label\": \"Call For Price\",\n                        \"priority\": 100,\n                        \"to_date\": \"2030-01-01 00:00:00\",\n                        \"created_at\": \"2021-01-21 02:38:46\",\n                        \"rule_description\": null,\n                        \"enable_terms\": true,\n                        \"url_terms\": null,\n                        \"from_date\": \"2021-01-21 00:00:00\"\n                    }\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"c2678818-a2c9-45cf-8e04-b5db6f9fbaf1"},{"name":"Get customer token","id":"aba4aa1e-1541-4cc8-85d9-c6515a24b187","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"username\":\"roni_cost@example.com\",\r\n\t\"password\":\"roni_cost3@example.com\"\r\n}"},"url":"{{magento_base_url}}/rest/V1/integration/customer/token","urlObject":{"path":["rest","V1","integration","customer","token"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"7fb53f97-0bd0-4f8c-8409-4f5119c524bb","name":"Get customer token example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"username\":\"roni_cost@example.com\",\r\n\t\"password\":\"roni_cost3@example.com\"\r\n}"},"url":"{{magento_base_url}}rest/V1/integration/customer/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 09 Jun 2021 06:58:23 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=4miedjhgspma53kk1iij6kv81k; expires=Wed, 09-Jun-2021 07:58:23 GMT; Max-Age=3600; path=/maianh/ce242; domain=dev.mageplaza.vn; secure; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"persistent_shopping_cart=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/maianh/ce242; secure; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"form_key=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/maianh/ce242; domain=dev.mageplaza.vn; SameSite=Lax"},{"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":"\"736yrxv99xp95gt2xnumlxl2l4ech5v4\""}],"_postman_id":"aba4aa1e-1541-4cc8-85d9-c6515a24b187"},{"name":"Get product by SKU","id":"1200800c-6f35-4a08-8e4a-31427dd54879","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query {\r\n    products(\r\n        search: \"24-MB01\"\r\n    ){\r\n        items {\r\n            name\r\n            sku\r\n            mageplaza_callforprice_rule {\r\n                rule_id\r\n                name\r\n                rule_content\r\n                store_ids\r\n                customer_group_ids\r\n                action\r\n                url_redirect\r\n                quote_heading\r\n                quote_description\r\n                status\r\n                show_fields\r\n                required_fields\r\n                conditions_serialized\r\n                attribute_code\r\n                button_label\r\n                priority\r\n                to_date\r\n                created_at\r\n                rule_description\r\n                enable_terms\r\n                url_terms\r\n                from_date\r\n            }\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c253c4db-3a98-4ace-b932-48464e80e55e","name":"Get product by SKU example","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query {\r\n    products(\r\n        search: \"24-MB01\"\r\n    ){\r\n        items {\r\n            name\r\n            sku\r\n            mageplaza_callforprice_rule {\r\n                rule_id\r\n                name\r\n                rule_content\r\n                store_ids\r\n                customer_group_ids\r\n                action\r\n                url_redirect\r\n                quote_heading\r\n                quote_description\r\n                status\r\n                show_fields\r\n                required_fields\r\n                conditions_serialized\r\n                attribute_code\r\n                button_label\r\n                priority\r\n                to_date\r\n                created_at\r\n                rule_description\r\n                enable_terms\r\n                url_terms\r\n                from_date\r\n            }\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 27 Mar 2023 07:25:31 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Sun, 27 Mar 2022 07:25:31 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=fnk2c0e3kj49o3srf1o1k8ans1; expires=Mon, 27-Mar-2023 08:25:31 GMT; Max-Age=3600; path=/dangmaianh/ce245p1n/pub; domain=117.6.131.199; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=8a38b47e477ec5a96e58de7f61da66ca; expires=Thu, 24-Mar-2033 07:25:31 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Cache-Id","value":"5d611a920f1f6dfaeddf3391c2bf090b6295ef85ca754b5899862eae38aa347d"},{"key":"X-Magento-Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Magento-Cache-Debug","value":"MISS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"3599"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"products\": {\n            \"items\": [\n                {\n                    \"name\": \"Joust Duffle Bag\",\n                    \"sku\": \"24-MB01\",\n                    \"mageplaza_callforprice_rule\": [\n                        {\n                            \"rule_id\": 1,\n                            \"name\": \"Popup a quote form\",\n                            \"rule_content\": null,\n                            \"store_ids\": \"0,1\",\n                            \"customer_group_ids\": \"0,1,2\",\n                            \"action\": \"popup_quote_form\",\n                            \"url_redirect\": null,\n                            \"quote_heading\": \"Get a quote\",\n                            \"quote_description\": \"Jot us a note and we’ll get back to you as quickly as possible.\",\n                            \"status\": true,\n                            \"show_fields\": \"name,email,phone,company,street_address,state_province,country_id,attach_doc_img,contact_time,customer_note\",\n                            \"required_fields\": \"name,email,phone,company,street_address,state_province,country_id,attach_doc_img,contact_time,customer_note\",\n                            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\",\\\"conditions\\\":[{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\",\\\"attribute\\\":\\\"sku\\\",\\\"operator\\\":\\\"==\\\",\\\"value\\\":\\\"MH01\\\",\\\"is_value_processed\\\":false}]}\",\n                            \"attribute_code\": null,\n                            \"button_label\": \"Call For Price\",\n                            \"priority\": 10,\n                            \"to_date\": \"2023-03-31 00:00:00\",\n                            \"created_at\": \"2023-03-16 02:40:28\",\n                            \"rule_description\": null,\n                            \"enable_terms\": true,\n                            \"url_terms\": null,\n                            \"from_date\": \"2023-03-01 00:00:00\"\n                        }\n                    ]\n                },\n                {\n                    \"name\": \"Bolo Sport Watch\",\n                    \"sku\": \"24-WG01\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Erika Running Short\",\n                    \"sku\": \"WSH12\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Endeavor Daytrip Backpack\",\n                    \"sku\": \"24-WB06\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Driven Backpack\",\n                    \"sku\": \"24-WB03\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Fusion Backpack\",\n                    \"sku\": \"24-MB02\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Crown Summit Backpack\",\n                    \"sku\": \"24-MB03\",\n                    \"mageplaza_callforprice_rule\": [\n                        {\n                            \"rule_id\": 3,\n                            \"name\": \"Login to see price \",\n                            \"rule_content\": null,\n                            \"store_ids\": \"3\",\n                            \"customer_group_ids\": \"0,1\",\n                            \"action\": \"login_see_price\",\n                            \"url_redirect\": null,\n                            \"quote_heading\": null,\n                            \"quote_description\": \"Jot us a note and we’ll get back to you as quickly as possible.\",\n                            \"status\": true,\n                            \"show_fields\": \"email,customer_note\",\n                            \"required_fields\": \"email,customer_note\",\n                            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\CatalogRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n                            \"attribute_code\": null,\n                            \"button_label\": \"Call For Price\",\n                            \"priority\": 100,\n                            \"to_date\": null,\n                            \"created_at\": \"2023-03-16 04:41:52\",\n                            \"rule_description\": null,\n                            \"enable_terms\": false,\n                            \"url_terms\": null,\n                            \"from_date\": \"2023-03-16 00:00:00\"\n                        }\n                    ]\n                },\n                {\n                    \"name\": \"Luma Analog Watch\",\n                    \"sku\": \"24-WG09\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Cruise Dual Analog Watch\",\n                    \"sku\": \"24-MG05\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Pursuit Lumaflex&trade; Tone Band\",\n                    \"sku\": \"24-UG02\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Zing Jump Rope\",\n                    \"sku\": \"24-UG04\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Harmony Lumaflex&trade; Strength Band Kit \",\n                    \"sku\": \"24-UG03\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Go-Get'r Pushup Grips\",\n                    \"sku\": \"24-UG05\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Clamber Watch\",\n                    \"sku\": \"24-WG03\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Sprite Foam Roller\",\n                    \"sku\": \"24-WG088\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Dual Handle Cardio Ball\",\n                    \"sku\": \"24-UG07\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Affirm Water Bottle \",\n                    \"sku\": \"24-UG06\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Voyage Yoga Bag\",\n                    \"sku\": \"24-WB01\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Didi Sport Watch\",\n                    \"sku\": \"24-WG02\",\n                    \"mageplaza_callforprice_rule\": []\n                },\n                {\n                    \"name\": \"Dash Digital Watch\",\n                    \"sku\": \"24-MG02\",\n                    \"mageplaza_callforprice_rule\": []\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"1200800c-6f35-4a08-8e4a-31427dd54879"}]}