{
  "openapi": "3.1.0",
  "info": {
    "title": "PartnerValves search & quote API",
    "version": "1.0.0",
    "description": "Search PartnerValves's brand and valve-family pages and submit quote requests (RFQs) for industrial valves and actuators. Quote requests are emailed to the sales team and answered by email, typically within one business day. Models not listed online can still be requested.",
    "contact": {
      "email": "info@partnervalves.com",
      "url": "https://partnervalves.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://partnervalves.com"
    }
  ],
  "paths": {
    "/api/search": {
      "get": {
        "operationId": "searchSite",
        "summary": "Search brands, valve families, industries and services",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Brand, valve type, industry or standard, e.g. \"Fisher\" or \"cryogenic ball valve\""
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 24
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching pages",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "Brand",
                              "Valve type",
                              "Industry",
                              "Service"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "description": "Path relative to the server URL"
                          },
                          "sub": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "operationId": "requestQuote",
        "summary": "Submit a quote request (RFQ) on behalf of a buyer",
        "description": "Only submit with the buyer's consent and their real contact details. One request may list several items (one per line).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "part_numbers"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "company": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "brands": {
                    "type": "string",
                    "description": "Manufacturer(s), e.g. \"Fisher\""
                  },
                  "part_numbers": {
                    "type": "string",
                    "description": "Model / part number(s) or specification (size, pressure class, materials), one per line"
                  },
                  "quantity": {
                    "type": "string"
                  },
                  "needed_by": {
                    "type": "string"
                  },
                  "product_category": {
                    "type": "string",
                    "enum": [
                      "ball-valves",
                      "butterfly-valves",
                      "gate-valves",
                      "globe-valves",
                      "check-valves",
                      "control-valves",
                      "solenoid-valves",
                      "pneumatic-valves",
                      "safety-relief-valves",
                      "actuators"
                    ]
                  },
                  "enquiry_type": {
                    "type": "string",
                    "enum": [
                      "quote",
                      "availability",
                      "urgent",
                      "technical",
                      "cross-reference",
                      "supply-program",
                      "other"
                    ],
                    "default": "quote"
                  },
                  "message": {
                    "type": "string",
                    "description": "Service conditions, delivery country, Incoterms"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "{\"success\": true}"
          },
          "400": {
            "description": "Validation error"
          }
        }
      }
    }
  }
}