{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buyingmesh-com/json-schema/buyingmesh-com-quote-request-schema.json",
  "title": "QuoteRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buyingmesh-com-openapi.yaml#/components/schemas/QuoteRequest",
  "type": "object",
  "required": [
    "items",
    "destination"
  ],
  "properties": {
    "environment": {
      "type": "string",
      "enum": [
        "production"
      ],
      "default": "production",
      "description": "Only approved merchant listings with supplier-confirmed commercial fields are eligible."
    },
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "type": "object",
        "required": [
          "sku",
          "quantity"
        ],
        "properties": {
          "sku": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000000,
            "description": "Must meet the SKU MOQ and not exceed confirmed sellable inventory"
          }
        }
      }
    },
    "destination": {
      "type": "object",
      "required": [
        "country"
      ],
      "properties": {
        "country": {
          "type": "string",
          "pattern": "^[A-Z]{2}$",
          "description": "ISO 3166-1 alpha-2 country code"
        },
        "city": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        }
      }
    }
  }
}