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

AttributeTypeRequiredContent
productint or strRequiredThe id of the product
accessorieslist of str or intOptionalThese 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_accessorieslist of str or intOptionalAny 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]
}