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

Commit 59bf1dc

Browse files
authored
Merge branch 'master' into b2b-webapi-update
2 parents 4b8413c + 9800059 commit 59bf1dc

File tree

5 files changed

+52
-0
lines changed

5 files changed

+52
-0
lines changed

src/guides/v2.3/graphql/mutations/remove-giftcard.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ Attribute | Data Type | Description
7777
{% include graphql/cart-object.md %}
7878

7979
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
80+
81+
## Errors
82+
83+
Error | Description
84+
--- | ---
85+
`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.
86+
`The gift card couldn't be deleted from the quote.` | The value provided in the `gift_card_code` field is invalid or the gift card with that specific ID does not exist in the cart.

src/guides/v2.4/graphql/mutations/remove-giftcard.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ Attribute | Data Type | Description
6969
{% include graphql/cart-object-24.md %}
7070

7171
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
72+
73+
## Errors
74+
75+
Error | Description
76+
--- | ---
77+
`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.
78+
`The gift card couldn't be deleted from the quote.` | The value provided in the `gift_card_code` field is invalid or the gift card with that specific ID does not exist in the cart.

src/guides/v2.4/graphql/mutations/set-gift-options.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,16 @@ Attribute | Data Type | Description
184184
{% include graphql/cart-object-24.md %}
185185

186186
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
187+
188+
## Errors
189+
190+
Error | Description
191+
--- | ---
192+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
193+
`Field SetBillingAddressOnCartInput.cart_id of required type String! was not provided.` | The value specified in the `SetShippingAddressesOnCartInput`.`cart_id` argument is empty.
194+
`Field CartAddressInput.firstname of required type String! was not provided.` | The value specified in the `shipping_addresses`.`firstname` argument is empty.
195+
`Field CartAddressInput.lastname of required type String! was not provided.` | The value specified in the `shipping_addresses`.`lastname` argument is empty.
196+
`Field CartAddressInput.city of required type String! was not provided.` | The value specified in the `shipping_addresses`.`city` argument is empty.
197+
`Field CartAddressInput.street of required type String! was not provided.` | The value specified in the `shipping_addresses`.`street` argument is empty.
198+
`Field CartAddressInput.country_code of required type String! was not provided.` | The value specified in the `shipping_addresses`.`country_code` argument is empty.
199+
`Field SetBillingAddressOnCartInput.billing_address of required type BillingAddressInput! was not provided.` | The `shipping_addresses` input attribute of type `ShippingAddressInput` is missing.

src/guides/v2.4/graphql/mutations/set-shipping-address.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,17 @@ Attribute | Data Type | Description
137137
{% include graphql/cart-object-24.md %}
138138

139139
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
140+
141+
## Errors
142+
143+
Error | Description
144+
--- | ---
145+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
146+
`Field SetShippingAddressesOnCartInput.cart_id of required type String! was not provided.` | The value specified in the `SetShippingAddressesOnCartInput`.`cart_id` argument is empty.
147+
`Field CartAddressInput.firstname of required type String! was not provided.` | The value specified in the `shipping_addresses`.`firstname` argument is empty.
148+
`Field CartAddressInput.lastname of required type String! was not provided.` | The value specified in the `shipping_addresses`.`lastname` argument is empty.
149+
`Field CartAddressInput.city of required type String! was not provided.` | The value specified in the `shipping_addresses`.`city` argument is empty.
150+
`Field CartAddressInput.street of required type String! was not provided.` | The value specified in the `shipping_addresses`.`street` argument is empty.
151+
`Field CartAddressInput.country_code of required type String! was not provided.` | The value specified in the `shipping_addresses`.`country_code` argument is empty.
152+
`Field SetShippingAddressesOnCartInput.shipping_addresses of required type [ShippingAddressInput]! was not provided.` | The `shipping_addresses` input attribute of type `ShippingAddressInput` is missing.
153+
`The current user cannot perform operations on cart "XXX"` | An unauthorized user (guest) tried to set a delivery method for an order on behalf of an authorized user (customer), or a customer tried to set a delivery method for an order on behalf of another customer.

src/guides/v2.4/graphql/mutations/update-customer.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ The following table lists the top-level attributes of the `customer` object. See
6565

6666
{% include graphql/customer-output-24.md %}
6767

68+
## Errors
69+
70+
Error | Description
71+
--- | ---
72+
`"input" value should be specified` | The `input` argument is empty.
73+
`"Email" is not a valid email address.` | The value provided in the `input`.`email` argument has an invalid format.
74+
`Provide the current "password" to change "email".` | To change an email address, specify the correct customer password in the `password` argument.
75+
`A customer with the same email address already exists in an associated website.` | You cannot apply a new email address to a current customer because another user has the same email address.
76+
`Invalid login or password.` | The value specified in the `password` argument is incorrect.
77+
`The current customer isn't authorized.` | The current customer is not currently logged in, or the customer's token does not exist in the `oauth_token` table.
78+
6879
## Related topics
6980

7081
* [customer query]({{page.baseurl}}/graphql/queries/customer.html)

0 commit comments

Comments
 (0)