{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tightly-io/json-schema/tightly-io-get-variant-payload-schema.json",
  "title": "GetVariantPayload",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tightly-io-openapi.json#/components/schemas/GetVariantPayload",
  "properties": {
    "barcode": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "brand_id": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "brand_name": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "category_id": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "country_of_origin": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "custom_fields": {
      "additionalProperties": {},
      "default": null,
      "type": [
        "object",
        "null"
      ]
    },
    "description": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "ean": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "forecast_model": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "gallery_images": {
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "gtin": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "has_more_reliable_supplier": {
      "default": null,
      "type": [
        "boolean",
        "null"
      ]
    },
    "health_cover": {
      "default": null,
      "items": {
        "$ref": "#/$defs/HealthCoverByLocation"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "height": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    },
    "hs_code": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "image_url": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "in_current_season_plan": {
      "default": null,
      "type": [
        "boolean",
        "null"
      ]
    },
    "in_stock": {
      "type": "integer"
    },
    "incoming_stock": {
      "type": "integer"
    },
    "inventory_value": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    },
    "is_managed": {
      "type": "boolean"
    },
    "is_seasonal": {
      "default": null,
      "type": [
        "boolean",
        "null"
      ]
    },
    "last_stockout_date": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "last_updated_at": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "last_updated_by": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "launch_date": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "length": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    },
    "lifecycle": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "performance_category_by_location": {
      "default": null,
      "items": {
        "$ref": "#/$defs/PerformanceCategoryByLocation"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "predecessors": {
      "items": {
        "$ref": "#/$defs/VariantMinimalDto"
      },
      "type": "array"
    },
    "prepack": {
      "additionalProperties": {},
      "default": null,
      "type": [
        "object",
        "null"
      ]
    },
    "prepack_id": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "product_id": {
      "type": "string"
    },
    "product_name": {
      "type": "string"
    },
    "production_type": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "published_at": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "published_status": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "replenishment_mode": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "replenishment_strategies": {
      "default": null,
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "sales_channels": {
      "items": {
        "$ref": "#/$defs/SalesChannelInfo"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "selected_options": {
      "additionalProperties": {},
      "default": null,
      "type": [
        "object",
        "null"
      ]
    },
    "sell_price": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    },
    "selling_window_end": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "selling_window_start": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "shopify_tags": {
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "shopify_url": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "sku": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "successors": {
      "items": {
        "$ref": "#/$defs/VariantMinimalDto"
      },
      "type": "array"
    },
    "suppliers": {
      "default": null,
      "items": {
        "$ref": "#/$defs/VariantSupplier"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "trading_partners": {
      "items": {
        "additionalProperties": {},
        "type": "object"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "unit_cost": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    },
    "unit_cost_currency": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "uom": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "upc": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "variant_id": {
      "type": "string"
    },
    "variant_name": {
      "type": "string"
    },
    "variant_title": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "vendor": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "weight": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    },
    "weight_unit": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "width": {
      "default": null,
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "in_stock",
    "incoming_stock",
    "is_managed",
    "product_id",
    "product_name",
    "variant_id",
    "variant_name"
  ],
  "type": "object",
  "$defs": {
    "HealthCoverByLocation": {
      "additionalProperties": false,
      "properties": {
        "cover": {
          "type": "integer"
        },
        "health": {
          "type": "string"
        },
        "location": {
          "type": "string"
        }
      },
      "required": [
        "cover",
        "health",
        "location"
      ],
      "type": "object"
    },
    "PerformanceCategoryByLocation": {
      "additionalProperties": false,
      "properties": {
        "capital_quadrant": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": "string"
        },
        "performance_category": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "location"
      ],
      "type": "object"
    },
    "SalesChannelInfo": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "VariantMinimalDto": {
      "properties": {
        "product_title": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "variant_id": {
          "type": "string"
        },
        "variant_title": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "variant_id"
      ],
      "type": "object"
    },
    "VariantSupplier": {
      "properties": {
        "batch_size": {
          "default": null,
          "type": [
            "integer",
            "null"
          ]
        },
        "is_default": {
          "default": false,
          "type": [
            "boolean",
            "null"
          ]
        },
        "lead_time": {
          "default": null,
          "type": [
            "integer",
            "null"
          ]
        },
        "lead_time_source": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "location_lead_times": {
          "default": null,
          "items": {
            "$ref": "#/$defs/VariantSupplierLocationLeadTime"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "min_order_quantity": {
          "default": null,
          "type": [
            "integer",
            "null"
          ]
        },
        "otif_score": {
          "default": null,
          "type": [
            "number",
            "null"
          ]
        },
        "replenishment_frequency": {
          "default": null,
          "type": [
            "integer",
            "null"
          ]
        },
        "replenishment_frequency_source": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "supplier_id": {
          "type": "string"
        },
        "supplier_name": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "unit_cost": {
          "default": null,
          "type": [
            "number",
            "null"
          ]
        },
        "unit_cost_source": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "supplier_id"
      ],
      "type": "object"
    },
    "VariantSupplierLocationLeadTime": {
      "properties": {
        "lead_time": {
          "default": null,
          "type": [
            "integer",
            "null"
          ]
        },
        "location_id": {
          "type": "string"
        },
        "location_name": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "location_id"
      ],
      "type": "object"
    }
  }
}