question

seth avatar image
seth asked seth commented

Creating Variable Priced Items with Item Group Internal Server Error

I'm trying to create a variable priced item and I'm getting an internal server error response. I'm thinking that it has something to do with the "itemGroup" but I'm not sure what could be the issue because this code has been working for years.


If you can take a look at the json and let me know if you see anything obviously wrong I would really appreciate it.


I verified that the "itemGroup" is in clover and here is the object returned by the API:

{
   "id": "5JF06437886P6",
   "name": "Test Matrix Variable Price"
}



Here is a sample Item request:

{
  "items": [
    {
      "code": "990000180001",
      "unitName": "Each",
      "alternateName": "T M V Ea RD",
      "price": 0,
      "sku": "990000180001",
      "name": "Test Matrix Variable Price",
      "isRevenue": true,
      "defaultTaxRates": false,
      "hidden": false,
      "priceType": "VARIABLE",
      "cost": null,
      "itemGroup": {
        "id": "5JF06437886P6"
      }
    },
    {
      "code": "990000180002",
      "unitName": "Case",
      "alternateName": "T M V Cs RD",
      "price": 0,
      "sku": "990000180002",
      "name": "Test Matrix Variable Price",
      "isRevenue": true,
      "defaultTaxRates": false,
      "hidden": false,
      "priceType": "VARIABLE",
      "cost": null,
      "itemGroup": {
        "id": "5JF06437886P6"
      }
    }
  ]
}




Inventory
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

·
Dan avatar image
Dan answered seth commented

Looks like the /v3/merchants/{mId}/bulk_items endpoint does not support creating more than one item with the same item group. I assume this is a bug.

1 comment
10 |2000

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

seth avatar image seth commented ·

Should I create them one at a time then?

0 Likes 0 ·

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