cancel
Showing results for 
Search instead for 
Did you mean: 

API: Response after Upload product not correct

API: Response after Upload product not correct

Hello,

I upload a product wit 2 images.

This works but a part of the response is:

"custom_attributes": [{
		"attribute_code": "image",
		"value": "\/S\/A\/SA5-1_2.png"
	},
	{
		"attribute_code": "small_image",
		"value": "\/C\/O\/CO-1_4.png"
	},
	{
		"attribute_code": "thumbnail",
		"value": "\/C\/O\/CO-1_4.png"
	},
	{
		"attribute_code": "category_ids",
		"value": []
	},
	{
		"attribute_code": "options_container",
		"value": "container2"
	},
	{
		"attribute_code": "required_options",
		"value": "0"
	},
	{
		"attribute_code": "has_options",
		"value": "0"
	},
	{
		"attribute_code": "url_key",
		"value": "test-product-with-the-sku-b203-sku"
	},
	{
		"attribute_code": "swatch_image",
		"value": "no_selection"
	},
	{
		"attribute_code": "tax_class_id",
		"value": "2"
	}]

Here is the problem ... the documentation say, that for CustomAttribute:

"custom_attributes": [
    {
      "attribute_code": "string",
      "value": "string"
    }
  ]


but Number 3 is a array and I get an error.