My Products
Help
zunnu
CONTRIBUTOR **

Update ComponentPartItem

by zunnu

Hello,

How can ComponentPartItem be updated?
I need to update price and attributes for ComponentPartItem but the request I make to "controller/api/v1/inventory/<productCode>" returns "Document not found". If I change the product to be FinishedGoodItem the request goes through.
Is there another endpoint for updating ComponentPartItem?

Here is the json im trying to send.

{
    "defaultPrice":
    {
        "value": 16.45
    },
    "attributeLines":
    [
        {
            "attributeId":
            {
                "value": "TEST"
            },
            "attributeValue":
            {
                "value": 3.1
            }
        }
    ]
}

 

5 REPLIES 5
Yıldırım
VISMA

by Yıldırım

Hello, this issue has been fixed in [Release Notes] - Visma.Net API 8.87.0 - 08.03.2022

 

Sigbjørn Eide
CONTRIBUTOR ***

by Sigbjørn Eide (Updated ‎09-03-2022 09:54 by Sigbjørn Eide )

Hi,

Just wanted to provide some feedback regarding this issue. The request that the thread starter provided does now seem to work for both ComponentPartItem and SubassemblyItem. It is now possible to update these items, but there are still issues regarding updating some fields on these items. I.e. the following request still returns an error: 

 

{
    "defaultIssueFrom": {
        "value": "1A"
    },
    "defaultReceiptTo": {
        "value": "1A"
    }
}

 

Response:

 

{
    "message": "No data for inventory item found"
}

 


It may seem like some problems are fixed, while the root cause is not? 

Hi,

We'll ave a look at this and get back to you, thank you for letting us know. 

by Magnus Johnsen

Hi,

A fix for this has been planned for version 8.87.0: 

Visma.net Financials API updates for version 8.87.0 (March 2022)

Release date for 8.87.0 version has been planned as 08/03/2022.

by Magnus Johnsen

Hi,

We can confirm that there seems to be an issue with updating ComponentPart Items.

So far, we have not found a workaround for this, we have opened a case with the developers and will get back to you when we have more information.