question

hadi avatar image
hadi asked David Marginian Deactivated edited

Can't Bulk create inventory Items

HI! I am trying to create multiple items using the create multiple items endpoint https://sandbox.dev.clover.com/v3/merchants/mid/bulk_items.

But it keeps giving me this error.

{

"message": "Item group id not specified"

}


I do not want to add it to any item group I want to create multiple products similar to how I create single inventory item.

Please guide me on how to do that.

REST APIInventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

Your request:

{
   "items":[
      {
         "hidden":"false",
         "itemGroup":{
            
         },
         "defaultTaxRates":"true",
         "isRevenue":"false",
         "canonical":{
            
         },
         "itemStock":{
            "item":{
               
            },
            "quantity":11
         },
         "name":"dee",
         "price":7,
         "sku":"1111"
      }
   ]
}

A working request:

{
   "items":[
      {
         "name":"Some Item 7",
         "price": 500
      },
      {
         "name":"Some Item 8",
         "price": 500
      }
   ]
}

Don't pass an empty itemGroup or any other empty objects that you don't require.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community