{
  "openapi": "3.1.0",
  "info": {
    "title": "FEODE machining and testing API",
    "description": "Capability information and request-for-quotation intake for precision machining and testing at the FEODE base in Huizhou, to the client's drawing or specification, for AI agents and international clients paying directly. Requests pass an automated prohibited-use and sanctions screening; payment is by prepayment through bank wire transfer (T/T). The API provides information and accepts requests for quotation only; it does not constitute an offer, quotation or contract, and no payment is made through it. The same functions, with the information on the Company's products and services, are available through the MCP server at https://www.feode.com/mcp.",
    "version": "1.0.0",
    "contact": { "name": "FEODE", "email": "enquiry@feode.com", "url": "https://www.feode.com/machining-services.html" },
    "x-mcp-endpoint": "https://www.feode.com/mcp"
  },
  "servers": [ { "url": "https://www.feode.com", "description": "FEODE production" } ],
  "paths": {
    "/api/machining/services": {
      "get": {
        "operationId": "getMachiningServices",
        "summary": "Machining and testing capabilities",
        "description": "Returns the machining envelope (disc-type parts to ⌀2,000 mm, shaft-type parts to ⌀1,600 × 6,000 mm, deep holes to ⌀500 × 7,000 mm, workpieces to 80 t), the equipment list, testing (hydraulic pressure testing to 30,000 psi, nitrogen to 20,000 psi; MPI, UT and PT), materials, the order process, and the compliance and payment policy.",
        "responses": {
          "200": { "description": "Machining and testing capabilities", "content": { "application/json": { "schema": { "type": "object" } } } }
        }
      }
    },
    "/api/machining/terms": {
      "get": {
        "operationId": "getMachiningTerms",
        "summary": "Machining terms and compliance",
        "description": "Returns the intake terms, the required fields of a request for quotation, the compliance requirements (prohibited items, intellectual property and liability) and the payment terms (full or partial prepayment by bank wire transfer, T/T).",
        "responses": {
          "200": { "description": "Terms and compliance", "content": { "application/json": { "schema": { "type": "object" } } } }
        }
      }
    },
    "/api/machining/rfq": {
      "post": {
        "operationId": "submitMachiningRfq",
        "summary": "Submit a machining or testing request for quotation",
        "description": "Submits a structured request for quotation. The request passes an automated prohibited-use and sanctions screening; if cleared, it is registered for follow-up from enquiry@feode.com and a reference is returned. Weapons, military, nuclear and controlled dual-use items are declined; requests concerning sanctioned countries are referred for manual review. The result is not a contract or quotation, and no payment is taken.",
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RfqRequest" } } }
        },
        "responses": {
          "200": { "description": "Result of the intake. compliance.decision is one of accepted_for_followup, manual_review or declined.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RfqResult" } } } },
          "400": { "description": "Required fields missing or the body is not valid JSON" }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "RfqRequest": {
        "type": "object",
        "required": ["company", "country", "contact_name", "email", "part_description", "material", "quantity", "end_use"],
        "properties": {
          "company": { "type": "string", "description": "Legal entity placing the request" },
          "country": { "type": "string", "description": "Country of registration of the legal entity" },
          "contact_name": { "type": "string", "description": "Name of the contact person" },
          "email": { "type": "string", "description": "E-mail address of the contact person" },
          "part_description": { "type": "string", "description": "Description of the part or component, or drawing reference" },
          "material": { "type": "string", "description": "Material and grade" },
          "quantity": { "type": "string", "description": "Quantity" },
          "end_use": { "type": "string", "description": "Declared end-use of the part" },
          "tolerance": { "type": "string", "description": "Key tolerances (optional)" },
          "industry": { "type": "string", "description": "Industry sector (optional)" },
          "drawing_url": { "type": "string", "description": "Address of a drawing or specification (optional)" },
          "notes": { "type": "string", "description": "Other details (optional)" }
        }
      },
      "RfqResult": {
        "type": "object",
        "properties": {
          "ok": { "type": "boolean" },
          "reference": { "type": ["string", "null"], "description": "Reference of the request, for example MRFQ-XXXX" },
          "compliance": { "type": "object", "properties": { "decision": { "type": "string" }, "reason": { "type": "string" } } },
          "contact": { "type": "string" },
          "next_steps": { "type": "string" },
          "disclaimer": { "type": "string" }
        }
      }
    }
  }
}
