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.
The `setBillingAddressOnCart` mutation sets the billing address for a specific cart. If you set the `use_for_shipping` attribute to `true`, Magento assigns the same address as the shipping address.
8
+
The `setBillingAddressOnCart` mutation sets the billing address for a specific cart. If you set the `same_as_shipping` attribute to `true`, Magento assigns the same address as the shipping address.
9
9
10
10
## Syntax
11
11
@@ -35,7 +35,7 @@ mutation {
35
35
telephone: "8675309"
36
36
save_in_address_book: true
37
37
}
38
-
use_for_shipping: false
38
+
same_as_shipping: false
39
39
}
40
40
}
41
41
) {
@@ -96,7 +96,8 @@ Attribute | Data Type | Description
96
96
--- | --- | ---
97
97
`address` | [CartAddressInput](#CartAddressInput) | The billing address for the cart
98
98
`customer_address_id` | Int | The unique ID that identifies the customer's address
99
-
`use_for_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`)
99
+
`same_as_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`)
100
+
`use_for_shipping` | Boolean | Deprecated. Use `same_as_shipping` instead
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/mutations/set-shipping-address.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ redirect from:
8
8
The `setShippingAddressesOnCart` mutation sets one or more shipping addresses on a specific cart. The shipping address does not need to be specified in the following circumstances:
9
9
10
10
* The cart contains only virtual items
11
-
* When you defined the billing address, you set the `use_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address.
11
+
* When you defined the billing address, you set the `same_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address.
0 commit comments