Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions guides/v2.3/graphql/mutations/set-billing-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ redirect from:
- /guides/v2.3/graphql/reference/quote-set-billing-address.html
---

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.
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.

## Syntax

Expand Down Expand Up @@ -35,7 +35,7 @@ mutation {
telephone: "8675309"
save_in_address_book: true
}
use_for_shipping: false
same_as_shipping: false
}
}
) {
Expand Down Expand Up @@ -96,7 +96,8 @@ Attribute | Data Type | Description
--- | --- | ---
`address` | [CartAddressInput](#CartAddressInput) | The billing address for the cart
`customer_address_id` | Int | The unique ID that identifies the customer's address
`use_for_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`)
`same_as_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`)
`use_for_shipping` | Boolean | Deprecated. Use `same_as_shipping` instead

### CartAddressInput object {#CartAddressInput}

Expand Down
2 changes: 1 addition & 1 deletion guides/v2.3/graphql/mutations/set-shipping-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ redirect from:
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:

* The cart contains only virtual items
* When you defined the billing address, you set the `use_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address.
* When you defined the billing address, you set the `same_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address.

## Syntax

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mutation {

## Add a new address for billing and shipping

The following mutation includes the `use_for_shipping` attribute, which allows the same address to be used for billing and shipping.
The following mutation includes the `same_as_shipping` attribute, which allows the same address to be used for billing and shipping.

**Request**

Expand All @@ -125,7 +125,7 @@ mutation {
telephone: "123-456-0000"
save_in_address_book: false
}
use_for_shipping: true
same_as_shipping: true
}
}
) {
Expand Down