|
IAccountAddNewAccount Method
|
Adds a new account.
"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.APIAssembly: Severa.SOAP.API (in Severa.SOAP.API.dll) Version: 1.0.0+9acb7434aeb2855fb928fe129dfe34575a6d8fd4
Syntax Account AddNewAccount(
Account accountInfo,
Company companyInfo,
Address addressInfo,
Contact contactInfo
)
Function AddNewAccount (
accountInfo As Account,
companyInfo As Company,
addressInfo As Address,
contactInfo As Contact
) As Account
Parameters
- accountInfo Account
- Account entity, which contains account 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.
Optional data members ignored during insert:
- LanguageCode: Ignored.
- CurrencyCode: Ignored.
- CompanyGUID: Ignored.
- companyInfo Company
- Company information.
Mandatory data members:
- Name: The same name should be used for Account and Company.
Default values for optional members:
- LanguageGUID: If none provided, organization's language.
- Timezone: If none provided, organization's time zone.
- addressInfo Address
- Account billing address information, optional.
- contactInfo Contact
- Account contact information, optional.
Return Value
AccountAccount object.
Exceptions 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.
If account already exists, and contact information has GUID, this will update the existing contact information.
It is not possible to delete existing contact information with this operation.
See Also