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
Key | Datatype | Required | Description |
---|---|---|---|
changedsince | null | Filters result to contain only products having changed after given time, time in format yyyy-MM-ddTHH:mm:ss | |
keyword | string | Filters result to products that include given text / value in product name or product code. | |
published | null | Value 1 if published products are wanted in the response and 0 if not. | |
unpublished | null | Value 1 if unpublished products are wanted in the response and 0 if not. | |
deleted | null | Value 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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
User-Agent | string | ||
X-Netvisor-Authentication-PartnerId | string | Environmentin muuttuja | |
X-Netvisor-Authentication-CustomerId | string | Environmentin muuttuja | |
X-Netvisor-Interface-Language | string | ||
X-Netvisor-Authentication-Timestamp | string | Muodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi | |
X-Netvisor-Organisation-ID | string | Y-tunnus annetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi | |
X-Netvisor-Authentication-Sender | string | Collectionin muuttuja | |
X-Netvisor-Authentication-TransactionId | string | Muodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi | |
X-Netvisor-Authentication-MACHashCalculationAlgorithm | string | ||
X-Netvisor-Authentication-MAC | string | Muodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi |