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

Update add-products-to-cart.md #8355

Merged
merged 2 commits into from
Dec 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/guides/v2.4/graphql/mutations/add-products-to-cart.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ Attribute | Data Type | Description

Code | Error | Description
--- | --- | ---
`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