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

Commit cd73515

Browse files
authored
added errors coverage for billing address mutation (#8434)
1 parent 3a76d16 commit cd73515

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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.

0 commit comments

Comments
 (0)