You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/mutations/add-virtual-products.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,14 @@ Attribute | Data Type | Description
127
127
{% include graphql/cart-object.md %}
128
128
129
129
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
130
+
131
+
## Errors
132
+
133
+
Error | Description
134
+
--- | ---
135
+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
136
+
`Could not find a product with SKU "YYY"` | A virtual product with the SKU specified in the `data`.`sku` attribute does not exist.
137
+
`Required parameter "cart_id" is missing` | The `cart_id` attribute was omitted or contains an empty value.
138
+
`Required parameter "cart_items" is missing` | The `cart_items` attribute was omitted or contains an empty value.
139
+
`The current user cannot perform operations on cart XXX` | An unauthorized user (guest) tried to add the product into a customer's cart, or an authorized user (customer) tried to add the product into the cart of another customer.
140
+
`The product's required option(s) weren't entered. Make sure the options are entered and try again.` | A virtual product has customizable options that were not specified in the mutation, but are required for adding the product into the cart.
0 commit comments