{
  "openapi": "3.0.3",
  "info": {
    "title": "Synthetic order-status API",
    "version": "1.0.0"
  },
  "servers": [{ "url": "https://api.example.com" }],
  "paths": {
    "/orders/{reference}": {
      "get": {
        "operationId": "lookup_order_status",
        "summary": "Look up a synthetic order status",
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": { "type": "string", "minLength": 1, "maxLength": 64 }
          }
        ],
        "responses": {
          "200": {
            "description": "Synthetic status for the requested reference",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": ["status"],
                  "properties": {
                    "status": {
                      "type": "string",
                      "maxLength": 32,
                      "enum": ["pending", "shipped", "not_found"]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
