Magidoc

customerCreate
Mutation

Creates a new customer.

Arguments

#

input

Non-null

Fields required to create a customer.

Response

#

Returns CustomerCreate .

Example

#

    mutation ($input: UserCreateInput!) {
  customerCreate(input: $input) {
    accountErrors {
      field
      message
      code
    }
    user {
      id
      lastLogin
      externalId
      externalSource
      externalPayoutAccountId
      externalPayoutSource
      externalPayoutOnboardingUrl
      companyName
      email
      firstName
      lastName
      isStaff
      isActive
      note
      dateJoined
      lastStatusChangedAt
      personalPhone
      taxExemptCode
      vatIdentificationNumber
      numOrders
      isAssignable
      dashboardEmbeddingToken
    }
  }
}

  

3