User Errors Customer Address User Errors
Requires access scope.
The error codes that are provided for failed address mutations.
Anchor to FieldsFields
- code (UserErrorsCustomerAddressUserErrorsCode)
- field ([String!])
- message (String!)
- Anchor to codecode•User
Errors Customer Address User Errors Code The error code.
Show enum values
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- customerAddressCreate (CustomerAddressCreatePayload)
- customerAddressDelete (CustomerAddressDeletePayload)
- customerAddressUpdate (CustomerAddressUpdatePayload)
- •mutation
Creates a new address for a customer.
Show payload
- Anchor to addressaddress•Customer
Address Input! required Specifies the fields to use when creating the address.
Show input fields
- Anchor to defaultAddressdefault•Boolean
Address Default:false The flag to set the address as the default address.
Arguments
- •mutation
Deletes a specific address for a customer.
Show payload
- Anchor to addressIdaddress•ID!
Id required The ID of the address to be deleted.
- Anchor to allowDefaultAddressallow•Boolean
Default Address Default:false Whether to delete the address when it's the customer's default address. When
true, another of the customer's remaining addresses becomes the default, or the customer has no default address if none remain.
Arguments
- •mutation
Updates a specific address for a customer.
Show payload
- Anchor to addressaddress•Customer
Address Input Specifies the fields to use when updating the address.
Show input fields
- Anchor to addressIdaddress•ID!
Id required The ID of the address to be updated.
- Anchor to defaultAddressdefault•Boolean
Address Default:null The flag to set the address as the default address.
Arguments