{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buyingmesh-com/json-schema/buyingmesh-com-inquiry-request-schema.json",
  "title": "InquiryRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buyingmesh-com-openapi.yaml#/components/schemas/InquiryRequest",
  "type": "object",
  "required": [
    "items",
    "destination",
    "buyer"
  ],
  "properties": {
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "type": "object",
        "required": [
          "sku",
          "quantity"
        ],
        "properties": {
          "sku": {
            "type": "string",
            "maxLength": 120
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000000
          },
          "note": {
            "type": "string",
            "maxLength": 300
          }
        }
      }
    },
    "destination": {
      "type": "object",
      "required": [
        "country"
      ],
      "properties": {
        "country": {
          "type": "string",
          "maxLength": 80
        },
        "city": {
          "type": "string",
          "maxLength": 120
        },
        "region": {
          "type": "string",
          "maxLength": 120
        },
        "postalCode": {
          "type": "string",
          "maxLength": 40
        }
      }
    },
    "buyer": {
      "type": "object",
      "required": [
        "email"
      ],
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "company": {
          "type": "string",
          "maxLength": 200
        },
        "name": {
          "type": "string",
          "maxLength": 120
        }
      }
    },
    "agent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 180
        },
        "name": {
          "type": "string",
          "maxLength": 180
        },
        "version": {
          "type": "string",
          "maxLength": 80
        }
      }
    },
    "message": {
      "type": "string",
      "maxLength": 2000
    },
    "idempotencyKey": {
      "type": "string",
      "maxLength": 180
    }
  }
}