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

Commit 57270d5

Browse files
authored
Merge pull request #7151 from VinothKumar361/adding_errors_section_for_addBundleProductsToCart
Adding errors section for addBundleProductsToCart mutation
2 parents 3b47713 + 09c1b8b commit 57270d5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/guides/v2.3/graphql/mutations/add-bundle-products.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,16 @@ The `AddBundleProductsToCartInput` object contains the following attributes:
184184
Attribute | Type | Description
185185
--- | --- | ---
186186
`cart_id` | String! | The unique ID that identifies the customer's cart
187-
`cart_items` | [[BundleProductCartItemInput!]](#bundleProductCartItemInput) | An array of bundle items to add to the cart
187+
`cart_items` | [[BundleProductCartItemInput!]!](#bundleProductCartItemInput) | An array of bundle items to add to the cart
188188

189189
### BundleProductCartItemInput object {#bundleProductCartItemInput}
190190

191191
The `BundleProductCartItemInput` object contains the following attributes:
192192

193193
Attribute | Type | Description
194194
--- | --- | ---
195-
`bundle_options` | [[BundleOptionInput!]](#bundleOptionInput) | An object that contains an array of options of the bundle product with the chosen value and quantity of each option
196-
`customizable_options` | [[CustomizableOptionInput]](#customOptionInput) | An object that contains the ID and value of the product
195+
`bundle_options` | [[BundleOptionInput!]!](#bundleOptionInput) | An object that contains an array of options of the bundle product with the chosen value and quantity of each option
196+
`customizable_options` | [[CustomizableOptionInput!]](#customOptionInput) | An object that contains the ID and value of the product
197197
`data` | [CartItemInput!](#cartItemInput) | An object that contains the quantity and SKU of the bundle product
198198

199199
### BundleOptionInput object {#bundleOptionInput}
@@ -235,6 +235,14 @@ Attribute | Data Type | Description
235235

236236
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
237237

238+
## Errors
239+
240+
Error | Description
241+
--- | ---
242+
`Could not find a product with SKU "XXX"` | A simple product with the SKU specified in the `data.sku` argument does not exist.
243+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` database table.
244+
`Required parameter "cart_id" is missing` | The `cart_id` argument is omitted or contains an empty value.
245+
238246
## Related topics
239247

240248
- [Bundle product data types]({{page.baseurl}}/graphql/product/bundle-product.html)

0 commit comments

Comments
 (0)