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.

Menu overview

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

All admin operations require an admin Bearer token — see Authentication.

Released under the MIT License.