cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to use ReviseFixedPriceItem with variations

Hi , I am trying to update one item with ReviseFixedPriceItem , but i keep getting errors:

Schema XML request error: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

 

The sample data i am using with ReviseFixedPriceItem  using Nodejs and Python SDK, getting this error in both, i have verified the json:

{
   "Item":{
      "ItemID":"theItemID",
      "Variations":{
         "Variation":[
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"1",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"6.5"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            },
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"9",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"7"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            },
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"14",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"7.5"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            },
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"22",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"8"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            },
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"14",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"8.5"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            },
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"0",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"6"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            },
            {
               "StartPrice":{
                  "_currencyID":"USD",
                  "value":"52.98"
               },
               "Quantity":"0",
               "VariationSpecifics":{
                  "NameValueList":[
                     {
                        "Name":"US Shoe Size",
                        "Value":"9"
                     },
                     {
                        "Name":"Color",
                        "Value":"Black"
                     },
                     {
                        "Name":"Shoe Width",
                        "Value":"M"
                     }
                  ]
               }
            }
         ]
      }
   }
}

 

Can anyone provide me what i am doing wrong?

Message 1 of 2
latest reply
1 REPLY 1

how to use ReviseFixedPriceItem with variations

did you ever find a solution for this ?

Message 2 of 2
latest reply