{
  "openapi": "3.1.0",
  "info": {
    "title": "Glasses Drop Off public frame catalog",
    "version": "1.0.0",
    "description": "Read the current complete-glasses catalog and lens choices. Availability, prescription compatibility and fitting require review. This read-only endpoint does not create orders or payments."
  },
  "servers": [
    {
      "url": "https://glassesdropoff.com"
    }
  ],
  "paths": {
    "/api/frames/catalog": {
      "get": {
        "operationId": "getFrameCatalog",
        "summary": "Read complete-glasses choices and prices",
        "description": "Returns the current public catalog. A true salesEnabled value is not a stock guarantee. Follow the returned website URL for the secure customer workflow. selection and pricePreview are null for this read-only GET. It accepts no quote-selection parameters. Preview-only collection colors are not enabled for checkout by appearing in this response or in a try-on.",
        "security": [],
        "responses": {
          "200": {
            "description": "Public catalog, before applicable tax",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FrameCatalog"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FrameCatalog": {
        "type": "object",
        "required": [
          "schemaVersion",
          "salesEnabled",
          "currency",
          "orderCreated",
          "frames",
          "options",
          "selection",
          "pricePreview",
          "url",
          "notice",
          "fulfillment"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string"
          },
          "salesEnabled": {
            "type": "boolean"
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "orderCreated": {
            "type": "boolean",
            "const": false
          },
          "frames": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Frame"
            }
          },
          "options": {
            "$ref": "#/components/schemas/LensOptions"
          },
          "selection": {
            "type": "null"
          },
          "pricePreview": {
            "type": "null"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "notice": {
            "type": "string"
          },
          "fulfillment": {
            "type": "string"
          }
        }
      },
      "Frame": {
        "type": "object",
        "required": [
          "id",
          "name",
          "color",
          "size",
          "material",
          "image",
          "framePrice",
          "completePair",
          "purchaseStatus",
          "availabilityStatus",
          "tryOnStatus"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Current public frame selection ID."
          },
          "name": {
            "type": "string",
            "description": "Intended public display label: kody is 001, maintain is 002, notice is 003. Stable IDs and saved commercial identity are unchanged."
          },
          "color": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "material": {
            "type": "string"
          },
          "image": {
            "type": "string",
            "format": "uri"
          },
          "framePrice": {
            "type": "number",
            "description": "Frame component of a complete pair; frame-only sales are not offered."
          },
          "completePair": {
            "type": "object",
            "required": [
              "single",
              "progressive"
            ],
            "properties": {
              "single": {
                "type": "number"
              },
              "progressive": {
                "type": "number"
              }
            }
          },
          "purchaseStatus": {
            "type": "string",
            "enum": [
              "website_review_required",
              "browse_only"
            ],
            "description": "Website handoff eligibility only, never stock or optical approval."
          },
          "availabilityStatus": {
            "type": "string",
            "const": "confirmation_required"
          },
          "tryOnStatus": {
            "type": "string",
            "const": "cosmetic_preview_only"
          }
        }
      },
      "LensOptions": {
        "type": "object",
        "required": [
          "styles",
          "finishes",
          "upgradePrice",
          "delivery",
          "guidance"
        ],
        "properties": {
          "styles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "finishes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "upgradePrice": {
            "type": "number"
          },
          "delivery": {
            "type": "number"
          },
          "guidance": {
            "type": "string"
          }
        }
      }
    }
  }
}
