{"errors":{"options":["is invalid"],"name":["of Option is not unique"]}}

mbriggs
New Member
1 0 0

Hi,

I am trying to fix an old custom integration that broken when the changes went live. The documentation was clear on most of the issues, but this issue started happening on any update of existing products

The body of the example PUT request is pasted below, as you can see, the three options each have different names

{"product":{"vendor":"Brian  Barneclo","product_type":"Dell Laptop Skin","template_suffix":null,"options":[{"name":"Series"},{"name":"Screen Size"},{"name":"Model"}],"variants":[{"weight":0.15,"weight_unit":"lb","price":"30.0","inventory_management":null,"fulfillment_service":"notion","sku":"E7473653A823B2A4F569","option1":"XPS","option2":"13\"","option3":"9300"},{"weight":0.15,"weight_unit":"lb","id":"19378032803920","sku":"FE1D54C9CA0B280D250D","fulfillment_service":"notion","option1":"XPS","option2":"15\"","option3":"9560"},{"weight":0.2,"weight_unit":"lb","id":"19378032836688","sku":"66A5EC9C338D287267DB","fulfillment_service":"notion","option1":"XPS","option2":"13\"","option3":"9370"},{"weight":0.15,"weight_unit":"lb","id":"19378032902224","sku":"1A11FC6160DB81B46347","fulfillment_service":"notion","option1":"XPS","option2":"13\"","option3":"9365 2-in-1"},{"weight":0.15,"weight_unit":"lb","id":"19378032869456","sku":"DC19BBA0CA025B57EE1F","fulfillment_service":"notion","option1":"XPS","option2":"13\"","option3":"9350 9360"},{"weight":0.15,"weight_unit":"lb","id":"19378032771152","sku":"C5BE087FABFA9848802E","fulfillment_service":"notion","option1":"Precision","option2":"15\"","option3":"5520"},{"weight":0.15,"weight_unit":"lb","id":"19378032934992","sku":"84953D8F304C6925FD42","fulfillment_service":"notion","option1":"Latitude","option2":"14\"","option3":"E5430"},{"weight":0.15,"weight_unit":"lb","id":"19378032967760","sku":"6CB767B5E3DE68EF3CF2","fulfillment_service":"notion","option1":"Latitude","option2":"12.5\"","option3":"E6230"},{"weight":0.15,"weight_unit":"lb","id":"19378033000528","sku":"78199A3693DE38F4EF1F","fulfillment_service":"notion","option1":"Latitude","option2":"14\"","option3":"E6420 E6430"},{"weight":0.15,"weight_unit":"lb","id":"19378033033296","sku":"0A04268C97BD9940A5DC","fulfillment_service":"notion","option1":"Latitude","option2":"14\"","option3":"E7480 E7490"},{"weight":0.15,"weight_unit":"lb","id":"19378033066064","sku":"627C2E14BD1564128BFE","fulfillment_service":"notion","option1":"Latitude","option2":"14\"","option3":"E7450"},{"weight":0.15,"weight_unit":"lb","id":"19378033098832","sku":"16FE4895EB00235F7143","fulfillment_service":"notion","option1":"Latitude","option2":"14\"","option3":"E7470"},{"weight":0.15,"weight_unit":"lb","id":"19378033131600","sku":"3BE32C3A375974C8FE8E","fulfillment_service":"notion","option1":"5289","option2":"11\"","option3":"5289"},{"weight":0.15,"weight_unit":"lb","id":"19378033164368","sku":"5FCCBB87EEF01AD45E66","fulfillment_service":"notion","option1":"13 x 8.5","option2":"11\"","option3":"13 x 8.5"},{"weight":0.15,"weight_unit":"lb","id":"19378033197136","sku":"2EF16DD14B3A735C426A","fulfillment_service":"notion","option1":"14.75 x 9.25","option2":"11\"","option3":"14.75 x 9.25"},{"weight":0.15,"weight_unit":"lb","id":"19378033229904","sku":"22829C509CDE9FF14FAC","fulfillment_service":"notion","option1":"10 x 6.25","option2":"11\"","option3":"10 x 6.25"}],"id":"1908394655824"}}

 

0 Likes