Skip to main content

CustomerInput

Input fields for creating a new customer account.

Contains the essential customer information needed to create a new customer profile in the system. All fields are validated for proper format and length constraints.

input CustomerInput {
firstName: String
middleName: String
lastName: String
gender: Gender
email: String
phone: String
mobile: String
dateOfBirth: String
mailingList: YesNo
primaryLanguage: String
parentId: Int!
}

Fields

CustomerInput.firstName ● String scalar

Given name of the customer.

Primary name used for personal identification and communication. Maximum length of 30 characters.

CustomerInput.middleName ● String scalar

Middle name or initial of the customer.

Additional name component used for formal identification when available. Maximum length of 20 characters.

CustomerInput.lastName ● String scalar

Family name of the customer.

Surname used for formal identification and complete name display. Maximum length of 50 characters.

CustomerInput.gender ● Gender enum

Gender identity of the customer.

Used for personalization and communication preferences. Respects privacy preferences and is not required for account functionality.

CustomerInput.email ● String scalar

Primary email address for digital communication.

Main contact email used for account notifications, password resets, and business communications. Must be unique and in valid email format.

CustomerInput.phone ● String scalar

Primary phone number for voice communication.

Landline or office phone number used for business communications and account verification. Maximum length of 30 characters.

CustomerInput.mobile ● String scalar

Mobile phone number for direct communication.

Cell phone number used for SMS notifications, two-factor authentication, and urgent communications. Maximum length of 30 characters.

CustomerInput.dateOfBirth ● String scalar

Date of birth for age verification and personalization.

Used for age-restricted features, birthday communications, and demographic analysis. Must be in the past and in YYYY-MM-DD format with exactly 10 characters.

CustomerInput.mailingList ● YesNo enum

Marketing communication subscription preference.

Indicates whether the customer has opted in to receive marketing emails, newsletters, and promotional communications.

CustomerInput.primaryLanguage ● String scalar

Preferred language for user interface and communications.

Two-character language code (e.g., 'EN', 'NL', 'DE') used for localizing the user interface and determining the language for automated communications. Must be exactly 2 characters.

CustomerInput.parentId ● Int! non-null scalar

Parent usergroup identifier for organizational placement.

References the usergroup that will contain this customer in the organizational hierarchy. Used for permission inheritance and customer segmentation.

Member Of

customerCreate mutation