Multivers Extended V3 - Create Customer
This document describes the process of creating a new customer in the Multivers Extended V3 ERP system via the App4Sales platform. The process is initiated when a new customer is created in the App4Sales app and submitted to the backoffice.
Trigger & Permissions
The customer creation process is triggered by the InsertOrUpdateCustomerCommand, which is enabled when the connector settings CreateCustomer or EditCustomer are active. The command is executed when a new customer is saved in the App4Sales app.
Payload Mapping
The following tables describe the mapping of App4Sales customer data to the Multivers Extended V3 ERP system.
Customer / Debtor
App4Sales Field | Source Field (API/Excel/DB) | Logic/Notes |
CustomerCode | Derived | If the setting |
CustomerName |
| Mapped to the |
VatNumber |
| Mapped to the |
Currency |
| Mapped to the |
PaymentCondition |
| The payment condition ID is mapped to the |
PriceList |
| The price list ID is mapped to the |
Discount |
| Mapped to the |
Representative |
| The sales representative ID is mapped to the |
Organisation
App4Sales Field | Source Field (API/Excel/DB) | Logic/Notes |
CustomerName |
| Mapped to the |
LanguageCode |
| Mapped to the |
Addresses
App4Sales Field | Source Field (API/Excel/DB) | Logic/Notes |
Street |
| Mapped to the |
HouseNumber |
| Mapped to the |
PostalCode |
| Mapped to the |
City |
| Mapped to the |
Country |
| Mapped to the |
Contact Persons
App4Sales Field | Source Field (API/Excel/DB) | Logic/Notes |
FullName |
| Mapped to the |
FirstName |
| Mapped to the |
LastName |
| Mapped to the |
| Mapped to the | |
Phonenumber |
| Mapped to the |
MobileNumber |
| Mapped to the |
Validation & Defaults
The customer creation process relies on a template-based approach. A template debtor and a template organisation, specified in the connector settings (InsertCustomerTemplate), are used to create new customers. If these templates are not found, the process will fail.
The VAT scenario is determined based on the customer's visiting address country and the connector settings for home country, EU, and outside EU VAT scenarios. If these settings are not configured, a fallback logic is used to determine the VAT scenario.
Response & Error Handling
After a customer is successfully created, the ERP returns a new customer code. This code is then stored in the App4Sales database and associated with the customer. If any errors occur during the process, an exception is thrown and logged. The error message is then displayed to the user in the App4Sales app.
Related Settings & Prerequisites
Setting | Description |
CreateCustomer | Enables the creation of new customers. |
EditCustomer | Enables the editing of existing customers. |
InsertCustomerTemplate | The code of the template debtor to use when creating new customers. |
CreateDebtorNumberOnThePortal | If enabled, the connector will generate a new customer code based on a configured number range. |
HomeCountry | The home country code for determining the VAT scenario. |
VatScenarioCodeHomeCountry | The VAT scenario code for the home country. |
VatScenarioCodeEU | The VAT scenario code for countries within the EU. |
VatScenarioCodeOutsideEU | The VAT scenario code for countries outside the EU. |