{"info":{"_postman_id":"2caf79a5-afb1-4420-b4bf-95116fc0f80b","name":"Magento 2 Who Bought This Item Also Bought 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":"2caf79a5-afb1-4420-b4bf-95116fc0f80b","publishedId":"SzRxXrBo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-10T04:40:25.000Z"},"item":[{"name":"Get List of \"Also Bought Products\"","id":"4bc511ea-3940-48eb-92fe-3a612543d792","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpalsobought(\r\n    filter:{category_id:{eq:\"12\"}}\r\n    pageSize:5\r\n    currentPage:1\r\n  ) {\r\n    total_count\r\n    page_info {\r\n      current_page\r\n      page_size\r\n      total_pages\r\n    }\r\n    sort_fields {\r\n      default\r\n    }\r\n    items {\r\n      id\r\n      sku\r\n      image {\r\n        label\r\n        url\r\n      }\r\n      activity\r\n      allow_amount_range\r\n      allow_credit_range\r\n      attribute_set_id\r\n      can_redeem\r\n      canonical_url\r\n      categories {\r\n        id\r\n      }\r\n      category_gear\r\n      climate\r\n      collar\r\n      color\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":"a2ee5472-12ba-4bb2-a2e3-6179c7cdf057","name":"Get List of \"Also Bought Products\" Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpalsobought(\r\n    filter:{category_id:{eq:\"12\"}}\r\n    pageSize:5\r\n    currentPage:1\r\n  ) {\r\n    total_count\r\n    page_info {\r\n      current_page\r\n      page_size\r\n      total_pages\r\n    }\r\n    sort_fields {\r\n      default\r\n    }\r\n    items {\r\n      id\r\n      sku\r\n      image {\r\n        label\r\n        url\r\n      }\r\n      activity\r\n      allow_amount_range\r\n      allow_credit_range\r\n      attribute_set_id\r\n      can_redeem\r\n      canonical_url\r\n      categories {\r\n        id\r\n      }\r\n      category_gear\r\n      climate\r\n      collar\r\n      color\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, 10 Mar 2020 04:38:13 GMT"},{"key":"Server","value":"Apache/2.4.38 (Ubuntu)"},{"key":"Set-Cookie","value":"PHPSESSID=adnard6cvb1oigtonj82kducf7; expires=Tue, 10-Mar-2020 05:38:13 GMT; Max-Age=3600; path=/api/api; domain=develop.mageplaza.com; HttpOnly"},{"key":"Set-Cookie","value":"private_content_version=68fe247f8ab29cc4bf4aac3de73bc31a; expires=Fri, 08-Mar-2030 04:38:13 GMT; Max-Age=315360000; path=/"},{"key":"Set-Cookie","value":"private_content_version=a910859651f00248f7b3cdf37963613f; expires=Fri, 08-Mar-2030 04:38:13 GMT; Max-Age=315360000; path=/"},{"key":"Set-Cookie","value":"private_content_version=d33845d49fe161f638f85994d5085189; expires=Fri, 08-Mar-2030 04:38:13 GMT; Max-Age=315360000; path=/"},{"key":"Expires","value":"Sun, 10 Mar 2019 04:38:13 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"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":"2766"},{"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        \"mpalsobought\": {\n            \"total_count\": 18,\n            \"page_info\": {\n                \"current_page\": 1,\n                \"page_size\": 5,\n                \"total_pages\": 4\n            },\n            \"sort_fields\": {\n                \"default\": \"position\"\n            },\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"sku\": \"24-MB01\",\n                    \"image\": {\n                        \"label\": \"Image\",\n                        \"url\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/f223c8934ba2f47451e343dc10bac0ce/m/b/mb01-blue-0.jpg\"\n                    },\n                    \"activity\": null,\n                    \"allow_amount_range\": null,\n                    \"allow_credit_range\": null,\n                    \"attribute_set_id\": 15,\n                    \"can_redeem\": null,\n                    \"canonical_url\": \"http://develop.mageplaza.com/api/api/default/joust-duffle-bag.html\",\n                    \"categories\": [\n                        {\n                            \"id\": 3\n                        },\n                        {\n                            \"id\": 4\n                        }\n                    ],\n                    \"category_gear\": null,\n                    \"climate\": null,\n                    \"collar\": null,\n                    \"color\": 5476\n                },\n                {\n                    \"id\": 2,\n                    \"sku\": \"24-MB04\",\n                    \"image\": {\n                        \"label\": \"Image\",\n                        \"url\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/f223c8934ba2f47451e343dc10bac0ce/m/b/mb04-black-0.jpg\"\n                    },\n                    \"activity\": \"5438,5448,5450,5445\",\n                    \"allow_amount_range\": null,\n                    \"allow_credit_range\": null,\n                    \"attribute_set_id\": 15,\n                    \"can_redeem\": null,\n                    \"canonical_url\": \"http://develop.mageplaza.com/api/api/default/strive-shoulder-pack.html\",\n                    \"categories\": [\n                        {\n                            \"id\": 3\n                        },\n                        {\n                            \"id\": 4\n                        },\n                        {\n                            \"id\": 7\n                        }\n                    ],\n                    \"category_gear\": null,\n                    \"climate\": null,\n                    \"collar\": null,\n                    \"color\": 5476\n                },\n                {\n                    \"id\": 3,\n                    \"sku\": \"24-MB03\",\n                    \"image\": {\n                        \"label\": \"Crown Summit Backpack\",\n                        \"url\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/f223c8934ba2f47451e343dc10bac0ce/m/b/mb03-black-0.jpg\"\n                    },\n                    \"activity\": \"5438,5445,5446,5447,5448,5449,5450\",\n                    \"allow_amount_range\": null,\n                    \"allow_credit_range\": null,\n                    \"attribute_set_id\": 15,\n                    \"can_redeem\": null,\n                    \"canonical_url\": \"http://develop.mageplaza.com/api/api/default/crown-summit-backpack.html\",\n                    \"categories\": [\n                        {\n                            \"id\": 3\n                        },\n                        {\n                            \"id\": 4\n                        }\n                    ],\n                    \"category_gear\": null,\n                    \"climate\": null,\n                    \"collar\": null,\n                    \"color\": null\n                },\n                {\n                    \"id\": 4,\n                    \"sku\": \"24-MB05\",\n                    \"image\": {\n                        \"label\": \"Wayfarer Messenger Bag\",\n                        \"url\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/f223c8934ba2f47451e343dc10bac0ce/m/b/mb05-black-0.jpg\"\n                    },\n                    \"activity\": \"5438,5446,5449\",\n                    \"allow_amount_range\": null,\n                    \"allow_credit_range\": null,\n                    \"attribute_set_id\": 15,\n                    \"can_redeem\": null,\n                    \"canonical_url\": \"http://develop.mageplaza.com/api/api/default/wayfarer-messenger-bag.html\",\n                    \"categories\": [\n                        {\n                            \"id\": 3\n                        },\n                        {\n                            \"id\": 4\n                        },\n                        {\n                            \"id\": 7\n                        },\n                        {\n                            \"id\": 8\n                        }\n                    ],\n                    \"category_gear\": null,\n                    \"climate\": null,\n                    \"collar\": null,\n                    \"color\": null\n                },\n                {\n                    \"id\": 5,\n                    \"sku\": \"24-MB06\",\n                    \"image\": {\n                        \"label\": \"Image\",\n                        \"url\": \"http://develop.mageplaza.com/api/api/pub/media/catalog/product/cache/f223c8934ba2f47451e343dc10bac0ce/m/b/mb06-gray-0.jpg\"\n                    },\n                    \"activity\": \"5449,5450\",\n                    \"allow_amount_range\": null,\n                    \"allow_credit_range\": null,\n                    \"attribute_set_id\": 15,\n                    \"can_redeem\": null,\n                    \"canonical_url\": \"http://develop.mageplaza.com/api/api/default/rival-field-messenger.html\",\n                    \"categories\": [\n                        {\n                            \"id\": 3\n                        },\n                        {\n                            \"id\": 4\n                        },\n                        {\n                            \"id\": 7\n                        },\n                        {\n                            \"id\": 8\n                        }\n                    ],\n                    \"category_gear\": null,\n                    \"climate\": null,\n                    \"collar\": null,\n                    \"color\": 5476\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"4bc511ea-3940-48eb-92fe-3a612543d792"}]}