GitHub

ShopifyCustomerCreateInput

Type

import { ShopifyCustomerCreateInput } from '@daffodil/driver/shopify'

The input fields for creating a new Customer account. Used by the customerCreate mutation.

For legacy customer accounts only and requires an email address and password. Optionally accepts the customer's name, phone number, and email marketing consent.

Caution: The password is used for customer authentication. Ensure it's transmitted securely and never logged or stored in plain text.

interface ShopifyCustomerCreateInput {
  acceptsMarketing: boolean
  email: string
  firstName: string
  lastName: string
  password: string
  phone: string
}

Properties

acceptsMarketing
boolean

Indicates whether the customer has consented to be sent marketing material via email.

email
string

The customer’s email.

firstName
string

The customer’s first name.

lastName
string

The customer’s last name.

password
string

The login password used by the customer.

phone
string

A unique phone number for the customer.

Formatted using E.164 standard. For example, +16135551111.