{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-cash-flow-availability-response-schema.json",
  "title": "CashFlowAvailabilityResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-cash-flow-api-openapi.yml#/components/schemas/CashFlowAvailabilityResponse",
  "type": "object",
  "properties": {
    "company_info": {
      "type": "object",
      "description": "Company identity: ticker, CIK, and company name.",
      "properties": {
        "company_name": {
          "type": "string"
        },
        "cik": {
          "type": "string"
        },
        "ticker": {
          "type": "string"
        }
      }
    },
    "available_periods": {
      "type": "array",
      "description": "Fiscal years (newest first) and the periods within each that have cash flow data.",
      "items": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer"
          },
          "periods": {
            "type": "array",
            "description": "Available fiscal periods for the year: q1-q4 and fy (full year).",
            "items": {
              "type": "string",
              "enum": [
                "q1",
                "q2",
                "q3",
                "q4",
                "fy"
              ]
            }
          }
        }
      }
    }
  }
}