For NonInventory item type we are not getting itemID

akkysterakkyster Member Posts: 23

When creating non_inventory type of item via API and giving the Quantity as well. We are getting below error but the item is creating successfully. So we are not getting the created itemID over here.

Is there any way to get itemID?

PUT/ https://{{host}}/API/Account/{{accountID}}/Item.json

Request body

{

 "description": "Acura NSX GT3 EVO5",

 "manufacturerSku": "",

 "defaultCost": -99999999.99,

 "serialized": true,

 "ean": "",

 "itemType": "non_inventory",

 "Prices": {

  "ItemPrice": [

   {

    "amount": "0",

    "useType": "Default"

   },

   {

    "amount": "0",

    "useType": "MSRP"

   },

   {

    "amount": "0",

    "useType": "Online"

   }

  ]

 },

 "ItemShops": {

  "ItemShop": [

   {

    "shopID": "1",

    "qoh": "2"

   }

  ]

 }

}

Response

{

    "httpCode": "400",

    "httpMessage": "Bad Request",

    "message": "Inventory not added. 'qoh' cannot be updated for items that are itemType: non_inventory",

    "errorClass": "InventoryNotAddedForNonInventoryItem"

}

1 comment

Sign In or Register to comment.