The input fields for creating a customer.
Fields
lastName ● String
The customer's last name.
Maximum length: 128
firstName ● String
The customer's first name.
Maximum length: 128
password ● String!non-null
The customer's password.
Maximum length: 18
phone ● String
The customer's phone number.
Maximum length: 20
acceptsMarketing ● Boolean
Whether the customer accepts subscribing to marketing information via email.
  • true: Accepts
  • false: Does not accept
email ● String!non-null
The customer's email address.
Maximum length: 50
source ● String
The identifier for the source of the customer creation request. Valid values are:
  • 7: Storefront API
  • 22: ITS App
  • 24: Shopper App
If this field is omitted or set to null, the default value 7 is used.
verifyToken ● String
The verification token.
birthday ● String
The customer's date of birth. Format: yyyyMMdd.
Example: 19931231
gender ● String
The customer's gender. Valid values are:
  • male: Male
  • female: Female
  • prefer not to say: Secret
Default value: prefer not to say
channel ● String
The identifier for the submission channel of the customer creation request, used in conjunction with source to precisely identify the customer device and operating environment. Valid values are:
  • ShopperApp_IOS: Shopper App on iOS
  • ShopperApp_Android: Shopper App on Android
  • EC_Web: PC web browsers
  • EC_H5: Mobile HTML5 web pages
preregisteredAccountStrategy ● String
The logic for handling pre-registered accounts. Valid values are:
  • send_invite_email: Keep the account unactivated and send an activation email to the customer.
  • suppress_invite_email: Keep the account unactivated and do not send any activation email to the customer.
Default value: send_invite_email
attributes ● [ExtAttributesInput]
A list of custom customer attributes (formatted as key-value pairs), used to collect additional business information during registration, such as invitation codes and custom form fields. Maximum size: 10
More
Map
CustomerCreateInput
Was this article helpful to you?