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

Commit 8101783

Browse files
authored
Merge pull request #8476 from dineshvb/cart-query-error-coverage
Added the error coverage for cart query
2 parents 4bfd722 + 7a0f4fb commit 8101783

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/guides/v2.3/graphql/queries/cart.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,3 +790,11 @@ Attribute | Data Type | Description
790790
* [setShippingMethodsOnCart mutation]({{page.baseurl}}/graphql/mutations/set-shipping-method.html)
791791
* [setBillingAddressOnCart mutation]({{page.baseurl}}/graphql/mutations/set-billing-address.html)
792792
* [setPaymentMethodOnCart mutation]({{page.baseurl}}/graphql/mutations/set-payment-method.html)
793+
794+
## Errors
795+
796+
Error | Description
797+
--- | ---
798+
`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.
799+
`The cart isn't active` | The cart with the specified cart ID is unavailable, because the items have been purchased and the cart ID becomes inactive.
800+
`Field cart.cart_id of required type String! was not provided` | The value specified in the `cart.cart_id` argument is empty.

src/guides/v2.4/graphql/queries/cart.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,3 +829,11 @@ Attribute | Data Type | Description
829829
* [setShippingMethodsOnCart mutation]({{page.baseurl}}/graphql/mutations/set-shipping-method.html)
830830
* [setBillingAddressOnCart mutation]({{page.baseurl}}/graphql/mutations/set-billing-address.html)
831831
* [setPaymentMethodOnCart mutation]({{page.baseurl}}/graphql/mutations/set-payment-method.html)
832+
833+
## Errors
834+
835+
Error | Description
836+
--- | ---
837+
`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.
838+
`The cart isn't active` | The cart with the specified cart ID is unavailable, because the items have been purchased and the cart ID becomes inactive.
839+
`Field cart.cart_id of required type String! was not provided` | The value specified in the `cart.cart_id` argument is empty.

0 commit comments

Comments
 (0)