Click or drag to resize

ICustomerAddNewCustomer Method

Adds a new customer (account and company). "Account" in Visma Severa consists internally of Account and Company entities. When inserting a new account, both of these need to be handled.

Namespace: Severa.API
Assembly: Severa.SOAP.API (in Severa.SOAP.API.dll) Version: 1.0.0+9acb7434aeb2855fb928fe129dfe34575a6d8fd4
Syntax
Customer AddNewCustomer(
	Customer customer
)

Parameters

customer  Customer
Customer entity, which contains account and company information.

Mandatory data members:

  • Name.
  • IsInternal: This data member can't contain value.

Default values for optional members:

  • IsActive: True by default, cannot be disabled.
  • AccountOwnerUserGUID: If none provided, the user doing the insert.
  • LanguageGUID: If none provided, organization's language.
  • CurrencyGUID: If none provided, organization's currency.
  • Timezone: If none provided, organization's time zone.

Optional data members ignored during insert:

  • LanguageCode: Ignored.
  • CurrencyCode: Ignored.
  • CompanyGUID: Ignored.

Return Value

Customer
A Customer object.
Exceptions
ExceptionCondition
AuthenticationFailureExceptionThe caller could not be authenticated.
GeneralFailureExceptionAny other fault.
Remarks

If an account already exists with the same number or same name (in that priority), the existing account will be updated.

If account already exists and has only one billing address, the billing address will be updated if given. It is not possible to remove existing address information with this operation.

See Also