Change the billing address on an order#
Use the addBillingAddressToOrder mutation to set or replace the billing address on an existing order.
Input: AddBillingAddressToOrderInput!
| Name | Type | Required | Description |
|---|---|---|---|
order_id | String! | Required | The ID of the order to update. |
address_id | String | Optional | ID of an existing address (use this OR `address`). |
address | AddressInput▾ | Optional | Inline billing address (use this OR `address_id`). |
Returns: Order
| Name | Type | Required | Description |
|---|---|---|---|
id | ID! | Required | The ID |
number | String! | Required | Order number |
total | Money! | Required | Total value |
currency | Currency! | Required | Currency code |
Example#
Notes#
- Calling this mutation on an order that already has a billing address replaces the existing address.
- Authentication requires a valid API key passed as a Bearer token. See Authentication.