What is the use of customer code can I leave it blank?
The customer code is use to recall detail information for returning customers and therefore is a required field. You can however set the preference to Auto generate the customer code. Please remember that using a name may make it easier to find a returning customers. You could for instance use the first letter of Given name and the Family name as a code.