{
  "openapi": "3.1.1",
  "info": {
    "title": "Fictional invoice API for scoping",
    "version": "1.0.0",
    "description": "Documentation example. No service deployed or test performed. Expected permissions are in the kit matrix."
  },
  "x-fictional": true,
  "x-kit-version": "2026-11-10",
  "servers": [
    {
      "url": "https://api.example.invalid/v1"
    }
  ],
  "security": [
    {
      "testAccount": []
    }
  ],
  "paths": {
    "/invoices/{invoiceId}": {
      "parameters": [
        {
          "name": "invoiceId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "invoiceA",
              "invoiceB"
            ]
          }
        }
      ],
      "get": {
        "operationId": "readInvoice",
        "summary": "Read an authorised invoice",
        "responses": {
          "200": {
            "description": "Authorised invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            }
          },
          "403": {
            "description": "Access refused"
          },
          "404": {
            "description": "Resource unavailable"
          }
        }
      },
      "patch": {
        "operationId": "updateInvoice",
        "summary": "Update a test invoice note",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "note"
                ],
                "properties": {
                  "note": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorised update"
          },
          "403": {
            "description": "Access refused"
          },
          "404": {
            "description": "Resource unavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "testAccount": {
        "type": "http",
        "scheme": "bearer",
        "description": "Dedicated test account credential supplied separately; no credential in this example."
      }
    },
    "schemas": {
      "Invoice": {
        "type": "object",
        "required": [
          "id",
          "tenant"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "tenant": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        }
      }
    }
  }
}
