Options
All
  • Public
  • Public/Protected
  • All
Menu

Module CreateCustomer

Creates a customer.

This is allowed when you are an employee, or by anonymous if the CustomerCanRegister (default true) is enabled.

Be sure to handle errors for registering, which could be (amongst others);

  • InvalidEmailAddress
  • EmailAddressInUse
  • NicknameInUse
  • FiscalIDInUse

Index

Properties

Optional AccountType

AccountType: UserAccountType

Is this a Standard/Basic/Incognito account?

default

Standard

Optional Associations

Associations: UserAssociations

Optional associations to other users, e.g. child, parent, neighbour, friend, colleague, ...

Optional AttachToOrder

AttachToOrder: undefined | false | true

Automatically attach the new customer to the order identified by OrderID.

default

true

Optional AutoLogin

AutoLogin: undefined | false | true

Set to true to automatically authenticate as this new user.

default

false

Optional OrderID

OrderID: undefined | number

Identifier for the order to automatically attach the new customer to (see AttachToOrder parameter). Entity type: Order

User

User: Customer