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

Commit 8c240b2

Browse files
dineshvbkeharper
andauthored
Added the error coverage for applyStoreCreditToCart mutation (#8450)
* added the error coverage for applyStoreCreditToCart mutation * added the error coverage for applyStoreCreditToCart mutation * added the error coverage for applyStoreCreditToCart mutation * Update apply-store-credit.md * Update apply-store-credit.md Co-authored-by: Kevin Harper <[email protected]>
1 parent e899f6d commit 8c240b2

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/guides/v2.3/graphql/mutations/apply-store-credit.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,11 @@ Attribute | Data Type | Description
110110
{% include graphql/cart-object.md %}
111111

112112
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
113+
114+
## Errors
115+
116+
Error | Description
117+
--- | ---
118+
`Could not find a cart with ID \"xxxxx\"` | The ID provided in the `cart_id` field is invalid or the cart does not exist for the customer.
119+
`The cart isn't active` | The cart with the given cart ID is unavailable, because the items have been purchased and the cart ID becomes inactive.
120+
`Field ApplyStoreCreditToCartInput.cart_id of required type String! was not provided` | The value specified in the `ApplyStoreCreditToCartInput.cart_id` argument is empty.

src/guides/v2.4/graphql/mutations/apply-store-credit.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,11 @@ Attribute | Data Type | Description
102102
{% include graphql/cart-object-24.md %}
103103

104104
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
105+
106+
## Errors
107+
108+
Error | Description
109+
--- | ---
110+
`Could not find a cart with ID \"xxxxx\"` | The ID provided in the `cart_id` field is invalid or the cart does not exist for the customer.
111+
`The cart isn't active` | The cart with the given cart ID is unavailable, because the items have been purchased and the cart ID becomes inactive.
112+
`Field ApplyStoreCreditToCartInput.cart_id of required type String! was not provided` | The value specified in the `ApplyStoreCreditToCartInput.cart_id` argument is empty.

0 commit comments

Comments
 (0)