{"info":{"_postman_id":"1abb26cf-13fb-423f-b566-a2b1a6c9287e","name":"Magento 2 Milestone GraphQL","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"1abb26cf-13fb-423f-b566-a2b1a6c9287e","publishedId":"TVmTaZia","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-12-09T08:57:44.000Z"},"item":[{"name":"Get Customer Info ( have customer group )","id":"f9d19ba6-4fcc-4b0a-a226-19ec0c18f76c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\r\n\tcustomer {\r\n\t\tfirstname\r\n\t\temail\r\n\t\tmp_milestone {\r\n\t\t\tcustomer_group\r\n\t\t}\r\n\t\taddresses {\r\n\t\t\tid\r\n\t\t\tcity\r\n\t\t}\r\n\t\tcreated_at\r\n\t\tdate_of_birth\r\n\t\tdefault_billing\r\n\t\tdefault_shipping\r\n\t\tgender\r\n\t\tis_subscribed\r\n\t\tlastname\r\n\t\tmiddlename\r\n\t\tprefix\r\n\t\tsuffix\r\n\t\ttaxvat\r\n\t\twishlist {\r\n\t\t\tid\r\n\t\t}\r\n\t}\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql","description":"<p>When enable Mageplaza Milestone GraphQL, you can get customer group by customer query.</p>\n","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c1f16a14-bc39-41af-9bf2-d4918d9d7882","name":"Get Customer Info ( have customer group ) Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\r\n\tcustomer {\r\n\t\tfirstname\r\n\t\temail\r\n\t\tmp_milestone {\r\n\t\t\tcustomer_group\r\n\t\t}\r\n\t\taddresses {\r\n\t\t\tid\r\n\t\t\tcity\r\n\t\t}\r\n\t\tcreated_at\r\n\t\tdate_of_birth\r\n\t\tdefault_billing\r\n\t\tdefault_shipping\r\n\t\tgender\r\n\t\tis_subscribed\r\n\t\tlastname\r\n\t\tmiddlename\r\n\t\tprefix\r\n\t\tsuffix\r\n\t\ttaxvat\r\n\t\twishlist {\r\n\t\t\tid\r\n\t\t}\r\n\t}\r\n}\r\n","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Dec 2020 08:30:36 GMT"},{"key":"Server","value":"Apache/2.4.18 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Dec 2019 08:30:39 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=2i2br3np7v1njqo2ibkk8b67u3; expires=Thu, 10-Dec-2020 09:30:39 GMT; Max-Age=3600; path=/quynh/ce236a; domain=192.168.1.100; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=8f5fd4ee29c4e57ee312be7b56f7ddb8; expires=Sun, 08-Dec-2030 08:30:39 GMT; Max-Age=315360000; path=/"},{"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":"407"},{"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        \"customer\": {\n            \"firstname\": \"Veronica\",\n            \"email\": \"roni_cost@example.com\",\n            \"mp_milestone\": {\n                \"customer_group\": \"General\"\n            },\n            \"addresses\": [\n                {\n                    \"id\": 1,\n                    \"city\": \"Calder\"\n                }\n            ],\n            \"created_at\": \"2020-11-19 02:34:55\",\n            \"date_of_birth\": \"1973-12-15\",\n            \"default_billing\": \"1\",\n            \"default_shipping\": \"1\",\n            \"gender\": 2,\n            \"is_subscribed\": false,\n            \"lastname\": \"Costello\",\n            \"middlename\": null,\n            \"prefix\": null,\n            \"suffix\": null,\n            \"taxvat\": null,\n            \"wishlist\": {\n                \"id\": \"1\"\n            }\n        }\n    }\n}"}],"_postman_id":"f9d19ba6-4fcc-4b0a-a226-19ec0c18f76c"}]}