Accessory

Accessories is represented as a accessories object. An accessories object is a JSON object with a product, accessories and directed_accessories.

All accessories and directed_accessories must be be either string or int

Attribute

Type

Required

Content

product

int or str

Required

The id of the product

accessories

list of str or int

Optional

These accessories work both ways, meaning that the product id will show show all the products in accessories and an accessory will show the "Product id" as a complementary product

directed_accessories

list of str or int

Optional

Any accessories written here will be one-way accessories to the Product id. This means that the product will show all product accessories matching these ids, but not the other way around.

{
  "product": 123,
  "accessories":[555,643], 
  "directed_accessories": [223]
}