From 8b8cad0a713fc7b212ba98bec0022e27c2bc703a Mon Sep 17 00:00:00 2001 From: Rakesh Jesadiya Date: Tue, 8 Dec 2020 16:28:49 +0530 Subject: [PATCH 1/2] Update add-products-to-cart.md Cart Id Invalid Error message. --- src/guides/v2.4/graphql/mutations/add-products-to-cart.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guides/v2.4/graphql/mutations/add-products-to-cart.md b/src/guides/v2.4/graphql/mutations/add-products-to-cart.md index ea7aa9f92d1..84e9635b0f2 100644 --- a/src/guides/v2.4/graphql/mutations/add-products-to-cart.md +++ b/src/guides/v2.4/graphql/mutations/add-products-to-cart.md @@ -365,6 +365,7 @@ Attribute | Data Type | Description Code | Error | Description --- | --- | --- +`CART_ID_INVALID` | `Could not find a cart with ID` | A requested cart id is invalid. `PRODUCT_NOT_FOUND` | `Could not find a product with SKU "XXX"` | A product with the SKU specified in the argument `data`.`sku` does not exist. `NOT_SALABLE` | `Product that you are trying to add is not available.` | A requested product is not available `INSUFFICIENT_STOCK` | `This product is out of stock` | A requested product is out of stock From a45e741d65866eea77ec4720234996801e3ece32 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Tue, 8 Dec 2020 06:56:09 -0600 Subject: [PATCH 2/2] Update add-products-to-cart.md --- src/guides/v2.4/graphql/mutations/add-products-to-cart.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/guides/v2.4/graphql/mutations/add-products-to-cart.md b/src/guides/v2.4/graphql/mutations/add-products-to-cart.md index 84e9635b0f2..1d50b649f14 100644 --- a/src/guides/v2.4/graphql/mutations/add-products-to-cart.md +++ b/src/guides/v2.4/graphql/mutations/add-products-to-cart.md @@ -365,8 +365,8 @@ Attribute | Data Type | Description Code | Error | Description --- | --- | --- -`CART_ID_INVALID` | `Could not find a cart with ID` | A requested cart id is invalid. +`CART_ID_INVALID` | `Could not find a cart with ID` | The specified cart ID is invalid. `PRODUCT_NOT_FOUND` | `Could not find a product with SKU "XXX"` | A product with the SKU specified in the argument `data`.`sku` does not exist. `NOT_SALABLE` | `Product that you are trying to add is not available.` | A requested product is not available -`INSUFFICIENT_STOCK` | `This product is out of stock` | A requested product is out of stock -`UNDEFINED` | `UNDEFINED` | An error message is not matched with any code +`INSUFFICIENT_STOCK` | `This product is out of stock` | The requested product is out of stock +`UNDEFINED` | `UNDEFINED` | The error message does not match any error code