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" } } ] }