{"info":{"_postman_id":"76746d29-3021-4514-ba56-2752d3c3d856","name":"Magento 2 Recent Sales Notification 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":"76746d29-3021-4514-ba56-2752d3c3d856","publishedId":"UUy37kXJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-10-01T04:24:20.000Z"},"item":[{"name":"Get Manage Popups Data","id":"34aa1ec4-05c5-4f57-b17a-4ec309a7b595","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\r\n  mpRecentSalesNotification(\r\n    filter: {}\r\n  ) {\r\n    items {\r\n      pop_id\r\n      name\r\n      status\r\n      store_ids\r\n      customer_group_ids\r\n      content\r\n      pop_type\r\n      device\r\n      position\r\n      page\r\n      page_type\r\n      cms_page_id\r\n      category_ids\r\n      show_product_page\r\n      number_recent_order\r\n      check_order_time\r\n      background_image\r\n      checkout_image\r\n      border_color\r\n      text_color\r\n      hover_link_color\r\n      view\r\n      click\r\n      close\r\n      parent_id\r\n    }\r\n    total_count\r\n    page_info {\r\n      page_size\r\n      current_page\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":"976fd3cd-4f04-4f91-a24d-7f07e58f91b7","name":"Get Manage Popups Data Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\r\n  mpRecentSalesNotification(\r\n    filter: {}\r\n  ) {\r\n    items {\r\n      pop_id\r\n      name\r\n      status\r\n      store_ids\r\n      customer_group_ids\r\n      content\r\n      pop_type\r\n      device\r\n      position\r\n      page\r\n      page_type\r\n      cms_page_id\r\n      category_ids\r\n      show_product_page\r\n      number_recent_order\r\n      check_order_time\r\n      background_image\r\n      checkout_image\r\n      border_color\r\n      text_color\r\n      hover_link_color\r\n      view\r\n      click\r\n      close\r\n      parent_id\r\n    }\r\n    total_count\r\n    page_info {\r\n      page_size\r\n      current_page\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, 18 Apr 2022 06:28:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Sun, 18 Apr 2021 06:28:23 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=dbvkk53i5hg172ilid5bttuvbs; expires=Mon, 18-Apr-2022 07:28:23 GMT; Max-Age=3600; path=/dangmaianh/ce243p1a/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=aa1fb5db38633f98e4af237613a11f84; expires=Thu, 15-Apr-2032 06:28:23 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"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":"1817"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"253279"},{"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        \"mpRecentSalesNotification\": {\n            \"items\": [\n                {\n                    \"pop_id\": 1,\n                    \"name\": \"Recent Sales\",\n                    \"status\": 1,\n                    \"store_ids\": \"0\",\n                    \"customer_group_ids\": \"0,1,2,3\",\n                    \"content\": \"{{product_name}} purchased by {{customer_name}} <div class=\\\"mprecentsalesnotification-time-content\\\">{{time}}</div>\",\n                    \"pop_type\": \"recent-sales\",\n                    \"device\": 0,\n                    \"position\": \"top-left\",\n                    \"page\": 0,\n                    \"page_type\": null,\n                    \"cms_page_id\": null,\n                    \"category_ids\": null,\n                    \"show_product_page\": 0,\n                    \"number_recent_order\": 15,\n                    \"check_order_time\": 5,\n                    \"background_image\": null,\n                    \"checkout_image\": null,\n                    \"border_color\": \"#f0f0f0\",\n                    \"text_color\": \"#999999\",\n                    \"hover_link_color\": \"#006bb4\",\n                    \"view\": 0,\n                    \"click\": 0,\n                    \"close\": 0,\n                    \"parent_id\": 0\n                },\n                {\n                    \"pop_id\": 2,\n                    \"name\": \"Checkout Total \",\n                    \"status\": 1,\n                    \"store_ids\": \"0\",\n                    \"customer_group_ids\": \"0,1,2,3\",\n                    \"content\": \"{{customer_count}} have checked out for the last 24 hours!\",\n                    \"pop_type\": \"checkout-info\",\n                    \"device\": 0,\n                    \"position\": \"top-right\",\n                    \"page\": 1,\n                    \"page_type\": \",checkout_cart_index,checkout_index_index\",\n                    \"cms_page_id\": \"1,2,3,4,5,6\",\n                    \"category_ids\": \"3,4,5,6\",\n                    \"show_product_page\": 1,\n                    \"number_recent_order\": null,\n                    \"check_order_time\": null,\n                    \"background_image\": null,\n                    \"checkout_image\": null,\n                    \"border_color\": \"#f0f0f0\",\n                    \"text_color\": \"#999999\",\n                    \"hover_link_color\": \"#006bb4\",\n                    \"view\": 0,\n                    \"click\": 0,\n                    \"close\": 0,\n                    \"parent_id\": 0\n                },\n                {\n                    \"pop_id\": 3,\n                    \"name\": \"Up Sell Product\",\n                    \"status\": 1,\n                    \"store_ids\": \"0\",\n                    \"customer_group_ids\": \"0,1,2,3\",\n                    \"content\": \"Customers often buy {{upsell_product_name}} along with {{product_name}}\",\n                    \"pop_type\": \"up-sell\",\n                    \"device\": 0,\n                    \"position\": \"top-right\",\n                    \"page\": 0,\n                    \"page_type\": null,\n                    \"cms_page_id\": null,\n                    \"category_ids\": null,\n                    \"show_product_page\": 1,\n                    \"number_recent_order\": null,\n                    \"check_order_time\": null,\n                    \"background_image\": null,\n                    \"checkout_image\": null,\n                    \"border_color\": \"#f0f0f0\",\n                    \"text_color\": \"#999999\",\n                    \"hover_link_color\": \"#006bb4\",\n                    \"view\": 0,\n                    \"click\": 0,\n                    \"close\": 0,\n                    \"parent_id\": 0\n                }\n            ],\n            \"total_count\": 3,\n            \"page_info\": {\n                \"page_size\": 20,\n                \"current_page\": 1\n            }\n        }\n    }\n}"}],"_postman_id":"34aa1ec4-05c5-4f57-b17a-4ec309a7b595"},{"name":"Get Popup Data by ID","id":"5c48f6ab-ff85-41f0-8623-c8e0f73e21f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\r\n  mpRecentSalesNotification(\r\n    filter: {\r\n      pop_id: {eq: \"1\"}\r\n      name: {eq: \"Recent Sales\" }\r\n      status: {eq: \"1\"},\r\n      pop_type: {eq: \"recent-sales\"}\r\n      position: {eq: \"top-left\"}\r\n    }\r\n  ) {\r\n    items {\r\n      pop_id\r\n      name\r\n      status\r\n      store_ids\r\n      customer_group_ids\r\n      content\r\n      pop_type\r\n      device\r\n      position\r\n      page\r\n      page_type\r\n      cms_page_id\r\n      category_ids\r\n      show_product_page\r\n      number_recent_order\r\n      check_order_time\r\n      background_image\r\n      checkout_image\r\n      border_color\r\n      text_color\r\n      hover_link_color\r\n      view\r\n      click\r\n      close\r\n      parent_id\r\n    }\r\n    total_count\r\n    page_info {\r\n      page_size\r\n      current_page\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":"f3b86033-82b5-4caf-8c72-2f9b21b76886","name":"Get Popup Data by ID Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\r\n  mpRecentSalesNotification(\r\n    filter: {\r\n      pop_id: {eq: \"1\"}\r\n      name: {eq: \"Recent Sales\" }\r\n      status: {eq: \"1\"},\r\n      pop_type: {eq: \"recent-sales\"}\r\n      position: {eq: \"top-left\"}\r\n    }\r\n  ) {\r\n    items {\r\n      pop_id\r\n      name\r\n      status\r\n      store_ids\r\n      customer_group_ids\r\n      content\r\n      pop_type\r\n      device\r\n      position\r\n      page\r\n      page_type\r\n      cms_page_id\r\n      category_ids\r\n      show_product_page\r\n      number_recent_order\r\n      check_order_time\r\n      background_image\r\n      checkout_image\r\n      border_color\r\n      text_color\r\n      hover_link_color\r\n      view\r\n      click\r\n      close\r\n      parent_id\r\n    }\r\n    total_count\r\n    page_info {\r\n      page_size\r\n      current_page\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, 18 Apr 2022 07:03:53 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Sun, 18 Apr 2021 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=dbvkk53i5hg172ilid5bttuvbs; expires=Mon, 18-Apr-2022 08:03:53 GMT; Max-Age=3600; path=/dangmaianh/ce243p1a/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=222906a67f46d7d1cd77a550c887036e; expires=Thu, 15-Apr-2032 07:03:53 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"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":"693"},{"key":"Content-Type","value":"application/json"},{"key":"X-Varnish","value":"215532"},{"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        \"mpRecentSalesNotification\": {\n            \"items\": [\n                {\n                    \"pop_id\": 1,\n                    \"name\": \"Recent Sales\",\n                    \"status\": 1,\n                    \"store_ids\": \"0\",\n                    \"customer_group_ids\": \"0,1,2,3\",\n                    \"content\": \"{{product_name}} purchased by {{customer_name}} <div class=\\\"mprecentsalesnotification-time-content\\\">{{time}}</div>\",\n                    \"pop_type\": \"recent-sales\",\n                    \"device\": 0,\n                    \"position\": \"top-left\",\n                    \"page\": 0,\n                    \"page_type\": null,\n                    \"cms_page_id\": null,\n                    \"category_ids\": null,\n                    \"show_product_page\": 0,\n                    \"number_recent_order\": 15,\n                    \"check_order_time\": 5,\n                    \"background_image\": null,\n                    \"checkout_image\": null,\n                    \"border_color\": \"#f0f0f0\",\n                    \"text_color\": \"#999999\",\n                    \"hover_link_color\": \"#006bb4\",\n                    \"view\": 0,\n                    \"click\": 0,\n                    \"close\": 0,\n                    \"parent_id\": 0\n                }\n            ],\n            \"total_count\": 1,\n            \"page_info\": {\n                \"page_size\": 20,\n                \"current_page\": 1\n            }\n        }\n    }\n}"}],"_postman_id":"5c48f6ab-ff85-41f0-8623-c8e0f73e21f9"}]}