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.
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]>
Copy file name to clipboardExpand all lines: src/guides/v2.3/graphql/mutations/apply-store-credit.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,3 +110,11 @@ Attribute | Data Type | Description
110
110
{% include graphql/cart-object.md %}
111
111
112
112
[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.
Copy file name to clipboardExpand all lines: src/guides/v2.4/graphql/mutations/apply-store-credit.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,3 +102,11 @@ Attribute | Data Type | Description
102
102
{% include graphql/cart-object-24.md %}
103
103
104
104
[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