Resource: product.nv

HTTP-method: POST

Note! If you are using Rackbeat inventory management in Netvisor, the API documentation can be found here: https://support.netvisor.fi/fi/support/solutions/articles/77000554491-rackbeat-stoplight-rajapinta
For extended product management, a new product can be imported via the interface as described below, but updating products is not supported with extended product management.

Querystring parameters:

Parameter nameOccursDescriptionExample
method1add or editadd 
id0..1Must be included if method is edit, defines the product to update123
checkdimensionvalidityperiod
0...1Enables checking the validity period against the voucher date. Import will fail if the cost object or cost object header is not valid on the voucher date.

1 = check enabled
1
useonlyexistingdimensions
0...1Prevents automatic creation of new cost object headers and cost objects. Returns an error if the given cost object does not exist.

1 = prevention enabled
1

If method has not been set or the product to be updated is not found with the id, an INVALID_DATA error with further details is returned. The id for the product to be updated can be obtained with the product list resource.
Product information can be accurately represented using new weight fields (productnetweight, productgrossweigh and productweightunit). It is recommended not to use the old product weight field (unitweight) anymore. The field can still be used for backward compatibility, but in the user interface, all existing product weight units will change to kilograms (kg) and be expressed in the net weight field.

The data to import is sent with the request as an XML with the following structure (POST data):

LevelElement nameType and lengthOccursDescriptionExample
RootrootAggr.1  
1productAggr.1  
2productbaseinformationAggr.1  
3productcodeString, max 50 characters0...1Product codeCC
3productgroupString1Product group name, product is added to the group if it exists. If it does not exist, it will be createdBooks
3nameString, max 200 characters1Name of the productCode Complete
3descriptionString0...1DescriptionSecond edition
3unitpriceNumeric1Price of a single unit42,5
Attr.typeString1Indicates whether the given price is gross or net.net
3unitString, max 50 characters0...1Unit of measurement, existing is used if found, otherwise new one is created.pc
3unitweightString0...1Product unit weight with two decimals. It is recommended not to use this weight field (unitweight) anymore, but to use new weight fields (productnetweight, productgrossweigh and productweightunit).1,00
3purchasepriceNumeric0...1Purchase price25
3tariffheadingString0...1Tariff headingCode complete
3comissionpercentageNumeric0...1Commission percentage11
3isactiveNumeric1Is product active, 0 = inactive / 1 = active1
3issalesproductNumeric1Is this a sales product, 0 = no / 1 = yes0
3inventoryenabledNumeric0...1Is the product in storage, 0 = no / 1 = yes1
3inventorybatchlinkingmodeNumeric0...1Product's batch processing type. Possible values:

No batch processing = 1
Manual batch selection = 2
Newest first by delivery date = 3
Oldest first by delivery date = 4 (FIFO)
Newest first by use-by date = 5
Oldest first by use-by date = 6
Newest first by manufacturing date = 7
Oldest first by manufacturing date = 8
4
3countryoforiginString0...1Country of originFI
Attr.typeString0...1Always ISO-3166ISO-3166
3primaryeancodeString0...1Product's primary EAN-code123456789012
Attr.typeString0...1Type of the EAN-code. The interface checks the format of the EAN-code according to the type.
any, ean8, ean13, code128.
ean13
3secondaryeancodeString0...1Product's secondary EAN-code12345689012
Attr
typeString
Type of the EAN-code. The interface checks the format of the EAN-code according to the type.
any, ean8, ean13, code128.
ean13
3inventoryalertlimitNumeric0...1Alert limit20,50
2productbookkeepingdetailsAggr.0...1  
3defaultvatpercentageNumeric1Vat rate, if the given tax rate is not found, an error is returned24
3defaultdomesticaccountnumberNumeric0...1Domestic sales account3000
3defaulteuaccountnumberNumeric0...1EU sales account3360
3defaultoutsideeuaccountnumberNumeric0...1Sales account outside the community3380
2productadditionalinformationAggr.0...1  
3productnetweightNumeric0...1Net weight11,2
3productgrossweightNumeric0...1Gross weight12,6
3productweightunitString0...1Net and gross weight unit: g, kg or tnkg
3dimensionAggr.0...1

4dimensionnameString1Cost object header name. Created if needed.Project
4dimensionitemString1Cost object. Created if needed.Project 1
4dimensionitemcodeString0...1Cost object code

(when this is given, the dimensionitem element is ignored)
DIMC-001
4dimensionitemnameString0...1Cost object name

(when this is given, the dimensionitem element is ignored)
Item Name 1
3productpackageinformationAggr.0...1  
4packagewidthNumeric1Package width in centimeters7,3
4packageheightNumeric1Package height in centimeters15,0
4packagelengthNumeric1Package length in centimeters36,1
2productcustomtagsAggr.0..1

3productcustomtagAggr.1...n

4tagnameString1Additional information field name.Date field
4tagvalueString1Additional information field value.2022-01-01
Attr.datatypeString1Additional information field type. date, text, decimal or enumdate
This article has been translated using an AI-based translation tool. The contents or wording of these instructions may differ from those in other instructions or in the software.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.