{
  "openapi": "3.1.0",
  "info": {
    "title": "Shower Glass Refine Quote Request API",
    "version": "1.0.0",
    "description": "Submit a customer-authorized request for a free photo-reviewed estimate. A successful request does not collect payment, confirm an appointment, or finalize price."
  },
  "servers": [
    { "url": "https://showerglassrefine.ca" }
  ],
  "paths": {
    "/api/quote-submissions": {
      "post": {
        "operationId": "requestShowerQuote",
        "summary": "Request a shower service quote",
        "description": "Sends the quote request to Shower Glass Refine for human review and a reply by the customer's chosen contact method.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": ["full_name", "phone", "email", "project_type", "city", "preferred_contact", "consent"],
                "properties": {
                  "full_name": { "type": "string", "maxLength": 120 },
                  "phone": { "type": "string", "maxLength": 40 },
                  "email": { "type": "string", "format": "email", "maxLength": 254 },
                  "city": { "type": "string", "maxLength": 120 },
                  "address": { "type": "string", "maxLength": 240 },
                  "project_type": { "type": "string", "description": "One or more catalog service names, separated by commas, or Not sure." },
                  "preferred_contact": { "type": "string", "enum": ["Call", "Email"] },
                  "panels": { "type": "string" },
                  "silicone_condition": { "type": "string" },
                  "message": { "type": "string", "maxLength": 5000 },
                  "consent": { "type": "string", "const": "true" },
                  "attachments": {
                    "type": "array",
                    "maxItems": 6,
                    "items": { "type": "string", "format": "binary" }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Quote request received for human review." },
          "201": { "description": "Quote request created for human review." },
          "202": { "description": "Quote request accepted for human review." },
          "400": { "description": "Required information is missing or invalid." },
          "413": { "description": "The photo upload is too large." },
          "503": { "description": "Quote intake is temporarily unavailable." }
        }
      }
    }
  }
}
