Product and inventory guide
Products and inventory – use case guide
This guide explains how to keep Netvisor's product register (tuoterekisteri) in sync with your own system and how to read and update inventory (varasto) through the API. Products are the basis for sales invoice lines, so a correctly maintained product card (tuotekortti) also determines the default prices, VAT rate and accounts used on invoices. For element-level details, see the API reference.
The Finnish UI term is shown in italics after the English description, for example product group (Tuoteryhmä).
Rackbeat inventory management: if the company uses Netvisor's Rackbeat inventory management (Netvisor varasto by Rackbeat), the product and inventory resources in this guide do not apply. Use the Rackbeat API instead.
Resources
Area | Resource | Method | Purpose |
|---|---|---|---|
Products | GET | List and search products | |
GET | Get the full details of one or more products | ||
GET | Get extended product details in pages | ||
POST | Create or update a product | ||
GET | List product groups (tuoteryhmät) | ||
GET | Get product attachments and images | ||
Structured products | GET | Get the structured product list (rakenteellinen tuotelista) for a webshop | |
GET | Get images of structured products | ||
Inventory | GET | List inventories (varastot) and their shelves | |
GET | Get product balances by inventory (tuotesaldot varastoittain) | ||
POST | Import an inventory event (varastotapahtuma) | ||
GET | Get inventory reports (varastoraportit) |
Use case: find a product
Search the product list
productlist.nv returns each product's Netvisor key, product code, name, unit price both excluding VAT (UnitPrice) and including VAT (UnitGrossPrice) with 12 decimals, product group (with the full group hierarchy) and a Uri for fetching the full details. Several parameters can be used at the same time:
Parameter | Use |
|---|---|
| Products whose name or product code contains the given text. |
| Products changed after the given time ( |
| 1 = include published / unpublished products, 0 = exclude them. |
| 1 = return deleted products, 0 = exclude deleted products. If the parameter is not used, deleted products are also returned. |
Get full product details
getproduct.nv returns the full product: prices, accounts, inventory details, dimensions, weight and package information. Identify the products with one of:
id(one Netvisor key) oridlist(up to 500 Netvisor keys)code(one product code) orcodelist(up to 500 product codes)eancode(primary or secondary EAN code).
replyoption 1 returns only active products and 2 only published products. showsubproducts=1 adds the product structure (parent and child products).
Product codes are not unique. Netvisor allows several products with the same product code. Keep this in mind when you search, link or update products by code; the Netvisor key always identifies one product.
Extended product details
extendedproductlist.nv returns product details in pages (page, productsonpage), including translations, prices, purchase information, storage, dimensions, sub-products, images and attachments. Optional sections are selected with the replyoptions bitmask. Without productnetvisorkeys, only published, active products are returned; unpublished products can be fetched by giving their Netvisor keys, and deleted products are never returned.
Use case: create or update a product
product.nv creates a product (method=add) or updates one (method=edit, with the product's Netvisor key in id). The response returns the product's Netvisor key in InsertedDataIdentifier. Find the key of an existing product with productlist.nv.
If
methodis missing or the product to be updated is not found, the API returnsINVALID_DATAwith an explanation.useonlyexistingdimensions=1prevents Netvisor from creating new dimension names and dimension items automatically. The call then returns an error if a given dimension does not exist.Extended product management (laajennettu tuotehallinta): new products can be imported through the API, but updating products is not supported for companies using extended product management.
A minimal new product looks like this:
Base information (productbaseinformation)
Element | Netvisor UI name | Notes |
|---|---|---|
| Tuotekoodi | Product code, max 50 characters. |
| Tuoteryhmä | Product group by name. Required. The product is added to the group if it exists; otherwise the group is created. |
| Tuotteen nimi | Product name, max 200 characters. Required. |
| Kuvaus | Description. |
| Yksikköhinta | Unit price. |
| Yksikkö | Unit, max 50 characters. Created if it does not exist; otherwise the existing unit is used. |
| Hankintahinta | Purchase price. |
| Tullinimike | Customs tariff heading. |
| Provisioprosentti | Commission percentage. |
| – | 1 = active, 0 = inactive. Required. |
| Myyntituote | 1 = sales product, 0 = not a sales product. Required. |
| Varastoitava | 1 = stocked product. |
| Eräkäsittely | Batch handling type, see below. |
| Alkuperämaa | Country of origin, ISO-3166. |
| Ensisijainen / toissijainen EAN-koodi | The |
| Hälytysraja | Inventory alert limit. |
Batch handling types (inventorybatchlinkingmode):
Value | Netvisor UI name |
|---|---|
1 | No batch handling (Ei eräkäsittelyä) |
2 | Manual batch selection (Manuaalinen erävalinta) |
3 | Newest first by delivery date (Toimituspäivän mukaan nuorimmat ensin) |
4 | Oldest first by delivery date, FIFO (Toimituspäivän mukaan vanhimmat ensin) |
5 | Newest first by expiry date (Viimeisen käyttöpäivän mukaan uusimmat ensin) |
6 | Oldest first by expiry date (Viimeisen käyttöpäivän mukaan vanhimmat ensin) |
7 | Newest first by manufacture date (Valmistuspäiväyksen mukaan uusimmat ensin) |
8 | Oldest first by manufacture date (Valmistuspäiväyksen mukaan vanhimmat ensin) |
Accounting (productbookkeepingdetails)
Element | Netvisor UI name | Notes |
|---|---|---|
| Alv-kanta | Default VAT rate. Required. If the rate does not exist in Netvisor, an error is returned. |
| Kotimaan myyntitili | Domestic sales account. |
| EU-myyntitili | EU sales account. |
| Yhteisön ulkopuolisen myynnin tili | Sales account for sales outside the EU. |
Weight, package, dimensions and custom fields
Element | Netvisor UI name | Notes |
|---|---|---|
| Nettopaino / Bruttopaino | Net and gross weight. |
| – | Unit of the net and gross weight: |
| – | Package width, height and length in centimetres. |
| Laskentakohde | Default dimension. The dimension name (laskentakohdeotsikko) and item are created if needed. When |
| Lisätietokentät | Custom fields: |
Weight fields: use
productnetweight,productgrossweightandproductweightunit. The olderunitweightelement still works for backwards compatibility, but it is not recommended: in the UI, the weight units of all existing products change to kilograms and the weight is shown in the net weight field.
Use case: read inventory balances
Inventories
getinventoryplaces.nv returns the company's active inventories (varastot) with their Netvisor keys, names and shelves. You need the inventory keys or names when filtering balances and importing inventory events.
Balances by inventory
inventorybywarehouse.nv returns product balances per inventory. Filter with:
Parameter | Use |
|---|---|
| One product or a comma-separated list of products (Netvisor keys). |
| One inventory, by Netvisor key or name. |
| Products of one vendor. |
| Balances changed after the given time. |
| 1 = only products below their inventory alert limit (hälytysraja). |
| Products in one product group. |
For example, inventorybywarehouse.nv?inventoryplaceid=321&limitunderalertlimit=1 returns all products below the alert limit in the inventory with the key 321.
The response contains, for each product and inventory:
Element | Netvisor UI name | Meaning |
|---|---|---|
| Varattu | Reserved from this inventory. |
| Tulossa | Ordered to this inventory (incoming). |
| – | Open balance in this inventory, excluding reserved and incoming quantities. |
| – | The same figures for the product across all inventories. |
For more product details, use getproduct.nv with the product's Netvisor key.
Use case: import an inventory event
warehouseevent.nv imports one inventory event (varastotapahtuma) with one or more lines. The whole event is saved at once: if any line fails validation, the entire request is rejected. Inventory management must be in use in the company, and the API user needs write access.
Event header
Element | Netvisor UI name | Notes |
|---|---|---|
| Viite | Reference, max 50 characters. Required. |
| Kuvaus | Description of the event. |
| Toimitustapa | Must match a delivery method defined in Netvisor. |
| Toimittaja | Vendor, |
Event lines
Element | Netvisor UI name | Notes |
|---|---|---|
| – | Must match an event type defined in Netvisor, for example Hankinta, Myynti, Inventointi, Korjaus, Varastosiirto or Valmistus. |
| Tuote |
|
| Varasto | Inventory by name, which must match the inventory's description field in Netvisor, or by Netvisor key with |
| Kuvaus | Line description. |
| Kappalemäärä | Quantity. |
| Yksikköhinta | Unit price excluding VAT. |
| Päiväys | Date of the event, |
| Tila | See below. |
| Netvisor UI status | Meaning |
|---|---|---|
| Avoin | Shown in orders. |
| Käsitelty | Shown in inventory. |
| Ohitettu | Bypassed. |
Use case: inventory reports
warehousereport.nv returns one of three reports, selected with the required report parameter:
| Content |
|---|---|
| Inventory amounts per product, with a breakdown per inventory. |
| Sales-side inventory events grouped by sales invoice or sales order. |
| Purchase-side inventory events grouped by purchase order. |
The report resource requires inventory management, structured products and purchase order handling to be in use in the company.
Use case: structured products for a webshop
If the company uses structured products (rakenteelliset tuotteet), webshopproductlist.nv returns the product catalogue as configured for the webshop: main products, variations, product groups, prices, images, attributes and stock balances. Use limitChangedSince to fetch only changes, and the limit* and product group parameters to narrow the result. If structured products are not in use, the request is rejected.
webshopproductimages.nv returns the images of one product (identifier = the product's Netvisor key). For a main product, the single main image is returned; for a variation, all linked images.
Product attachments and images of regular products are fetched with getproductattachment.nv and getproductimage.nv. The attachment keys are available from extendedproductlist.nv.
Glossary: English – Finnish
English | Finnish (Netvisor UI) |
|---|---|
Product register | Tuoterekisteri |
Product / product card | Tuote / tuotekortti |
Product code | Tuotekoodi |
Product group | Tuoteryhmä |
Sales product | Myyntituote |
Stocked product | Varastoitava tuote |
Extended product management | Laajennettu tuotehallinta |
Structured products | Rakenteelliset tuotteet |
Purchase price | Hankintahinta |
Customs tariff heading | Tullinimike |
Country of origin | Alkuperämaa |
Batch handling | Eräkäsittely |
Inventory alert limit | Hälytysraja |
Inventory | Varasto |
Inventory event | Varastotapahtuma |
Reserved / incoming | Varattu / tulossa |
Purchase, sale, stocktaking, correction, transfer, manufacturing | Hankinta, myynti, inventointi, korjaus, varastosiirto, valmistus |