{
  "openapi": "3.1.0",
  "info": {
    "title": "Chenrui Hygiene B2B Agent API",
    "description": "Programmatic API endpoints for automated procurement quotation, physical sample kit dispatch, and container loading calculation.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://www.chinadiaperfactory.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/quote": {
      "post": {
        "operationId": "requestCustomDiaperQuotation",
        "summary": "Submit request for OEM/ODM private label diaper quotation",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product_type": { "type": "string" },
                  "order_quantity": { "type": "number" },
                  "target_country": { "type": "string" },
                  "email": { "type": "string" }
                },
                "required": ["product_type", "order_quantity", "email"]
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Quotation submitted successfully" }
        }
      }
    },
    "/api/sample": {
      "post": {
        "operationId": "orderDiaperSampleKit",
        "summary": "Order free physical sample kit for quality evaluation",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fullname": { "type": "string" },
                  "email": { "type": "string" },
                  "address": { "type": "string" },
                  "sample_sku": { "type": "string" }
                },
                "required": ["fullname", "email", "address", "sample_sku"]
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Sample kit order registered" }
        }
      }
    },
    "/api/container-calculator": {
      "get": {
        "operationId": "calculateDiaperContainerLoading",
        "summary": "Calculate container CBM and piece capacity",
        "parameters": [
          { "name": "container_type", "in": "query", "required": true, "schema": { "type": "string", "enum": ["20GP", "40HQ"] } },
          { "name": "size_assortment", "in": "query", "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "description": "Calculation matrix returned" }
        }
      }
    }
  }
}
