{"info":{"_postman_id":"6b549553-6f1b-4fee-b1e0-73c32eb43774","name":"Magento 2 Company Accounts 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":"6b549553-6f1b-4fee-b1e0-73c32eb43774","publishedId":"Tz5ncyZE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-10T08:26:39.000Z"},"item":[{"name":"Get configuration  Company Accounts","id":"09506646-f684-49f1-abc0-5da5f366814d","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":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsConfig{\r\n    general{\r\n      enabled\r\n      customer_groups_allow\r\n      auto_approve_company\r\n      customer_groups_auto_approve\r\n      sub_account_after_remove_action\r\n      auto_add_address\r\n    }\r\n    email{\r\n      admin{\r\n        enabled\r\n        sender\r\n        receiver\r\n        new_request_template\r\n      }\r\n      company_admin{\r\n        sender\r\n        status_change\r\n        status_change_template\r\n        user_update\r\n        user_update_template\r\n        new_order\r\n        new_order_template\r\n        role_update\r\n        role_update_template\r\n      }\r\n      company_user{\r\n        sender\r\n        status_change_template\r\n        user_update_template\r\n        new_order_template\r\n        role_update_template\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":"040052b6-07d6-40f1-ba0a-d824d2dde5a0","name":"Get configuration  Company Accounts Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsConfig{\r\n    general{\r\n      enabled\r\n      customer_groups_allow\r\n      auto_approve_company\r\n      customer_groups_auto_approve\r\n      sub_account_after_remove_action\r\n      auto_add_address\r\n    }\r\n    email{\r\n      admin{\r\n        enabled\r\n        sender\r\n        receiver\r\n        new_request_template\r\n      }\r\n      company_admin{\r\n        sender\r\n        status_change\r\n        status_change_template\r\n        user_update\r\n        user_update_template\r\n        new_order\r\n        new_order_template\r\n        role_update\r\n        role_update_template\r\n      }\r\n      company_user{\r\n        sender\r\n        status_change_template\r\n        user_update_template\r\n        new_order_template\r\n        role_update_template\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":"Tue, 09 Mar 2021 04:33:40 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Mon, 09 Mar 2020 04:33:40 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=mku99cpu39c7sa6odf8keklma5; expires=Tue, 09-Mar-2021 05:33:40 GMT; Max-Age=3600; path=/maianh/ce240d; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=898417dea5b1abaf8740e85a07d506b2; expires=Fri, 07-Mar-2031 04:33:40 GMT; Max-Age=315360000; path=/"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1209"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"426481"},{"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        \"mpCompanyAccountsConfig\": {\n            \"general\": {\n                \"enabled\": true,\n                \"customer_groups_allow\": \"1,4,3,2\",\n                \"auto_approve_company\": true,\n                \"customer_groups_auto_approve\": \"1,3,2\",\n                \"sub_account_after_remove_action\": 0,\n                \"auto_add_address\": 0\n            },\n            \"email\": {\n                \"admin\": {\n                    \"enabled\": true,\n                    \"sender\": \"general\",\n                    \"receiver\": \"general\",\n                    \"new_request_template\": \"mp_company_accounts_email_admin_new_request_template\"\n                },\n                \"company_admin\": {\n                    \"sender\": \"general\",\n                    \"status_change\": true,\n                    \"status_change_template\": \"mp_company_accounts_email_company_admin_status_change_template\",\n                    \"user_update\": true,\n                    \"user_update_template\": \"mp_company_accounts_email_company_admin_user_update_template\",\n                    \"new_order\": true,\n                    \"new_order_template\": \"mp_company_accounts_email_company_admin_new_order_template\",\n                    \"role_update\": true,\n                    \"role_update_template\": \"mp_company_accounts_email_company_admin_role_update_template\"\n                },\n                \"company_user\": {\n                    \"sender\": \"general\",\n                    \"status_change_template\": \"mp_company_accounts_email_company_user_status_change_template\",\n                    \"user_update_template\": \"mp_company_accounts_email_company_user_user_update_template\",\n                    \"new_order_template\": \"mp_company_accounts_email_company_user_new_order_template\",\n                    \"role_update_template\": \"mp_company_accounts_email_company_user_role_update_template\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"09506646-f684-49f1-abc0-5da5f366814d"},{"name":"Get download product","id":"5b1a2d01-151c-4201-bbfe-910dcd72390e","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":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsDownloadable{\r\n    order_increment_id\r\n    date\r\n    status\r\n    download_url\r\n    remaining_downloads\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ba28d526-b752-4eaa-bbc9-ba03cb56bf6e","name":"Get download product Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsDownloadable{\r\n    order_increment_id\r\n    date\r\n    status\r\n    download_url\r\n    remaining_downloads\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Mar 2021 06:47:59 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Mon, 09 Mar 2020 06:47:59 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=do75s83vp6ta1pk8oml0kao4g3; expires=Tue, 09-Mar-2021 07:47:59 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=c07b8e92058f8f942e34ebead4c9a3f4; expires=Fri, 07-Mar-2031 06:47:59 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":"2020"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"133281"},{"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        \"mpCompanyAccountsDownloadable\": [\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40MzA3NjAwMCAxNjE1MjcyNDc1NDMzMDQ5/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40NDA5ODAwMCAxNjE1MjcyNDc1NTMzMTUw/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40NTY3MTYwMCAxNjE1MjcyNDc1NjMzMjQ4/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40NjU2MjYwMCAxNjE1MjcyNDc1NzMzMzQ3/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40NzQzMjYwMCAxNjE1MjcyNDc1ODMzNDUx/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40ODM0MTYwMCAxNjE1MjcyNDc1OTMzNTUy/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40ODM4NjcwMCAxNjE1MjcyNDc1OTMzNTUy/\",\n                \"remaining_downloads\": \"Unlimited\"\n            },\n            {\n                \"order_increment_id\": \"000000086\",\n                \"date\": \"2021-03-09 06:47:55\",\n                \"status\": \"pending\",\n                \"download_url\": \"http://dev.mageplaza.vn/ce240/downloadable/download/link/id/MC40ODQyNDUwMCAxNjE1MjcyNDc1OTMzNTUy/\",\n                \"remaining_downloads\": \"Unlimited\"\n            }\n        ]\n    }\n}"}],"_postman_id":"5b1a2d01-151c-4201-bbfe-910dcd72390e"},{"name":"Get Company Information","id":"d98f5ad7-803a-4ddf-8273-91bfe3805de2","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":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccounts{\r\n    name\r\n    status\r\n    legal_name\r\n    email\r\n    vat_id\r\n    reseller_id\r\n    company_id\r\n    customer_group_id\r\n    sales_representative_id\r\n    street\r\n    city\r\n    country_id\r\n    postcode\r\n    region\r\n    region_id\r\n    telephone\r\n    administrator_id\r\n    created_at\r\n    updated_at\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c14dd832-f25a-46d9-b967-35281cdafe1a","name":"Get Company Information Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccounts{\r\n    name\r\n    status\r\n    legal_name\r\n    email\r\n    vat_id\r\n    reseller_id\r\n    company_id\r\n    customer_group_id\r\n    sales_representative_id\r\n    street\r\n    city\r\n    country_id\r\n    postcode\r\n    region\r\n    region_id\r\n    telephone\r\n    administrator_id\r\n    created_at\r\n    updated_at\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Mar 2021 09:19:56 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Mon, 09 Mar 2020 09:19:56 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=do75s83vp6ta1pk8oml0kao4g3; expires=Tue, 09-Mar-2021 10:19:56 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=8d7193ffc05744ce31998549f3ee8cd3; expires=Fri, 07-Mar-2031 09:19:56 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":"430"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"597642"},{"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        \"mpCompanyAccounts\": {\n            \"name\": \"Mageplaza\",\n            \"status\": 1,\n            \"legal_name\": null,\n            \"email\": \"roni_cost@example.com\",\n            \"vat_id\": null,\n            \"reseller_id\": null,\n            \"company_id\": 1,\n            \"customer_group_id\": 1,\n            \"sales_representative_id\": 0,\n            \"street\": \"Nguyen Trai\",\n            \"city\": \"Ha Noi\",\n            \"country_id\": \"VN\",\n            \"postcode\": \"1000\",\n            \"region\": \"123\",\n            \"region_id\": 0,\n            \"telephone\": \"1285456754\",\n            \"administrator_id\": 1,\n            \"created_at\": \"2021-03-09 06:43:54\",\n            \"updated_at\": \"2021-03-09 06:43:54\"\n        }\n    }\n}"}],"_postman_id":"d98f5ad7-803a-4ddf-8273-91bfe3805de2"},{"name":"Get order Company","id":"36c81cce-2e4f-457b-89e0-27a70d9384c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsOrders{\r\n    id\r\n    status\r\n    grand_total\r\n    order_number\r\n    placed_by\r\n    ship_to\r\n    date\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e7af9d09-3d8a-4ad8-92f1-f3610235fbd9","name":"Get order Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsOrders{\r\n    id\r\n    status\r\n    grand_total\r\n    order_number\r\n    placed_by\r\n    ship_to\r\n    date\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Mar 2021 09:27:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Mon, 09 Mar 2020 09:27:20 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=do75s83vp6ta1pk8oml0kao4g3; expires=Tue, 09-Mar-2021 10:27:19 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=fbb976a053f90bc3e416688785f01bdc; expires=Fri, 07-Mar-2031 09:27:19 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":"878"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"203027"},{"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        \"mpCompanyAccountsOrders\": [\n            {\n                \"id\": 81,\n                \"status\": \"pending\",\n                \"grand_total\": 75.02,\n                \"order_number\": \"000000083\",\n                \"placed_by\": \"roni_cost@example.com\",\n                \"ship_to\": \"Veronica Costello\",\n                \"date\": \"2021-03-09 06:44:44\"\n            },\n            {\n                \"id\": 82,\n                \"status\": \"pending\",\n                \"grand_total\": 110.63,\n                \"order_number\": \"000000084\",\n                \"placed_by\": \"roni_cost@example.com\",\n                \"ship_to\": \"Veronica Costello\",\n                \"date\": \"2021-03-09 06:45:21\"\n            },\n            {\n                \"id\": 83,\n                \"status\": \"complete\",\n                \"grand_total\": 74.8,\n                \"order_number\": \"000000085\",\n                \"placed_by\": \"roni_cost@example.com\",\n                \"ship_to\": \"Veronica Costello\",\n                \"date\": \"2021-03-09 06:46:12\"\n            },\n            {\n                \"id\": 84,\n                \"status\": \"pending\",\n                \"grand_total\": 76.53,\n                \"order_number\": \"000000086\",\n                \"placed_by\": \"roni_cost@example.com\",\n                \"ship_to\": \"\",\n                \"date\": \"2021-03-09 06:47:55\"\n            },\n            {\n                \"id\": 85,\n                \"status\": \"pending\",\n                \"grand_total\": 157.59,\n                \"order_number\": \"000000087\",\n                \"placed_by\": \"roni_cost@example.com\",\n                \"ship_to\": \"Veronica Costello\",\n                \"date\": \"2021-03-09 07:28:54\"\n            }\n        ]\n    }\n}"}],"_postman_id":"36c81cce-2e4f-457b-89e0-27a70d9384c7"},{"name":"Register Company","id":"e06c5caa-3776-497d-ba3b-e0196ba89eeb","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":"graphql","graphql":{"query":"mutation {\r\n    registerMpCompany (\r\n        input: {\r\n            name: \"Reffe\"\r\n            email: \"refehifhghfume@mailinfator.net\"\r\n            street: \"Nguyen Trai\"\r\n            city: \"Ha Noi\"\r\n            region_id: 571\r\n            country_id: \"AU\"\r\n            postcode: \"12345634\"\r\n            telephone: \"34567886\"\r\n        }\r\n    )\r\n    {\r\n        company_id\r\n        customer_group_id\r\n        status\r\n        administrator_id\r\n        email\r\n        name\r\n        region\r\n        region_id\r\n        sales_representative_id\r\n        country_id\r\n        vat_id\r\n        legal_name\r\n        reseller_id\r\n        street\r\n        city\r\n        postcode\r\n        telephone\r\n        created_at\r\n        updated_at\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"18b3bf08-040f-4101-bf4a-3ed7077d32d9","name":"Register Company 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":"graphql","graphql":{"query":"mutation {\r\n    registerMpCompany (\r\n        input: {\r\n            name: \"Reffe\"\r\n            email: \"refehifhghfume@mailinfator.net\"\r\n            street: \"Nguyen Trai\"\r\n            city: \"Ha Noi\"\r\n            region_id: 571\r\n            country_id: \"AU\"\r\n            postcode: \"12345634\"\r\n            telephone: \"34567886\"\r\n        }\r\n    )\r\n    {\r\n        company_id\r\n        customer_group_id\r\n        status\r\n        administrator_id\r\n        email\r\n        name\r\n        region\r\n        region_id\r\n        sales_representative_id\r\n        country_id\r\n        vat_id\r\n        legal_name\r\n        reseller_id\r\n        street\r\n        city\r\n        postcode\r\n        telephone\r\n        created_at\r\n        updated_at\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 07:18:29 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 07:18:32 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=tl77eq5r8ngeg92ochqj0u39i5; expires=Wed, 10-Mar-2021 08:18:29 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=a2c981a880b9bd5592164b6d9b53039a; expires=Sat, 08-Mar-2031 07:18:29 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":"449"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"692411"},{"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        \"registerMpCompany\": {\n            \"company_id\": 14,\n            \"customer_group_id\": 1,\n            \"status\": 1,\n            \"administrator_id\": 46,\n            \"email\": \"refehifhghfume@mailinfator.net\",\n            \"name\": \"Reffe\",\n            \"region\": \"Victoria\",\n            \"region_id\": 571,\n            \"sales_representative_id\": null,\n            \"country_id\": \"AU\",\n            \"vat_id\": null,\n            \"legal_name\": null,\n            \"reseller_id\": null,\n            \"street\": \"Nguyen Trai\",\n            \"city\": \"Ha Noi\",\n            \"postcode\": \"12345634\",\n            \"telephone\": \"34567886\",\n            \"created_at\": \"2021-03-10 07:18:29\",\n            \"updated_at\": \"2021-03-10 07:18:29\"\n        }\n    }\n}"}],"_postman_id":"e06c5caa-3776-497d-ba3b-e0196ba89eeb"},{"name":"Save Company","id":"0a6a25c0-d6c9-4c9a-9bdc-0fe9fba80b9a","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":"graphql","graphql":{"query":"mutation {\r\n    saveMpCompany (\r\n        input: {\r\n            name: \"Sopedu\"\r\n            email: \"welibo@mailinator.net\"\r\n            street: \"Nguyen Trai\"\r\n            city: \"Ha Noi\"\r\n            region_id: 571\r\n            country_id: \"AU\"\r\n            postcode: \"postcode\"\r\n            telephone: \"4324234\"\r\n        }\r\n    )\r\n    {\r\n        company_id\r\n        customer_group_id\r\n        status\r\n        administrator_id\r\n        email\r\n        name\r\n        region\r\n        region_id\r\n        sales_representative_id\r\n        country_id\r\n        vat_id\r\n        legal_name\r\n        reseller_id\r\n        street\r\n        city\r\n        postcode\r\n        telephone\r\n        created_at\r\n        updated_at\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"b6c1424e-680f-4485-993e-dc7ba97429b9","name":"Save Company 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":"graphql","graphql":{"query":"mutation {\r\n    saveMpCompany (\r\n        input: {\r\n            name: \"Sopedu\"\r\n            email: \"welibo@mailinator.net\"\r\n            street: \"Nguyen Trai\"\r\n            city: \"Ha Noi\"\r\n            region_id: 571\r\n            country_id: \"AU\"\r\n            postcode: \"postcode\"\r\n            telephone: \"4324234\"\r\n        }\r\n    )\r\n    {\r\n        company_id\r\n        customer_group_id\r\n        status\r\n        administrator_id\r\n        email\r\n        name\r\n        region\r\n        region_id\r\n        sales_representative_id\r\n        country_id\r\n        vat_id\r\n        legal_name\r\n        reseller_id\r\n        street\r\n        city\r\n        postcode\r\n        telephone\r\n        created_at\r\n        updated_at\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 07:03:53 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 07:03:53 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=tl77eq5r8ngeg92ochqj0u39i5; expires=Wed, 10-Mar-2021 08:03:53 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=a573e26cbed833112d9a5ec1f80590ea; expires=Sat, 08-Mar-2031 07:03:53 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":"436"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"334132"},{"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        \"saveMpCompany\": {\n            \"company_id\": 12,\n            \"customer_group_id\": 1,\n            \"status\": 1,\n            \"administrator_id\": 42,\n            \"email\": \"welibo@mailinator.net\",\n            \"name\": \"Sopedu\",\n            \"region\": \"Victoria\",\n            \"region_id\": 571,\n            \"sales_representative_id\": null,\n            \"country_id\": \"AU\",\n            \"vat_id\": null,\n            \"legal_name\": null,\n            \"reseller_id\": null,\n            \"street\": \"Nguyen Trai\",\n            \"city\": \"Ha Noi\",\n            \"postcode\": \"postcode\",\n            \"telephone\": \"4324234\",\n            \"created_at\": \"2021-03-10 07:02:49\",\n            \"updated_at\": \"2021-03-10 07:03:53\"\n        }\n    }\n}"}],"_postman_id":"0a6a25c0-d6c9-4c9a-9bdc-0fe9fba80b9a"},{"name":"Get user roles Company","id":"eada6430-78ed-4aba-baa3-dda11d3b444e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsUserRoles{\r\n    name\r\n    company_id\r\n    role_id\r\n    order_amount\r\n    order_quantity\r\n    allow_all\r\n    user_rules{\r\n      role_id\r\n      rule_id\r\n      permission\r\n      resource_id\r\n      created_at\r\n      updated_at\r\n    }\r\n    created_at\r\n    updated_at\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"49721199-fde0-417b-9b0c-c4ee79cb4571","name":"Get user roles Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsUserRoles{\r\n    name\r\n    company_id\r\n    role_id\r\n    order_amount\r\n    order_quantity\r\n    allow_all\r\n    user_rules{\r\n      role_id\r\n      rule_id\r\n      permission\r\n      resource_id\r\n      created_at\r\n      updated_at\r\n    }\r\n    created_at\r\n    updated_at\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Mar 2021 09:37:32 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Mon, 09 Mar 2020 09:37: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=do75s83vp6ta1pk8oml0kao4g3; expires=Tue, 09-Mar-2021 10:37:33 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=5e4901e908c54ec200c620b083246135; expires=Fri, 07-Mar-2031 09:37: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":"4370"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"432801"},{"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        \"mpCompanyAccountsUserRoles\": [\n            {\n                \"name\": \"Order\",\n                \"company_id\": 1,\n                \"role_id\": 1,\n                \"order_amount\": 0,\n                \"order_quantity\": 0,\n                \"allow_all\": true,\n                \"user_rules\": [],\n                \"created_at\": \"2021-03-09 06:53:55\",\n                \"updated_at\": \"2021-03-09 06:53:55\"\n            },\n            {\n                \"name\": \"Product\",\n                \"company_id\": 1,\n                \"role_id\": 2,\n                \"order_amount\": 0,\n                \"order_quantity\": 0,\n                \"allow_all\": false,\n                \"user_rules\": [\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 1,\n                        \"permission\": \"allow\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::info\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 2,\n                        \"permission\": \"allow\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::info_view\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 3,\n                        \"permission\": \"allow\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::info_edit\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 4,\n                        \"permission\": \"allow\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::info_receive_notice\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 5,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::manage_user\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 6,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::user_view\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 7,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::user_add\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 8,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::user_edit\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 9,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::user_delete\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 10,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::user_receive_notice\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 11,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::company_orders\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 12,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::place_orders\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 13,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::view_orders\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 14,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::receive_notice_new_order\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 15,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::print_order\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 16,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::track_shipment\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 17,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::re_order\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 18,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::roles\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 19,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::role_view\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 20,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::role_add\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 21,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::role_edit\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 22,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::role_delete\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    },\n                    {\n                        \"role_id\": 2,\n                        \"rule_id\": 23,\n                        \"permission\": \"deny\",\n                        \"resource_id\": \"Mageplaza_CompanyAccounts::role_receive_notice\",\n                        \"created_at\": \"2021-03-09 08:05:46\",\n                        \"updated_at\": \"2021-03-09 08:05:46\"\n                    }\n                ],\n                \"created_at\": \"2021-03-09 08:05:46\",\n                \"updated_at\": \"2021-03-09 08:05:46\"\n            }\n        ]\n    }\n}"}],"_postman_id":"eada6430-78ed-4aba-baa3-dda11d3b444e"},{"name":"Create user roles Company","id":"728b0f35-0cce-410f-9fba-e5f631004e84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    createMpCompanyUserRole (\r\n        input: {\r\n            name: \"Testrole\"\r\n            allow_all: true\r\n            order_quantity: 4\r\n            order_amount: 4\r\n            user_rules: [\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_view\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_edit\"\r\n                    permission: \"deny\"\r\n                }\r\n            ]\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        role_id\r\n        name\r\n        company_id\r\n        allow_all\r\n        order_quantity\r\n        order_amount\r\n        created_at\r\n        updated_at\r\n        user_rules {\r\n            rule_id\r\n            role_id\r\n            resource_id\r\n            permission\r\n            created_at\r\n            updated_at\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ebea6fe2-da58-4a48-9c9d-e4caabb8c55a","name":"Create user roles Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    createMpCompanyUserRole (\r\n        input: {\r\n            name: \"Testrole\"\r\n            allow_all: true\r\n            order_quantity: 4\r\n            order_amount: 4\r\n            user_rules: [\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_view\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_edit\"\r\n                    permission: \"deny\"\r\n                }\r\n            ]\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        role_id\r\n        name\r\n        company_id\r\n        allow_all\r\n        order_quantity\r\n        order_amount\r\n        created_at\r\n        updated_at\r\n        user_rules {\r\n            rule_id\r\n            role_id\r\n            resource_id\r\n            permission\r\n            created_at\r\n            updated_at\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 03:45:18 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 03:45:19 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b2k40e89kt3541rb62ermocf0b; expires=Wed, 10-Mar-2021 04:45:19 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=99fc0f5ff091ae6d25d4cee7dcd1e7aa; expires=Sat, 08-Mar-2031 03:45:19 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":"222"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"721964"},{"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        \"createMpCompanyUserRole\": {\n            \"role_id\": 6,\n            \"name\": \"Testrole\",\n            \"company_id\": 6,\n            \"allow_all\": true,\n            \"order_quantity\": 4,\n            \"order_amount\": 4,\n            \"created_at\": \"2021-03-10 03:45:19\",\n            \"updated_at\": \"2021-03-10 03:45:19\",\n            \"user_rules\": []\n        }\n    }\n}"}],"_postman_id":"728b0f35-0cce-410f-9fba-e5f631004e84"},{"name":"Edit user roles Company","id":"071c10d6-2b70-4c9c-973b-aa7add95c63a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    saveMpCompanyUserRole (\r\n        role_id: 6\r\n        input: {\r\n            name: \"Testrole\"\r\n            allow_all: false\r\n            order_quantity: 4\r\n            order_amount: 4\r\n            user_rules: [\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_view\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_edit\"\r\n                    permission: \"deny\"\r\n                }\r\n            ]\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        role_id\r\n        name\r\n        company_id\r\n        allow_all\r\n        order_quantity\r\n        order_amount\r\n        created_at\r\n        updated_at\r\n        user_rules {\r\n            rule_id\r\n            role_id\r\n            resource_id\r\n            permission\r\n            created_at\r\n            updated_at\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e7396483-122d-4585-b73f-84a5984d3cf1","name":"Edit user roles Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    saveMpCompanyUserRole (\r\n        role_id: 6\r\n        input: {\r\n            name: \"Testrole\"\r\n            allow_all: false\r\n            order_quantity: 4\r\n            order_amount: 4\r\n            user_rules: [\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_view\"\r\n                    permission: \"allow\"\r\n                }\r\n                {\r\n                    resource_id: \"Mageplaza_CompanyAccounts::info_edit\"\r\n                    permission: \"deny\"\r\n                }\r\n            ]\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        role_id\r\n        name\r\n        company_id\r\n        allow_all\r\n        order_quantity\r\n        order_amount\r\n        created_at\r\n        updated_at\r\n        user_rules {\r\n            rule_id\r\n            role_id\r\n            resource_id\r\n            permission\r\n            created_at\r\n            updated_at\r\n        }\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 03:47:08 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 03:47:09 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b2k40e89kt3541rb62ermocf0b; expires=Wed, 10-Mar-2021 04:47:09 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=49924a7520838bff8c74a8ffde932a31; expires=Sat, 08-Mar-2031 03:47:09 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":"4204"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"396851"},{"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        \"saveMpCompanyUserRole\": {\n            \"role_id\": 6,\n            \"name\": \"Testrole\",\n            \"company_id\": 6,\n            \"allow_all\": false,\n            \"order_quantity\": 4,\n            \"order_amount\": 4,\n            \"created_at\": \"2021-03-10 03:45:19\",\n            \"updated_at\": \"2021-03-10 03:47:09\",\n            \"user_rules\": [\n                {\n                    \"rule_id\": 93,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::info\",\n                    \"permission\": \"allow\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 94,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::info_view\",\n                    \"permission\": \"allow\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 95,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::info_edit\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 96,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::info_receive_notice\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 97,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::manage_user\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 98,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::user_view\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 99,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::user_add\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 100,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::user_edit\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 101,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::user_delete\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 102,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::user_receive_notice\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 103,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::company_orders\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 104,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::place_orders\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 105,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::view_orders\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 106,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::receive_notice_new_order\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 107,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::print_order\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 108,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::track_shipment\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 109,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::re_order\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 110,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::roles\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 111,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::role_view\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 112,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::role_add\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 113,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::role_edit\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 114,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::role_delete\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                },\n                {\n                    \"rule_id\": 115,\n                    \"role_id\": 6,\n                    \"resource_id\": \"Mageplaza_CompanyAccounts::role_receive_notice\",\n                    \"permission\": \"deny\",\n                    \"created_at\": \"2021-03-10 03:47:09\",\n                    \"updated_at\": \"2021-03-10 03:47:09\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"071c10d6-2b70-4c9c-973b-aa7add95c63a"},{"name":"Delete user roles Company","id":"9fbd4442-0885-44c0-bac5-473d4301ddd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    deleteMpCompanyUserRole (\r\n        role_id: 3\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"fd0b1fe6-cc33-4152-b15b-2070b2595c4e","name":"Delete user roles Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    deleteMpCompanyUserRole (\r\n        role_id: 3\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 03:47:59 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 03:47:59 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b2k40e89kt3541rb62ermocf0b; expires=Wed, 10-Mar-2021 04:47:59 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=986532a7371a0bbbf4eec7d19f24ebf8; expires=Sat, 08-Mar-2031 03:47:59 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":"41"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"820906"},{"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        \"deleteMpCompanyUserRole\": true\n    }\n}"}],"_postman_id":"9fbd4442-0885-44c0-bac5-473d4301ddd3"},{"name":"Get user Company","id":"e34e4a33-8fbe-40dd-9e88-38c5d1e1bd0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsUsers{\r\n    entity_id\r\n    email\r\n    firstname\r\n    lastname\r\n    mpca_role_id\r\n    mpca_is_active\r\n    mpca_job_title\r\n    mpca_telephone\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"57879532-484a-44d3-91af-3eeb48fcf898","name":"Get user Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCompanyAccountsUsers{\r\n    entity_id\r\n    email\r\n    firstname\r\n    lastname\r\n    mpca_role_id\r\n    mpca_is_active\r\n    mpca_job_title\r\n    mpca_telephone\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Mar 2021 09:39:24 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Mon, 09 Mar 2020 09:39:24 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=do75s83vp6ta1pk8oml0kao4g3; expires=Tue, 09-Mar-2021 10:39:24 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=333e57dd9a93b56ca11bd9d4c07cf395; expires=Fri, 07-Mar-2031 09:39:24 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":"391"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"463855"},{"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        \"mpCompanyAccountsUsers\": [\n            {\n                \"entity_id\": 1,\n                \"email\": \"roni_cost@example.com\",\n                \"firstname\": \"Veronica\",\n                \"lastname\": \"Costello\",\n                \"mpca_role_id\": null,\n                \"mpca_is_active\": true,\n                \"mpca_job_title\": null,\n                \"mpca_telephone\": null\n            },\n            {\n                \"entity_id\": 27,\n                \"email\": \"anhdtm@mageplaza.com\",\n                \"firstname\": \"Layla\",\n                \"lastname\": \"Do\",\n                \"mpca_role_id\": 0,\n                \"mpca_is_active\": true,\n                \"mpca_job_title\": null,\n                \"mpca_telephone\": \"1285456754\"\n            }\n        ]\n    }\n}"}],"_postman_id":"e34e4a33-8fbe-40dd-9e88-38c5d1e1bd0d"},{"name":"Create user Company","id":"cbe40af4-0f4e-4c77-bf69-797ac01bd0ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    createMpCompanyUser (\r\n        input: {\r\n            firstname: \"Test\"\r\n            lastname: \"test\"\r\n            email: \"test231@gmail.com\"\r\n            mpca_is_active: true\r\n            mpca_role_id: 1\r\n            mpca_job_title: \"346547567\"\r\n            mpca_telephone: \"89568455\"\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        entity_id\r\n        firstname\r\n        lastname\r\n        email\r\n        mpca_is_active\r\n        mpca_role_id\r\n        mpca_job_title\r\n        mpca_telephone\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ba322896-99c0-4dc5-89ac-6d4997874b48","name":"Create user Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    createMpCompanyUser (\r\n        input: {\r\n            firstname: \"Test\"\r\n            lastname: \"test\"\r\n            email: \"test231@gmail.com\"\r\n            mpca_is_active: true\r\n            mpca_role_id: 1\r\n            mpca_job_title: \"346547567\"\r\n            mpca_telephone: \"89568455\"\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        entity_id\r\n        firstname\r\n        lastname\r\n        email\r\n        mpca_is_active\r\n        mpca_role_id\r\n        mpca_job_title\r\n        mpca_telephone\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 03:49:29 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 03:49:34 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b2k40e89kt3541rb62ermocf0b; expires=Wed, 10-Mar-2021 04:49:30 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=7da37cb43a58aa54d017d89724250324; expires=Sat, 08-Mar-2031 03:49:30 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":"210"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"820915"},{"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        \"createMpCompanyUser\": {\n            \"entity_id\": 36,\n            \"firstname\": \"Test\",\n            \"lastname\": \"test\",\n            \"email\": \"test231@gmail.com\",\n            \"mpca_is_active\": true,\n            \"mpca_role_id\": 1,\n            \"mpca_job_title\": \"346547567\",\n            \"mpca_telephone\": \"89568455\"\n        }\n    }\n}"}],"_postman_id":"cbe40af4-0f4e-4c77-bf69-797ac01bd0ed"},{"name":"Edit user Company","id":"d2496655-6820-4556-94bf-de2672857fa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    saveMpCompanyUser (\r\n        entity_id: 36\r\n        input: {\r\n            firstname: \"Test\"\r\n            lastname: \"test1\"\r\n            email: \"test@gmail.com\"\r\n            mpca_is_active: true\r\n            mpca_role_id: 1\r\n            mpca_job_title: \"123445678\"\r\n            mpca_telephone: \"12345678\"\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        entity_id\r\n        firstname\r\n        lastname\r\n        email\r\n        mpca_is_active\r\n        mpca_role_id\r\n        mpca_job_title\r\n        mpca_telephone\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"0612a2ce-40b0-4669-88c4-c931ba04796f","name":"Edit user Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    saveMpCompanyUser (\r\n        entity_id: 36\r\n        input: {\r\n            firstname: \"Test\"\r\n            lastname: \"test1\"\r\n            email: \"test@gmail.com\"\r\n            mpca_is_active: true\r\n            mpca_role_id: 1\r\n            mpca_job_title: \"123445678\"\r\n            mpca_telephone: \"12345678\"\r\n        }\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n    {\r\n        entity_id\r\n        firstname\r\n        lastname\r\n        email\r\n        mpca_is_active\r\n        mpca_role_id\r\n        mpca_job_title\r\n        mpca_telephone\r\n    }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 03:51:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 03:51:24 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b2k40e89kt3541rb62ermocf0b; expires=Wed, 10-Mar-2021 04:51:19 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=35b3db7743d557b52910c22deacda44e; expires=Sat, 08-Mar-2031 03:51:19 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":"206"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"266806"},{"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        \"saveMpCompanyUser\": {\n            \"entity_id\": 36,\n            \"firstname\": \"Test\",\n            \"lastname\": \"test1\",\n            \"email\": \"test@gmail.com\",\n            \"mpca_is_active\": true,\n            \"mpca_role_id\": 1,\n            \"mpca_job_title\": \"123445678\",\n            \"mpca_telephone\": \"12345678\"\n        }\n    }\n}"}],"_postman_id":"d2496655-6820-4556-94bf-de2672857fa4"},{"name":"Delete user Company","id":"97f8567d-5ad1-4aa1-85e0-48130c2ab733","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    deleteMpCompanyUser (\r\n        entity_id: 36\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"79102c9d-bb68-4359-bd2b-ebf158174dbb","name":"Delete user Company Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{customer_access_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\r\n    deleteMpCompanyUser (\r\n        entity_id: 36\r\n        password: \"roni_cost3@example.com\"\r\n    )\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 03:56:36 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 03:56:37 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b2k40e89kt3541rb62ermocf0b; expires=Wed, 10-Mar-2021 04:56:37 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=c35545043ef0ad60b2876f6412c52f8e; expires=Sat, 08-Mar-2031 03:56:37 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":"37"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"722243"},{"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        \"deleteMpCompanyUser\": true\n    }\n}"}],"_postman_id":"97f8567d-5ad1-4aa1-85e0-48130c2ab733"},{"name":"Confim create user company","id":"3b8a65ab-511b-45dd-99e3-2df4b09fb947","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":"graphql","graphql":{"query":"mutation {\r\n    confirmMpCompanyCreateUser (\r\n        token: \"WGWmwsu2qYyiziXNDvVLXsttKYFWCF1g\"\r\n    )\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"96dda1d3-cd0f-47b8-9004-5ae212361e15","name":"Confim create user company 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":"graphql","graphql":{"query":"mutation {\r\n    confirmMpCompanyCreateUser (\r\n        token: \"WGWmwsu2qYyiziXNDvVLXsttKYFWCF1g\"\r\n    )\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 09:46:22 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Tue, 10 Mar 2020 09:46:22 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=fv002vv0vggot0asq8ld57l2hu; expires=Wed, 10-Mar-2021 10:46:22 GMT; Max-Age=3600; path=/maianh/ce240a; domain=192.168.1.200; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=7edf43f9bc600faf6c4da6a74b1cc60d; expires=Sat, 08-Mar-2031 09:46:22 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":"202"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"853910"},{"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        \"confirmMpCompanyCreateUser\": true\n    }\n}"}],"_postman_id":"3b8a65ab-511b-45dd-99e3-2df4b09fb947"}]}