Anchor to customerAddressCreatecustomer
mutationcustomer Address Create
Requires access scope.
Creates a new for a Customer. You can optionally set the address as the customer's default address.
You can only add addresses to existing customers. Each customer can have multiple addresses.
Anchor to Arguments
Arguments
- address (MailingAddressInput!)
- customerId (ID!)
- setAsDefault (Boolean)
- Anchor to addressaddress•Mailing
Address Input! required Specifies the fields to use when creating the address.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to setAsDefaultset•Boolean
As Default Whether to set the address as the customer's default address.
Was this section helpful?
- address (MailingAddress)
- userErrors ([UserError!]!)
- Anchor to addressaddress•Mailing
Address The created address.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?