Anchor to CustomerAddressCreatePayloadCustomer
payloadCustomer Address Create Payload
Return type for mutation.
Anchor to FieldsFields
- 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?
Anchor to Mutations with this payloadMutations with this payload
- customerAddressCreate (CustomerAddressCreatePayload)
- •mutation
Creates a new
for aCustomer. 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 customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to addressaddress•Mailing
Address Input! required Specifies the fields to use when creating the address.
- Anchor to setAsDefaultset•Boolean
As Default Whether to set the address as the customer's default address.
Arguments
Was this section helpful?