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 | AddressInput!▾ | Required | The new billing address. |
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.