Skip to content

Commit 91a7d42

Browse files
authored
Merge pull request #465 from brezden/patch-1
Update set-billing-address.md
2 parents 5729690 + e929938 commit 91a7d42

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/pages/graphql/schema/cart/mutations/set-billing-address.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,18 @@ mutation {
109109
}
110110
}
111111
```
112+
113+
## Errors
114+
115+
Error | Description
116+
--- | ---
117+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
118+
`Required parameter "cart_id" is missing` | The `cart_id` argument was omitted or contains an empty value.
119+
`Required parameter "billing_address" is missing` | The `billing_address` argument was omitted or contains an empty array.
120+
`The billing address must contain either "customer_address_id", "address", or "same_as_shipping".` | The billing address input object must include at least one of the following fields: `customer_address_id`, `address`, or `same_as_shipping`.
121+
`The billing address cannot contain "customer_address_id" and "address" at the same time.` | The billing address input contains both `customer_address_id` and `address`. Only one can be used.
122+
`Could not use the "same_as_shipping" option, because multiple shipping addresses have been set.` | The `same_as_shipping` option was provided, but the cart has multiple shipping addresses, making this option invalid.
123+
`Could not use the "same_as_shipping" option, because the shipping address has not been set.` | The `same_as_shipping` option was provided, but no valid shipping address exists on the cart.
124+
`Could not use the "use_for_shipping" option, because multiple shipping addresses have already been set.` | The `use_for_shipping` flag was provided, but the cart already has multiple shipping addresses.
125+
`The current customer isn't authorized.` | An unauthorized user (guest) tried to set a billing address on behalf of an authorized user (customer), or a customer tried to set a billing address on behalf of another customer.
126+
`An error occurred while processing the billing address.` | The billing address could not be validated. One or more required fields may be missing or invalid.

0 commit comments

Comments
 (0)