Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 14877d0

Browse files
Added response for sample query for bundle product data types (#6603)
* Added response for sample query for bundle product data types * Update bundle-product.md Co-authored-by: Kevin Harper <keharper@users.noreply.github.com>
1 parent 7a3294b commit 14877d0

File tree

1 file changed

+200
-0
lines changed

1 file changed

+200
-0
lines changed

src/guides/v2.3/graphql/product/bundle-product.md

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,203 @@ The following query returns information about bundle product `24-WG080`, which i
107107
}
108108
}
109109
```
110+
111+
{% collapsible Response %}
112+
113+
```json
114+
{
115+
"data": {
116+
"products": {
117+
"items": [
118+
{
119+
"sku": "24-WG080",
120+
"type_id": "bundle",
121+
"id": 46,
122+
"name": "Sprite Yoga Companion Kit",
123+
"dynamic_sku": true,
124+
"dynamic_price": true,
125+
"dynamic_weight": true,
126+
"price_view": "PRICE_RANGE",
127+
"ship_bundle_items": "TOGETHER",
128+
"items": [
129+
{
130+
"option_id": 1,
131+
"title": "Sprite Stasis Ball",
132+
"required": true,
133+
"type": "radio",
134+
"position": 1,
135+
"sku": "24-WG080",
136+
"options": [
137+
{
138+
"id": 1,
139+
"quantity": 1,
140+
"position": 1,
141+
"is_default": true,
142+
"price": 0,
143+
"price_type": "FIXED",
144+
"can_change_quantity": true,
145+
"label": "Sprite Stasis Ball 55 cm",
146+
"product": {
147+
"id": 26,
148+
"name": "Sprite Stasis Ball 55 cm",
149+
"sku": "24-WG081-blue",
150+
"type_id": "simple"
151+
}
152+
},
153+
{
154+
"id": 2,
155+
"quantity": 1,
156+
"position": 2,
157+
"is_default": false,
158+
"price": 0,
159+
"price_type": "FIXED",
160+
"can_change_quantity": true,
161+
"label": "Sprite Stasis Ball 65 cm",
162+
"product": {
163+
"id": 29,
164+
"name": "Sprite Stasis Ball 65 cm",
165+
"sku": "24-WG082-blue",
166+
"type_id": "simple"
167+
}
168+
},
169+
{
170+
"id": 3,
171+
"quantity": 1,
172+
"position": 3,
173+
"is_default": false,
174+
"price": 0,
175+
"price_type": "FIXED",
176+
"can_change_quantity": true,
177+
"label": "Sprite Stasis Ball 75 cm",
178+
"product": {
179+
"id": 32,
180+
"name": "Sprite Stasis Ball 75 cm",
181+
"sku": "24-WG083-blue",
182+
"type_id": "simple"
183+
}
184+
}
185+
]
186+
},
187+
{
188+
"option_id": 2,
189+
"title": "Sprite Foam Yoga Brick",
190+
"required": true,
191+
"type": "radio",
192+
"position": 2,
193+
"sku": "24-WG080",
194+
"options": [
195+
{
196+
"id": 4,
197+
"quantity": 1,
198+
"position": 1,
199+
"is_default": true,
200+
"price": 0,
201+
"price_type": "FIXED",
202+
"can_change_quantity": true,
203+
"label": "Sprite Foam Yoga Brick",
204+
"product": {
205+
"id": 21,
206+
"name": "Sprite Foam Yoga Brick",
207+
"sku": "24-WG084",
208+
"type_id": "simple"
209+
}
210+
}
211+
]
212+
},
213+
{
214+
"option_id": 3,
215+
"title": "Sprite Yoga Strap",
216+
"required": true,
217+
"type": "radio",
218+
"position": 3,
219+
"sku": "24-WG080",
220+
"options": [
221+
{
222+
"id": 5,
223+
"quantity": 1,
224+
"position": 1,
225+
"is_default": true,
226+
"price": 0,
227+
"price_type": "FIXED",
228+
"can_change_quantity": true,
229+
"label": "Sprite Yoga Strap 6 foot",
230+
"product": {
231+
"id": 33,
232+
"name": "Sprite Yoga Strap 6 foot",
233+
"sku": "24-WG085",
234+
"type_id": "simple"
235+
}
236+
},
237+
{
238+
"id": 6,
239+
"quantity": 1,
240+
"position": 2,
241+
"is_default": false,
242+
"price": 0,
243+
"price_type": "FIXED",
244+
"can_change_quantity": true,
245+
"label": "Sprite Yoga Strap 8 foot",
246+
"product": {
247+
"id": 34,
248+
"name": "Sprite Yoga Strap 8 foot",
249+
"sku": "24-WG086",
250+
"type_id": "simple"
251+
}
252+
},
253+
{
254+
"id": 7,
255+
"quantity": 1,
256+
"position": 3,
257+
"is_default": false,
258+
"price": 0,
259+
"price_type": "FIXED",
260+
"can_change_quantity": true,
261+
"label": "Sprite Yoga Strap 10 foot",
262+
"product": {
263+
"id": 35,
264+
"name": "Sprite Yoga Strap 10 foot",
265+
"sku": "24-WG087",
266+
"type_id": "simple"
267+
}
268+
}
269+
]
270+
},
271+
{
272+
"option_id": 4,
273+
"title": "Sprite Foam Roller",
274+
"required": true,
275+
"type": "radio",
276+
"position": 4,
277+
"sku": "24-WG080",
278+
"options": [
279+
{
280+
"id": 8,
281+
"quantity": 1,
282+
"position": 1,
283+
"is_default": true,
284+
"price": 0,
285+
"price_type": "FIXED",
286+
"can_change_quantity": true,
287+
"label": "Sprite Foam Roller",
288+
"product": {
289+
"id": 22,
290+
"name": "Sprite Foam Roller",
291+
"sku": "24-WG088",
292+
"type_id": "simple"
293+
}
294+
}
295+
]
296+
}
297+
]
298+
}
299+
]
300+
}
301+
}
302+
}
303+
```
304+
305+
{% endcollapsible %}
306+
307+
## Related topics
308+
309+
- [addBundleProductsToCart mutation]({{page.baseurl}}/graphql/mutations/add-bundle-products.html)

0 commit comments

Comments
 (0)