ItemVendorNum update

patmadiganpatmadigan Member Posts: 11

I can't seem to consistently update the Item.ItemVendorNums via the API. I had it working to some extent, but I was getting duplicate vendorID errors, so it was only working the first time.

Now, it doesn't update the ItemVendorNums at all, and I can't figure out what's wrong with my syntax. I am able to update the other Item Fields.

This is what I'm sending with the Item. I tried excluding the itemVendorNumID and timeStamp, thinking that maybe the 0 and null where breaking this, but that made no apparent difference. The itemID and vendorID values are correct.

Suggestions?

"ItemVendorNums":

{"itemVendorNum":[

{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"56897","vendorID":24},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"LSI CIT45ACPFSP","vendorID":150},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"CIT45FSP","vendorID":54},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"W355-80074","vendorID":230},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"CIT9MMFSP","vendorID":296}

]}


Here is the full update (sanitized), in case this is actually breaking somewhere else.

"{"ItemShops":{"ItemShop":[{"M":{"layaways":0,"specialorders":0,"workorders":0},"itemID":1063,"itemShopID":4283,"shopID":1,"timeStamp":"2020-01-14T20:45:34+00:00"}]},"ItemVendorNums":{"itemVendorNum":[{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"56897","vendorID":24},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"LSI CIT45ACPFSP","vendorID":150},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"CIT45FSP","vendorID":54},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"W355-80074","vendorID":230},{"itemID":1063,"itemVendorNumID":0,"timeStamp":null,"value":"CIT9MMFSP","vendorID":296}]},"Note":{"note":"test"},"Prices":{"ItemPrice":[{"amount":541.9900,"useType":"Default","useTypeID":1},{"amount":599.0000,"useType":"MSRP","useTypeID":2},{"amount":0,"useType":"MAP","useTypeID":3},{"amount":505.2900,"useType":"Web","useTypeID":4}]},"categoryID":40,"createTime":"2008-11-13T07:09:23","customSku":"1234567890","defaultCost":500.00,"defaultVendorID":296,"description":"This is a Test Item\\" Features this and that ","discountable":true,"ean":"","itemID":1063,"itemType":"serialized","manufacturerID":155,"manufacturerSku":"CIT45FSP","serialized":true,"systemSku":210000001063,"tax":true,"timeStamp":"2020-01-14T14:57:22","upc":""}"


thanks,

Pat

1 comment

Sign In or Register to comment.