XM
Powered By GitBook
Retrieve Menu Items
Retrieves all the menu items on your e-commerce website. The response includes data on parent and child menu items.
Path:
1
GET https://{baseurl}/api-xpm/menu/items
Copied!

Headers

Content-Type : application/json
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }

Parameters []

Sample Request

1
https://{baseurl}/menu/items
Copied!
Response Code: 200
Message: OK
Description: You will see this message when the details are successfully retrieved.
1
{
2
"status_code": 200,
3
"status": "List of active menus",
4
"data": {
5
"MenuList": [
6
{
7
"id": "5ed116e888926600073d115d",
8
"label": "ADULTS",
9
"order": 1,
10
"isActive": true,
11
"channel": [
12
12
13
],
14
"path": "javascript:void(0)",
15
"params": [
16
{
17
"kind": "",
18
"value": ""
19
}
20
],
21
"children": [
22
{
23
"id": "5ef5804d7263400007059504",
24
"label": "Test PROGRAM",
25
"order": 1,
26
"isActive": true,
27
"channel": [
28
12
29
],
30
"path": "/",
31
"params": [],
32
"children": [
33
{
34
"id": "5ef580647263400007059505",
35
"label": "Seasonal Probiotics",
36
"order": 1,
37
"isActive": true,
38
"channel": [
39
12
40
],
41
"path": "/product/DEMOSUB-SEASONAL",
42
"params": [
43
{
44
"kind": "",
45
"value": ""
46
}
47
],
48
"children": []
49
}
50
]
51
},
52
{
53
"id": "5ef580a67263400007059506",
54
"label": "CREATE YOUR OWN PROGRAM",
55
"order": 2,
56
"isActive": true,
57
"channel": [
58
12
59
],
60
"path": "/",
61
"params": [],
62
"children": [
63
{
64
"id": "5ef580ad7263400007059507",
65
"label": "Fit",
66
"order": 1,
67
"isActive": true,
68
"channel": [
69
12
70
],
71
"path": "/product/DEMOSUBFIT",
72
"params": [
73
{
74
"kind": "",
75
"value": ""
76
}
77
],
78
"children": []
79
},
80
{
81
"id": "5ef580d17263400007059508",
82
"label": "Mood",
83
"order": 2,
84
"isActive": true,
85
"channel": [
86
12
87
],
88
"path": "/product/DEMOSUBMOOD",
89
"params": [
90
{
91
"kind": "",
92
"value": ""
93
}
94
],
95
"children": []
96
},
97
{
98
"id": "5ef580e57263400007059509",
99
"label": "Immunity",
100
"order": 3,
101
"isActive": true,
102
"channel": [
103
12
104
],
105
"path": "/product/DEMOSUBIMMUNITY",
106
"params": [
107
{
108
"kind": "",
109
"value": ""
110
}
111
],
112
"children": []
113
},
114
{
115
"id": "5ef5813e726340000705950a",
116
"label": "Outside",
117
"order": 4,
118
"isActive": true,
119
"channel": [
120
12
121
],
122
"path": "/product/DEMOSUBOUTSIDE",
123
"params": [
124
{
125
"kind": "",
126
"value": ""
127
}
128
],
129
"children": []
130
}
131
]
132
},
133
{
134
"id": "5ef58184726340000705950b",
135
"label": "PREBIOTIC",
136
"order": 3,
137
"isActive": true,
138
"channel": [
139
12
140
],
141
"path": "/",
142
"params": [],
143
"children": [
144
{
145
"id": "5f11b0d3dddb1c00073e465b",
146
"label": "Gut Prep",
147
"order": 1,
148
"isActive": true,
149
"channel": [
150
12
151
],
152
"path": "/product/DEMO001-30",
153
"params": [
154
{
155
"kind": "",
156
"value": ""
157
}
158
],
159
"children": []
160
}
161
]
162
}
163
]
164
},
165
{
166
"id": "5ed1173688926600073d1163",
167
"label": "KIDS",
168
"order": 2,
169
"isActive": true,
170
"channel": [
171
12
172
],
173
"path": "/collections/testpro-prebiotic-probiotics-for-baby-and-kids",
174
"params": [
175
{
176
"kind": "",
177
"value": ""
178
}
179
],
180
"children": [
181
{
182
"id": "5ef581cf726340000705950d",
183
"label": "PREBIOTIC & PROBIOTIC",
184
"order": 1,
185
"isActive": true,
186
"channel": [
187
12
188
],
189
"path": "/collections/testpro-prebiotic-probiotics-for-baby-and-kids",
190
"params": [
191
{
192
"kind": "",
193
"value": ""
194
}
195
],
196
"children": [
197
{
198
"id": "5ef581ee726340000705950e",
199
"label": "Testpro Baby, ages 0-2",
200
"order": 1,
201
"isActive": true,
202
"channel": [
203
12
204
],
205
"path": "/c/faq",
206
"params": [
207
{
208
"kind": "",
209
"value": ""
210
}
211
],
212
"children": []
213
},
214
{
215
"id": "5ef581f7726340000705950f",
216
"label": "Testpro Kids, ages 2-13",
217
"order": 2,
218
"isActive": true,
219
"channel": [
220
12
221
],
222
"path": "/c/faq",
223
"params": [
224
{
225
"kind": "",
226
"value": ""
227
}
228
],
229
"children": []
230
}
231
]
232
},
233
{
234
"id": "5ef5822c7263400007059510",
235
"label": "Ingredient Info",
236
"order": 2,
237
"isActive": true,
238
"channel": [
239
12
240
],
241
"path": "/pages/testpro-product-ingredients",
242
"params": [
243
{
244
"kind": "",
245
"value": ""
246
}
247
],
248
"children": []
249
},
250
{
251
"id": "5ef5824d7263400007059511",
252
"label": "FAQs",
253
"order": 3,
254
"isActive": true,
255
"channel": [
256
12
257
],
258
"path": "/",
259
"params": [],
260
"children": []
261
},
262
{
263
"id": "5ef5825d7263400007059512",
264
"label": "Why Testpro",
265
"order": 4,
266
"isActive": true,
267
"channel": [
268
12
269
],
270
"path": "/pages/why-testpro-baby-kids-probiotics",
271
"params": [
272
{
273
"kind": "",
274
"value": ""
275
}
276
],
277
"children": []
278
}
279
]
280
},
281
{
282
"id": "5ed1187988926600073d1166",
283
"label": "LEARN",
284
"order": 3,
285
"isActive": true,
286
"channel": [
287
12
288
],
289
"path": "javascript:void(0)",
290
"params": [
291
{
292
"kind": "",
293
"value": ""
294
}
295
],
296
"children": [
297
{
298
"id": "5ef583457263400007059516",
299
"label": "Our Story",
300
"order": 2,
301
"isActive": true,
302
"channel": [
303
12
304
],
305
"path": "/pages/about-us",
306
"params": [
307
{
308
"kind": "",
309
"value": ""
310
}
311
],
312
"children": []
313
},
314
{
315
"id": "5ed118c188926600073d1169",
316
"label": "GUT GUIDE",
317
"order": 3,
318
"isActive": true,
319
"channel": [
320
12
321
],
322
"path": "/pages/gut-guide",
323
"params": [
324
{
325
"kind": "",
326
"value": ""
327
}
328
],
329
"children": [
330
{
331
"id": "5ef5829e7263400007059513",
332
"label": "Why probiotics",
333
"order": 1,
334
"isActive": true,
335
"channel": [
336
12
337
],
338
"path": "/pages/why-probiotics",
339
"params": [
340
{
341
"kind": "",
342
"value": ""
343
}
344
],
345
"children": []
346
},
347
{
348
"id": "5ef582cf7263400007059514",
349
"label": "Why seasonal",
350
"order": 2,
351
"isActive": true,
352
"channel": [
353
12
354
],
355
"path": "/pages/why-seasonal",
356
"params": [
357
{
358
"kind": "",
359
"value": ""
360
}
361
],
362
"children": []
363
},
364
{
365
"id": "5ef583037263400007059515",
366
"label": "Why we're better",
367
"order": 3,
368
"isActive": true,
369
"channel": [
370
12
371
],
372
"path": "/pages/why-we-are-better",
373
"params": [
374
{
375
"kind": "",
376
"value": ""
377
}
378
],
379
"children": []
380
}
381
]
382
},
383
{
384
"id": "5ef583557263400007059517",
385
"label": "Press",
386
"order": 3,
387
"isActive": true,
388
"channel": [
389
12
390
],
391
"path": "/pages/press",
392
"params": [
393
{
394
"kind": "",
395
"value": ""
396
}
397
],
398
"children": []
399
},
400
{
401
"id": "5ef5837a7263400007059518",
402
"label": "Blog - The Digest",
403
"order": 4,
404
"isActive": true,
405
"channel": [
406
12
407
],
408
"path": "/blogs/the-digest",
409
"params": [
410
{
411
"kind": "",
412
"value": ""
413
}
414
],
415
"children": []
416
},
417
{
418
"id": "5ef5838a7263400007059519",
419
"label": "FAQs",
420
"order": 5,
421
"isActive": true,
422
"channel": [
423
12
424
],
425
"path": "https://faq.test.com/",
426
"params": [
427
{
428
"kind": "",
429
"value": ""
430
}
431
],
432
"children": []
433
}
434
]
435
}
436
]
437
}
438
}
Copied!

Change Log

    Last updated - Oct 2020
Last modified 2mo ago
Copy link
Contents
Change Log