Customer register guide
Customer register – use case guide
This guide explains how to keep Netvisor's customer register (asiakasrekisteri) in sync with your own system: how to find customers, create and update them, and manage their offices and contact persons. Customer data is the basis for sales invoices, so a correctly maintained customer card (asiakaskortti) also determines how invoices are addressed, which language they use and how they are sent. For element-level details, see the API reference.
The Finnish UI term is shown in italics after the English description, for example customer code (Asiakaskoodi).
Resources
Resource | Method | Purpose |
|---|---|---|
GET | List and search customers | |
GET | Get the full details of one or more customers | |
POST | Create or update a customer | |
POST | Create or update a customer's office (toimipaikka) | |
POST | Add, update or delete a customer's contact person (yhteyshenkilö) | |
POST | Delete a customer |
Use case: find a customer
Search the customer list
customerlist.nv returns each customer's Netvisor key, name, customer code, business ID (for business customers), customer group and a Uri for fetching the full details.
Parameter | Use |
|---|---|
| Returns customers where the keyword is found in the name, customer number, business ID or c/o name. If keyword is given, changedsince is ignored. |
| Comma-separated list of up to 100 customer codes. Can be combined with |
| Customers changed after the given time ( |
| Customers whose email address matches. |
Get full customer details
Use the Netvisor key from the list with getcustomer.nv: id for one customer or idlist for up to 500 customers at once. Give exactly one of them.
The response always contains the customer's base information, e-invoice details, delivery details, contact details, contact persons, offices and additional information. Extra sections can be added with the replyoption bitmask; combine values by adding them up:
| Adds |
|---|---|
1 | Receivables turnover: average payment time and payment day in relation to the due date (myyntisaamisten kiertoajat) |
2 | Automatic reminders rule (Automaattiset muistutukset) |
4 | Custom fields (lisätietokentät) |
8 | Customer's default invoicing method ( |
16 | Additional contact person details: contact prohibition, title, position, address, country and language |
The Netvisor keys of the customer's offices and contact persons are also returned here. You need them for office.nv and contactperson.nv, and when linking a contact person or office to a sales invoice.
Use case: create or update a customer
customer.nv creates a customer (method=add) or updates one (method=edit, with the customer's Netvisor key in id). The response returns the customer's Netvisor key in InsertedDataIdentifier. Store it for later calls.
If method is missing or the customer to be updated is not found, the API returns INVALID_DATA with an explanation.
Updating a customer: send only the elements you want to update. Any element included in the message is updated, so an element you send with an empty value is cleared in Netvisor.
A minimal new business customer looks like this:
Base information (customerbaseinformation)
Element | Netvisor UI name | Notes |
|---|---|---|
| Asiakaskoodi | Customer code, max 50 characters. With |
| Y-tunnus / henkilötunnus | Business ID, or personal identity code for a private customer. |
| OVT-tunnus | Recipient's EDI identifier, only if it differs from the business ID. See below. |
| Asiakkaan nimi | Customer name, max 250 characters. |
| Nimen jatke | Name extension, max 250 characters. |
| Katuosoite, Osoitteen jatko, Postinumero, Postitoimipaikka | Billing address. |
| – | Country as an ISO-3166 code. Defaults to Finland. |
| Asiakasryhmä | Customer group by name. Created if it does not exist. |
| Puhelinnumero, Fax-numero, Sähköpostiosoite, www-osoite | Contact details. |
| – | 1 = active customer. |
| Henkilöasiakas | 1 = private customer. |
| Sähköpostilaskutusosoite | Must be a valid email address. Several addresses can be given separated with |
About organizationunitnumber. Use this element only for a fixed customer-specific value that the recipient requires on their e-invoices, for example a factory number. It is sent in Finvoice as BuyerOrganisationUnitNumber. Do not put the customer's e-invoice address here. The value is validated: it must be 12–17 digits, typically in the format 0037AAAAAAAABBBBB, where 0037 is the ISO 6523 code of the Finnish Tax Administration, AAAAAAAA is the business ID with its check digit but without the hyphen, and BBBBB is an optional organisation unit identifier of up to five digits.
E-invoicing (customerfinvoicedetails)
Element | Netvisor UI name | Notes |
|---|---|---|
| Verkkolaskuosoite | E-invoice address. Cannot be given without the operator. |
| Verkkolaskuoperaattori | Operator code. Must be one of the operators supported by Netvisor (verkkolaskuoperaattorit). Cannot be given without the address. |
The e-invoice address itself is not validated, but the operator must exist in Netvisor. Keep these details correct: sales invoices are sent to the e-invoice and email addresses on the customer card, and they cannot be given in the invoice message.
Delivery, contact and additional information
Element | Netvisor UI name | Notes |
|---|---|---|
| Toimipaikka | Delivery name and address. Creates an office on the customer card. |
| Yhteyshenkilö | Contact person's name. Saved in the UI's last name field (Sukunimi). For full contact person management, use |
| Laskun kieli | FI, EN or SE. Defaults to Finnish. This determines the language of the customer's sales invoices. |
| Tulostusmuoto | 1 = invoice + bank transfer form (Lasku + tilisiirto), 2 = invoice only (Lasku). |
| Oletusmaksuehto | Default payment term, |
| Oletusaputoiminimi | Default auxiliary business name, by Netvisor key or name. |
| Oletusmyyjä | Default seller's Netvisor key, available from salespersonnellist.nv. |
| Viitenumero | Valid reference number with check digit. |
| – | 1 = use an RF reference (RF-viite) in invoicing. |
| 1 = use the order's reference number in invoicing. | |
| Oletusviitteenne | Default "your reference". |
| Oletusteksti ennen laskurivejä / jälkeen laskurivien | Default invoice texts. |
| Sopimustunnus | Agreement identifier. |
| Viivästyskorkoprosentti | Penalty interest percentage. Use a comma as the decimal separator. |
| Tiliraja | Credit limit. |
| Muistutusten automaatiosääntö | Automatic reminder rule, by Netvisor key or name. |
| Factoring-tili | Factoring account, by Netvisor key or name. |
| Verotuskäsittely |
|
| 1 = use an EU-standard e-invoice. | |
| Perintäkielto | 1 = customer-specific collection prohibition. |
| Toimituskielto | 1 = customer-specific delivery prohibition. |
| Kommentti | Comment in the customer register, max 2,500 characters. |
| Oletuslaskentakohteet | Default dimensions. Dimension names and items are created if they do not exist. When |
Use case: manage offices
A customer can have several offices (toimipaikat), for example separate delivery or invoicing addresses. Offices are used when linking a sales invoice to a specific office.
office.nv adds an office to a customer (method=add, with the customer's Netvisor key in customerid) or updates an existing office (method=edit, with the office's Netvisor key in officeid). Office keys are returned by getcustomer.nv.
Element | Netvisor UI name | Notes |
|---|---|---|
| Toimipaikan nimi | Required, and can never be empty. |
| – | Phone and fax. |
| Toimipaikkatunnus | Office identifier. |
| Toimipaikan laskutussähköposti | |
| – | Postal address: street address, postcode, city and country (ISO-3166). |
| Käyntiosoite | Visiting address: street address, postcode, city and country (ISO-3166). |
| Verkkolaskutiedot | E-invoice address and operator. The address must be a valid EDI identifier (OVT) or IBAN, and the operator must be one of the operators supported by Netvisor. |
When editing an office, you can clear a value by sending the element empty. The office name cannot be cleared.
Use case: manage contact persons
contactperson.nv adds, updates or deletes contact persons on a customer card. The operation is add, edit or delete. The API reference documents method as a query parameter, and the message also contains a method element; give the same value in both.
Element | Netvisor UI name | Notes |
|---|---|---|
| Asiakas | The customer's Netvisor key, |
| The contact person's Netvisor key, | |
| – |
|
| Etunimi / Sukunimi | Required, max 100 characters each. |
| – | FI, EN or SE, |
| Puhelinnumero, Sähköpostiosoite | |
| – | Title. |
| Toimipaikka | The Netvisor key of the contact person's office. The value 0 clears it. |
| – | The Netvisor key of the contact person's position. The value 0 clears it. |
| Osoite | Street address, postcode, city and country (ISO-3166). |
Only add returns the new contact person's Netvisor key in InsertedDataIdentifier. Contact person keys of existing contact persons are returned by getcustomer.nv. A contact person can be linked to a sales invoice with the contactpersonid attribute of invoicingcustomeridentifier in salesinvoice.nv.
Use case: delete a customer
deletecustomer.nv deletes one customer identified by its Netvisor key in customerid. Find the key with customerlist.nv.
A customer can only be deleted if it has no invoicing history. If the deletion fails, the response explains why, for example that the customer has invoices.
Deleting a customer also removes its contact persons, dimension links and customer-specific price lists. The deletion either succeeds completely or has no effect.
Glossary: English – Finnish
English | Finnish (Netvisor UI) |
|---|---|
Customer register | Asiakasrekisteri |
Customer / customer card | Asiakas / asiakaskortti |
Customer code | Asiakaskoodi |
Customer group | Asiakasryhmä |
Business ID | Y-tunnus |
Personal identity code | Henkilötunnus |
Private customer | Henkilöasiakas |
EDI identifier | OVT-tunnus |
E-invoice address / operator | Verkkolaskuosoite / verkkolaskuoperaattori |
Email invoicing address | Sähköpostilaskutusosoite |
Office | Toimipaikka |
Contact person | Yhteyshenkilö |
Invoice language | Laskun kieli |
Default payment term | Oletusmaksuehto |
Credit limit | Tiliraja |
Collection prohibition | Perintäkielto |
Delivery prohibition | Toimituskielto |
Custom field | Lisätietokenttä |
Default dimensions | Oletuslaskentakohteet |