{
  "id": "/",
  "type": "object",
  "properties": {
    "products": {
      "id": "products",
      "type": "array",
      "items": {
        "id": "0",
        "type": "object",
        "properties": {
          "externalId": {
            "id": "externalId",
            "type": "string"
          },
          "name": {
            "id": "name",
            "type": "string"
          },
          "shortName": {
            "id": "shortName",
            "type": "string"
          },
          "description": {
            "id": "description",
            "type": "object",
            "properties": {
              "en": {
                "id": "en",
                "type": "string"
              }
            }
          },
          "EANCode": {
            "id": "EANCode",
            "type": "string"
          },
          "supplier": {
            "id": "supplier",
            "type": "string"
          },
          "category": {
            "id": "category",
            "type": "string"
          },
          "measurements": {
            "id": "measurements",
            "type": "object",
            "properties": {
              "weight": {
                "id": "weight",
                "type": "integer"
              },
              "length": {
                "id": "length",
                "type": "number"
              },
              "width": {
                "id": "width",
                "type": "number"
              },
              "height": {
                "id": "height",
                "type": "number"
              },
              "volume": {
                "id": "volume",
                "type": "number"
              }
            }
          },
          "isFragile": {
            "id": "isFragile",
            "type": "boolean"
          },
          "hasBestBeforeDate": {
            "id": "hasBestBeforeDate",
            "type": "boolean"
          },
          "hasWarranty": {
            "id": "hasWarranty",
            "type": "boolean"
          },
          "vatPercentage": {
            "id": "vatPercentage",
            "type": "integer"
          },
          "totalPrice": {
            "id": "totalPrice",
            "type": "number"
          },
          "currency": {
            "id": "currency",
            "type": "string"
          },
          "stockBalance": {
            "id": "stockBalance",
            "type": "object",
            "properties": {
              "warehouseBalance": {
                "id": "warehouseBalance",
                "type": "array",
                "items": [
                  {
                    "id": "0",
                    "type": "object",
                    "properties": {
                      "externalWarehouseId": {
                        "id": "externalWarehouseId",
                        "type": "string"
                      },
                      "quantity": {
                        "id": "quantity",
                        "type": "integer"
                      },
                      "totalPrice": {
                        "id": "totalPrice",
                        "type": "number"
                      },
                      "currency": {
                        "id": "currency",
                        "type": "string"
                      }
                    }
                  },
                  {
                    "id": "1",
                    "type": "object",
                    "properties": {
                      "externalWarehouseId": {
                        "id": "externalWarehouseId",
                        "type": "string"
                      },
                      "quantity": {
                        "id": "quantity",
                        "type": "integer"
                      },
                      "totalPrice": {
                        "id": "totalPrice",
                        "type": "number"
                      },
                      "currency": {
                        "id": "currency",
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          },
          "additionalInfo": {
            "id": "additionalInfo",
            "type": "object",
            "properties": {
              "attachments": {
                "id": "attachments",
                "type": "array",
                "items": {
                  "id": "0",
                  "type": "object",
                  "properties": {
                    "type": {
                      "id": "type",
                      "type": "string"
                    },
                    "URI": {
                      "id": "URI",
                      "type": "string"
                    },
                    "fileType": {
                      "id": "fileType",
                      "type": "string"
                    },
                    "fileName": {
                      "id": "fileName",
                      "type": "string"
                    }
                  }
                }
              },
              "comments": {
                "id": "comments",
                "type": "array",
                "items": {
                  "id": "0",
                  "type": "object",
                  "properties": {
                    "type": {
                      "id": "type",
                      "type": "string"
                    },
                    "value": {
                      "id": "value",
                      "type": "string"
                    }
                  }
                }
              },
              "classifications": {
                "id": "classifications",
                "type": "array",
                "items": {
                  "id": "0",
                  "type": "object",
                  "properties": {
                    "type": {
                      "id": "type",
                      "type": "string"
                    },
                    "value": {
                      "id": "value",
                      "type": "string"
                    }
                  }
                }
              },
              "productVariationIds": {
                "id": "productVariationIds",
                "type": "array",
                "items": {
                  "id": "0",
                  "type": "object",
                  "properties": {
                    "type": {
                      "id": "type",
                      "type": "string"
                    },
                    "value": {
                      "id": "value",
                      "type": "string"
                    }
                  }
                }
              },
              "dangerousGoodsDetail": {
                "id": "dangerousGoodsDetail",
                "type": "object",
                "properties": {
                  "isDangerousGoods": {
                    "id": "isDangerousGoods",
                    "type": "boolean"
                  }
                }
              },
              "warrantyDetail": {
                "id": "warrantyDetail",
                "type": "object",
                "properties": {
                  "expiration": {
                    "id": "expiration",
                    "type": "string"
                  },
                  "endDate": {
                    "id": "endDate",
                    "type": "string"
                  },
                  "serialControlled": {
                    "id": "serialControlled",
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "specification": {
            "id": "specification",
            "type": "array",
            "items": {
              "id": "0",
              "type": "object",
              "properties": {
                "type": {
                  "id": "type",
                  "type": "string"
                },
                "property": {
                  "id": "property",
                  "type": "array",
                  "items": {
                    "id": "0",
                    "type": "object",
                    "properties": {
                      "type": {
                        "id": "type",
                        "type": "string"
                      },
                      "value": {
                        "id": "value",
                        "type": "string"
                      },
                      "specifier": {
                        "id": "specifier",
                        "type": "string"
                      },
                      "languageId": {
                        "id": "languageId",
                        "type": "string"
                      },
                      "description": {
                        "id": "description",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "externalId"
        ]
      }
    }
  }
}