Skip to main content
Anchor to CustomerAddressCreatePayload

CustomerAddressCreatePayload

payload

Return type for customerAddressCreate mutation.

•MailingAddress

The created address.

•[UserError!]!
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

•mutation

Creates a new MailingAddress 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.

Arguments

•ID!
required

The ID of the customer.

•MailingAddressInput!
required

Specifies the fields to use when creating the address.

•Boolean

Whether to set the address as the customer's default address.



Was this section helpful?