My Products
Help
Anonymous
Not applicable

InventoryIssue allocations to KitAssembly stockcomponents

by Anonymous

Greetings,

 

1. Trying to post
InventoryIssue POST  /controller/api/v1/inventoryissue
to create allocation to kitassembly product allocations but it wont go to StockComponentLines allocations. See image 1. how to produce same with client

 

 

 

2. KitAssembly with client added data Color red for highlighted spots

GET https://integration.visma.net/API/controller/api/v1/kitassembly/P/000009
{
  "type": "P",
  "refNo": "000009",
  "status": "H",
  "hold": true,
  "date": "2021-02-04T00:00:00",
  "postPeriod": "202102",
  "itemID": "30000300     ",
  "revision": "1",
  "description": "string",
  "warehouse": "1         ",
  "location": "1         ",
  "uoM": "KPL",
  "quantity": 81,
  "createdDateTime": "2020-11-13T08:25:14.877",
  "lastModifiedDateTime": "2021-02-16T06:56:54.79",
  "stockComponentLines": [
    {
      "lineNbr": 3,
      "itemId": "300202       ",
      "description": "PITO-putki 300x6,3mm",
      "location": "1         ",
      "uoM": "KPL",
      "quantity": 81,
      "unitCost": 5.84,
      "componentQty": 1,
      "minComponentQty": 0,
      "allowComponentQtyVariance": false,
      "maxComponentQty": 0,
      "allowComponentSubstitution": true,
      "disassemblyCoeff": 1,
      "allocations": [
        {
          "lineNbr": 6,
          "location": {
            "id": "1",
            "name": "Normaali"
          },
          "lotSerialNumber": "100012",
          "quantity": 81,
          "uom": "KPL",
          "expirationDate": "2021-02-03T00:00:00"
        }
      ]
    },
    {
      "lineNbr": 4,
      "itemId": "300102       ",
      "description": "Pito-laippa 20x215, S355",
      "location": "1         ",
      "uoM": "KPL",
      "quantity": 81,
      "unitCost": 7.2,
      "componentQty": 1,
      "minComponentQty": 0,
      "allowComponentQtyVariance": false,
      "maxComponentQty": 0,
      "allowComponentSubstitution": true,
      "disassemblyCoeff": 1,
      "allocations": [
        {
          "lineNbr": 12,
          "location": {
            "id": "1",
            "name": "Normaali"
          },
          "lotSerialNumber": "100006",
          "quantity": 81,
          "uom": "KPL"
        }
      ]
    },
    {
      "lineNbr": 5,
      "itemId": "302101       ",
      "description": "Pito-lenkki, raaka MEIN",
      "location": "1         ",
      "uoM": "KPL",
      "quantity": 81,
      "unitCost": 37,
      "componentQty": 1,
      "minComponentQty": 0,
      "allowComponentQtyVariance": false,
      "maxComponentQty": 0,
      "allowComponentSubstitution": true,
      "disassemblyCoeff": 1,
      "allocations": [  // How to add allocations to here. This was added from client using image 1. methods
        {
          "lineNbr": 25,
          "location": {
            "id": "1",
            "name": "Normaali"
          },
          "lotSerialNumber": "208116",
          "quantity": 10,
          "uom": "KPL"
        }
      ]
    }
  ],
  "kitAllocations": [ // These are image 2. lines which are wrong place
    {
      "lineNbr": 2,
      "location": {
        "id": "1",
        "name": "Normaali"
      },
      "lotSerialNumber": "3003002",
      "quantity": 60,
      "uom": "KPL"
    },
    {
      "lineNbr": 7,
      "location": {
        "id": "1",
        "name": "Normaali"
      },
      "lotSerialNumber": "100012",
      "quantity": 1,
      "uom": "KPL"
    },
    ....
  ]
}

 

1 REPLY 1
Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

Inventory does nos have kitAssembly or stockComponent allocations, what are you trying to do via that endpoint?

As far as we can see, both your images are from kitAssembly, is this correct?

 

Kitassembly does not have stockComponent allocations exposed for post/put via the API currently:

2021-02-16 13_50_48-Visma.net Integrations Documentation.png

Please create a post in the Ideas section of the forum. Please describe your use case as well as possible.

This allows others to vote for your suggeston, which in turn influences the assessment and implementation process.