Product Variants Attributes API

Current version: v1.1

Get product variants attributes

GET
/productvariants/list.json
[
	{
		"key": "color",
		"values": {
			"pink": {
				"value": "pink",
				"img": ""
			},
			"black": {
				"value": "black",
				"img": "https:\/\/tcdn.storeden.com\/gallery\/5b23c42b16f46ad5418b456e"
			},
			...
		}
	},
	...
]

					

Set variant value attribute image

PUT
/productvariants/variantimage.json
key required (string) Variant key (for example: color)
value required (string) Variant entry (for example: black)
image_id required (StoredenID) Unique id of image resource ( see: Gallery API )
{
    "ok": 1,
    "err": null,
    "nModified": 56
}