Skip to content

Set Customer Address as Default (GraphQL) ​

Marks the chosen address as the customer's default. All the customer's other addresses have their default flag cleared in the same call.

Input ​

FieldTypeRequiredDescription
customerIdInt!yesThe customer who owns the address.
idID!yesThe address IRI to make default. Must belong to customerId (otherwise error).

Returns the updated address with defaultAddress: true.

Permission: customers.addresses.edit.

See the Customer Addresses overview for the full address-book flow.

Released under the MIT License.