{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buyingmesh-com/json-schema/buyingmesh-com-merchant-product-import-schema.json",
  "title": "MerchantProductImport",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buyingmesh-com-openapi.yaml#/components/schemas/MerchantProductImport",
  "type": "object",
  "required": [
    "sku",
    "title",
    "moq",
    "price",
    "price_currency",
    "lead_time_days",
    "image_url",
    "image_rights_confirmed"
  ],
  "properties": {
    "sku": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "Canonical English product name; title is accepted for source exports"
    },
    "title": {
      "type": "string",
      "description": "Source listing title alias"
    },
    "material": {
      "type": "string"
    },
    "材质": {
      "type": "string"
    },
    "size": {
      "type": "string"
    },
    "spec": {
      "type": "string",
      "description": "Source specification alias"
    },
    "规格": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "variant": {
      "type": "string"
    },
    "color": {
      "type": "string"
    },
    "dimensions": {
      "type": "string"
    },
    "gtin": {
      "type": "string"
    },
    "unit_of_measure": {
      "type": "string"
    },
    "moq": {
      "type": "integer",
      "minimum": 100,
      "description": "Minimum order quantity in purchasable units"
    },
    "起订量": {
      "type": "string"
    },
    "price_amount": {
      "type": "number",
      "minimum": 0
    },
    "price": {
      "type": [
        "number",
        "string"
      ],
      "description": "Source CNY price alias"
    },
    "price_currency": {
      "type": "string",
      "default": "CNY"
    },
    "price_unit": {
      "type": "string"
    },
    "price_breaks": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "inventory": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Optional when inventory_status is unknown"
    },
    "inventory_status": {
      "type": "string",
      "enum": [
        "confirmed",
        "unknown"
      ],
      "default": "confirmed"
    },
    "库存": {
      "type": "string"
    },
    "lead_time_days": {
      "type": "integer",
      "minimum": 0
    },
    "交期": {
      "type": "string"
    },
    "shipping_origin": {
      "type": "string"
    },
    "qualification_status": {
      "type": "string"
    },
    "qualification_evidence": {
      "type": "string"
    },
    "source_ref": {
      "type": "string"
    },
    "image_url": {
      "type": "string",
      "pattern": "^https://",
      "description": "Public product image URL; multiple URLs may be separated by |"
    },
    "imageUrl": {
      "type": "string"
    },
    "images": {
      "type": "string"
    },
    "image_rights_confirmed": {
      "type": "boolean",
      "const": true
    },
    "last_confirmed_at": {
      "type": "string",
      "format": "date-time"
    },
    "packaging": {
      "type": "string"
    },
    "customization": {
      "type": "string"
    },
    "mixed_batch": {
      "type": "string"
    },
    "fulfillment_notes": {
      "type": "string"
    }
  }
}