XM

Retrieve Menu Items

Through this endpoint, we support you to retrieve data on browse menu on your e-commerce website. The response includes data on parent and child menu items.

Path:

GET /menu/items

Headers

x-site-context: {date, channel, account, stage}

Consumes

  • application/json

Produces

  • application/json

Parameters []

Sample Request

https://{baseurl}/menu/items

Response Code: 200

Message: OK

Description: You will see this message when the details are successfully retrieved.

Sample

{
"status_code": 200,
"status": "List of active menus",
"data": {
"MenuList": [
{
"id": "5ed116e888926600073d115d",
"label": "ADULTS",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "javascript:void(0)",
"params": [
{
"kind": "",
"value": ""
}
],
"children": [
{
"id": "5ef5804d7263400007059504",
"label": "Test PROGRAM",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/",
"params": [],
"children": [
{
"id": "5ef580647263400007059505",
"label": "Seasonal Probiotics",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/product/DEMOSUB-SEASONAL",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
},
{
"id": "5ef580a67263400007059506",
"label": "CREATE YOUR OWN PROGRAM",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/",
"params": [],
"children": [
{
"id": "5ef580ad7263400007059507",
"label": "Fit",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/product/DEMOSUBFIT",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef580d17263400007059508",
"label": "Mood",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/product/DEMOSUBMOOD",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef580e57263400007059509",
"label": "Immunity",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "/product/DEMOSUBIMMUNITY",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef5813e726340000705950a",
"label": "Outside",
"order": 4,
"isActive": true,
"channel": [
12
],
"path": "/product/DEMOSUBOUTSIDE",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
},
{
"id": "5ef58184726340000705950b",
"label": "PREBIOTIC",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "/",
"params": [],
"children": [
{
"id": "5f11b0d3dddb1c00073e465b",
"label": "Gut Prep",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/product/DEMO001-30",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
}
]
},
{
"id": "5ed1173688926600073d1163",
"label": "KIDS",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/collections/testpro-prebiotic-probiotics-for-baby-and-kids",
"params": [
{
"kind": "",
"value": ""
}
],
"children": [
{
"id": "5ef581cf726340000705950d",
"label": "PREBIOTIC & PROBIOTIC",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/collections/testpro-prebiotic-probiotics-for-baby-and-kids",
"params": [
{
"kind": "",
"value": ""
}
],
"children": [
{
"id": "5ef581ee726340000705950e",
"label": "Testpro Baby, ages 0-2",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/c/faq",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef581f7726340000705950f",
"label": "Testpro Kids, ages 2-13",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/c/faq",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
},
{
"id": "5ef5822c7263400007059510",
"label": "Ingredient Info",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/pages/testpro-product-ingredients",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef5824d7263400007059511",
"label": "FAQs",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "/",
"params": [],
"children": []
},
{
"id": "5ef5825d7263400007059512",
"label": "Why Testpro",
"order": 4,
"isActive": true,
"channel": [
12
],
"path": "/pages/why-testpro-baby-kids-probiotics",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
},
{
"id": "5ed1187988926600073d1166",
"label": "LEARN",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "javascript:void(0)",
"params": [
{
"kind": "",
"value": ""
}
],
"children": [
{
"id": "5ef583457263400007059516",
"label": "Our Story",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/pages/about-us",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ed118c188926600073d1169",
"label": "GUT GUIDE",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "/pages/gut-guide",
"params": [
{
"kind": "",
"value": ""
}
],
"children": [
{
"id": "5ef5829e7263400007059513",
"label": "Why probiotics",
"order": 1,
"isActive": true,
"channel": [
12
],
"path": "/pages/why-probiotics",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef582cf7263400007059514",
"label": "Why seasonal",
"order": 2,
"isActive": true,
"channel": [
12
],
"path": "/pages/why-seasonal",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef583037263400007059515",
"label": "Why we're better",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "/pages/why-we-are-better",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
},
{
"id": "5ef583557263400007059517",
"label": "Press",
"order": 3,
"isActive": true,
"channel": [
12
],
"path": "/pages/press",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef5837a7263400007059518",
"label": "Blog - The Digest",
"order": 4,
"isActive": true,
"channel": [
12
],
"path": "/blogs/the-digest",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
},
{
"id": "5ef5838a7263400007059519",
"label": "FAQs",
"order": 5,
"isActive": true,
"channel": [
12
],
"path": "https://faq.test.com/",
"params": [
{
"kind": "",
"value": ""
}
],
"children": []
}
]
}
]
}
}

5.1. changelog

  • Last updated - Oct 2020