productlist.nv Get productlist

GET {{host}}/productlist.nv?keyword=TP1,TP2

Get product list

Retrieve the current list of products in Netvisor with the resource productlist.nv. You can use parameters for example keyword, when the search is mabe by product name and product code. Parameter is optional.

If product(s) already exist in Netvisor, next step is to retrieve sales invoice.

If product(s) is not found, it is created using resource product.nv.

If product exist but details are different in Netvisor, edit existing product using resource product.nv and use method edit. For editing the Netvisor id of the product is needed. You got that from the first request productlist.nv.

<Product>
        <NetvisorKey>10</NetvisorKey>
        <ProductCode>TP2</ProductCode>
        <Name>Test Product 2</Name>
        <UnitPrice>50,00</UnitPrice>
        <UnitGrossPrice>62,00</UnitGrossPrice>
        <ProductGroupID />
        <ProductGroupDescription />
        <Uri>https://isvapi.netvisor.fi/getproduct.nv?id=10</Uri>
</Product>

Request Params

KeyDatatypeRequiredDescription
changedsincenullFilters result to contain only products having changed after given time, time in format yyyy-MM-ddTHH:mm:ss
keywordstringFilters result to products that include given text / value in product name or product code.
publishednullValue 1 if published products are wanted in the response and 0 if not.
unpublishednullValue 1 if unpublished products are wanted in the response and 0 if not.
deletednullValue 1 if deleproducts are wanted in the response and 0 if not. If the parameter is not given, deleted products are returned. If given, also published or unpublished should be given.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
User-Agentstring
X-Netvisor-Authentication-PartnerIdstringEnvironmentin muuttuja
X-Netvisor-Authentication-CustomerIdstringEnvironmentin muuttuja
X-Netvisor-Interface-Languagestring
X-Netvisor-Authentication-TimestampstringMuodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi
X-Netvisor-Organisation-IDstringY-tunnus annetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi
X-Netvisor-Authentication-SenderstringCollectionin muuttuja
X-Netvisor-Authentication-TransactionIdstringMuodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi
X-Netvisor-Authentication-MACHashCalculationAlgorithmstring
X-Netvisor-Authentication-MACstringMuodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi